Makefile (125517) | Makefile (125537) |
---|---|
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 125517 2004-02-06 12:58:32Z ru $ | 1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 125537 2004-02-06 21:58:32Z ru $ |
2 | 2 |
3PROG?= boot0 4NOMAN= 5STRIP= 6BINMODE= 444 | 3FILES= ${BOOT} 4CLEANFILES= ${BOOT} ${BOOT}.out ${BOOT}.o |
7 | 5 |
8M4?= m4 | 6BOOT?= boot0 |
9 10# The default set of flags compiled into boot0. This enables update (writing 11# the modified boot0 back to disk after running so that the selection made is 12# saved), packet mode (detect and use the BIOS EDD extensions if we try to 13# boot past the 1024 cylinder liimt), and booting from all valid slices. 14BOOT_BOOT0_FLAGS?= 0xf 15 16# The number of timer ticks to wait for a keypress before assuming the default --- 6 unchanged lines hidden (view full) --- 23BOOT_BOOT0_ORG?= 0x600 24 25# Comm settings for boot0sio. 0xE3 => 9600 8-N-1 26# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED 27# and BOOT_COMCONSOLE_PORT into the correct values to define on the build 28# command line 29BOOT_BOOT0_COMCONSOLE_SPEED?= 0xE3 30 | 7 8# The default set of flags compiled into boot0. This enables update (writing 9# the modified boot0 back to disk after running so that the selection made is 10# saved), packet mode (detect and use the BIOS EDD extensions if we try to 11# boot past the 1024 cylinder liimt), and booting from all valid slices. 12BOOT_BOOT0_FLAGS?= 0xf 13 14# The number of timer ticks to wait for a keypress before assuming the default --- 6 unchanged lines hidden (view full) --- 21BOOT_BOOT0_ORG?= 0x600 22 23# Comm settings for boot0sio. 0xE3 => 9600 8-N-1 24# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED 25# and BOOT_COMCONSOLE_PORT into the correct values to define on the build 26# command line 27BOOT_BOOT0_COMCONSOLE_SPEED?= 0xE3 28 |
31${PROG}: ${PROG}.o 32 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o ${PROG}.out ${PROG}.o 33 objcopy -S -O binary ${PROG}.out ${.TARGET} | 29AFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \ 30 --defsym TICKS=${BOOT_BOOT0_TICKS} \ 31 --defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED} |
34 | 32 |
35${PROG}.o: ${PROG}.s 36 ${AS} ${AFLAGS} --defsym FLAGS=${BOOT_BOOT0_FLAGS} \ 37 --defsym TICKS=${BOOT_BOOT0_TICKS} \ 38 --defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED} \ 39 ${.IMPSRC} -o ${.TARGET} | 33${BOOT}: ${BOOT}.out 34 objcopy -S -O binary ${BOOT}.out ${.TARGET} |
40 | 35 |
41CLEANFILES+= ${PROG}.out ${PROG}.o | 36${BOOT}.out: ${BOOT}.o 37 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o ${.TARGET} ${BOOT}.o |
42 43.include <bsd.prog.mk> | 38 39.include <bsd.prog.mk> |