Makefile revision 125537
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 125537 2004-02-06 21:58:32Z ru $ 2 3FILES= ${BOOT} 4CLEANFILES= ${BOOT} ${BOOT}.out ${BOOT}.o 5 6BOOT?= boot0 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 15# selection. Since there are 18.2 ticks per second, the default value of 16# 0xb6 (182d) corresponds to 10 seconds. 17BOOT_BOOT0_TICKS?= 0xb6 18 19# The base address that we the boot0 code to to run it. Don't change this 20# unless you are glutton for punishment. 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 29AFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \ 30 --defsym TICKS=${BOOT_BOOT0_TICKS} \ 31 --defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED} 32 33${BOOT}: ${BOOT}.out 34 objcopy -S -O binary ${BOOT}.out ${.TARGET} 35 36${BOOT}.out: ${BOOT}.o 37 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o ${.TARGET} ${BOOT}.o 38 39.include <bsd.prog.mk> 40