Deleted Added
full compact
Makefile (225736) Makefile (232930)
1# $FreeBSD: stable/9/sys/boot/i386/boot0/Makefile 218893 2011-02-20 19:33:47Z dim $
1# $FreeBSD: stable/9/sys/boot/i386/boot0/Makefile 232930 2012-03-13 18:39:57Z dim $
2
3PROG?= boot0
4STRIP=
5BINMODE=${NOBINMODE}
6NO_MAN=
7SRCS= ${PROG}.S
8
9# Additional options that you can specify with make OPTS="..."

--- 4 unchanged lines hidden (view full) ---

14# -DPXE fallback to INT18/PXE with F6
15# -DCHECK_DRIVE enable checking drive number
16# -DONLY_F_KEYS accept only Fx keys in console
17# -DTEST print drive number on entry
18#
19OPTS ?= -DVOLUME_SERIAL -DPXE
20CFLAGS += ${OPTS}
21
2
3PROG?= boot0
4STRIP=
5BINMODE=${NOBINMODE}
6NO_MAN=
7SRCS= ${PROG}.S
8
9# Additional options that you can specify with make OPTS="..."

--- 4 unchanged lines hidden (view full) ---

14# -DPXE fallback to INT18/PXE with F6
15# -DCHECK_DRIVE enable checking drive number
16# -DONLY_F_KEYS accept only Fx keys in console
17# -DTEST print drive number on entry
18#
19OPTS ?= -DVOLUME_SERIAL -DPXE
20CFLAGS += ${OPTS}
21
22.if ${CC:T:Mclang} == "clang"
23# XXX: clang integrated-as doesn't grok .codeNN directives yet
24CFLAGS+= ${.IMPSRC:T:Mboot0.S:C/^.+$/-no-integrated-as/}
25CFLAGS+= ${.IMPSRC:T:Mboot0ext.S:C/^.+$/-no-integrated-as/}
26.endif
27
28# Flags used in the boot0.S code:
29# 0x0f all valid partitions enabled.
30# 0x80 'packet', use BIOS EDD (LBA) extensions instead of CHS
31# to read from disk. boot0.S does not check that the extensions
32# are supported, but all modern BIOSes should have them.
33# 0x40 'noupdate', disable writing boot0 back to disk so that
34# the current selection is not preserved across reboots.
35# 0x20 'setdrv', override the drive number supplied by the bios

--- 42 unchanged lines hidden (view full) ---

78
79CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
80 -DTICKS=${BOOT_BOOT0_TICKS} \
81 -DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
82
83LDFLAGS=-e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-N,-S,--oformat,binary
84
85.include <bsd.prog.mk>
22# Flags used in the boot0.S code:
23# 0x0f all valid partitions enabled.
24# 0x80 'packet', use BIOS EDD (LBA) extensions instead of CHS
25# to read from disk. boot0.S does not check that the extensions
26# are supported, but all modern BIOSes should have them.
27# 0x40 'noupdate', disable writing boot0 back to disk so that
28# the current selection is not preserved across reboots.
29# 0x20 'setdrv', override the drive number supplied by the bios

--- 42 unchanged lines hidden (view full) ---

72
73CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
74 -DTICKS=${BOOT_BOOT0_TICKS} \
75 -DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
76
77LDFLAGS=-e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-N,-S,--oformat,binary
78
79.include <bsd.prog.mk>
80
81# XXX: clang integrated-as doesn't grok .codeNN directives yet
82CFLAGS.boot0.S= ${CLANG_NO_IAS}
83CFLAGS.boot0ext.S= ${CLANG_NO_IAS}
84CFLAGS+= ${CFLAGS.${.IMPSRC:T}}