Makefile revision 125517
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 125517 2004-02-06 12:58:32Z ru $ 2 3PROG?= boot0 4NOMAN= 5STRIP= 6BINMODE= 444 7 8M4?= m4 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 17# selection. Since there are 18.2 ticks per second, the default value of 18# 0xb6 (182d) corresponds to 10 seconds. 19BOOT_BOOT0_TICKS?= 0xb6 20 21# The base address that we the boot0 code to to run it. Don't change this 22# unless you are glutton for punishment. 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 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} 34 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} 40 41CLEANFILES+= ${PROG}.out ${PROG}.o 42 43.include <bsd.prog.mk> 44