Makefile revision 145515
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 145515 2005-04-25 17:41:35Z ru $ 2 3PROG?= boot0 4STRIP= 5BINMODE=${NOBINMODE} 6NO_MAN= 7SRCS= ${PROG}.S 8 9# The default set of flags compiled into boot0. This enables update (writing 10# the modified boot0 back to disk after running so that the selection made is 11# saved), packet mode (detect and use the BIOS EDD extensions if we try to 12# boot past the 1024 cylinder liimt), and booting from all valid slices. 13BOOT_BOOT0_FLAGS?= 0x8f 14 15# The number of timer ticks to wait for a keypress before assuming the default 16# selection. Since there are 18.2 ticks per second, the default value of 17# 0xb6 (182d) corresponds to 10 seconds. 18BOOT_BOOT0_TICKS?= 0xb6 19 20# The base address that we the boot0 code to to run it. Don't change this 21# unless you are glutton for punishment. 22BOOT_BOOT0_ORG?= 0x600 23 24# Comm settings for boot0sio. 25# Bit(s) Description 26# 7-5 data rate (110,150,300,600,1200,2400,4800,9600 bps) 27# 4-3 parity (00 or 10 = none, 01 = odd, 11 = even) 28# 2 stop bits (set = 2, clear = 1) 29# 1-0 data bits (00 = 5, 01 = 6, 10 = 7, 11 = 8) 30.if !defined(BOOT_BOOT0_COMCONSOLE_SPEED) 31BOOT_COMCONSOLE_SPEED?= 9600 32.if ${BOOT_COMCONSOLE_SPEED} == 9600 33BOOT_BOOT0_COMCONSOLE_SPEED= "7 << 5 + 3" 34.elif ${BOOT_COMCONSOLE_SPEED} == 4800 35BOOT_BOOT0_COMCONSOLE_SPEED= "6 << 5 + 3" 36.elif ${BOOT_COMCONSOLE_SPEED} == 2400 37BOOT_BOOT0_COMCONSOLE_SPEED= "5 << 5 + 3" 38.elif ${BOOT_COMCONSOLE_SPEED} == 1200 39BOOT_BOOT0_COMCONSOLE_SPEED= "4 << 5 + 3" 40.elif ${BOOT_COMCONSOLE_SPEED} == 600 41BOOT_BOOT0_COMCONSOLE_SPEED= "3 << 5 + 3" 42.elif ${BOOT_COMCONSOLE_SPEED} == 300 43BOOT_BOOT0_COMCONSOLE_SPEED= "2 << 5 + 3" 44.elif ${BOOT_COMCONSOLE_SPEED} == 150 45BOOT_BOOT0_COMCONSOLE_SPEED= "1 << 5 + 3" 46.elif ${BOOT_COMCONSOLE_SPEED} == 110 47BOOT_BOOT0_COMCONSOLE_SPEED= "0 << 5 + 3" 48.else 49BOOT_BOOT0_COMCONSOLE_SPEED= "7 << 5 + 3" 50.endif 51.endif 52 53CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \ 54 -DTICKS=${BOOT_BOOT0_TICKS} \ 55 -DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED} 56 57LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S,--oformat,binary 58 59.include <bsd.prog.mk> 60