Makefile revision 125621
150477Speter# $FreeBSD: head/sys/boot/i386/boot0/Makefile 125621 2004-02-09 14:11:58Z ru $ 239973Srnordier 3125621SruPROG= ${BOOT}.out 4125621SruINTERNALPROG= 5125537SruFILES= ${BOOT} 6125621SruNOMAN= 7125621SruSRCS= ${BOOT}.s 8125621SruCLEANFILES= ${BOOT} 939980Srnordier 10125537SruBOOT?= boot0 1139973Srnordier 1289240Sjhb# The default set of flags compiled into boot0. This enables update (writing 1389240Sjhb# the modified boot0 back to disk after running so that the selection made is 1489240Sjhb# saved), packet mode (detect and use the BIOS EDD extensions if we try to 1589240Sjhb# boot past the 1024 cylinder liimt), and booting from all valid slices. 1689240SjhbBOOT_BOOT0_FLAGS?= 0xf 1740524Srnordier 1889240Sjhb# The number of timer ticks to wait for a keypress before assuming the default 1989240Sjhb# selection. Since there are 18.2 ticks per second, the default value of 2089240Sjhb# 0xb6 (182d) corresponds to 10 seconds. 2189240SjhbBOOT_BOOT0_TICKS?= 0xb6 2239973Srnordier 2389240Sjhb# The base address that we the boot0 code to to run it. Don't change this 2489240Sjhb# unless you are glutton for punishment. 2589240SjhbBOOT_BOOT0_ORG?= 0x600 2689240Sjhb 27124179Sobrien# Comm settings for boot0sio. 0xE3 => 9600 8-N-1 28124179Sobrien# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED 29124179Sobrien# and BOOT_COMCONSOLE_PORT into the correct values to define on the build 30124179Sobrien# command line 31124179SobrienBOOT_BOOT0_COMCONSOLE_SPEED?= 0xE3 32124179Sobrien 33125537SruAFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \ 34125537Sru --defsym TICKS=${BOOT_BOOT0_TICKS} \ 35125537Sru --defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED} 3639973Srnordier 37125621SruLDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} 38125621Sru 39125537Sru${BOOT}: ${BOOT}.out 40125537Sru objcopy -S -O binary ${BOOT}.out ${.TARGET} 4139973Srnordier 4239973Srnordier.include <bsd.prog.mk> 43