Deleted Added
full compact
Makefile (63032) Makefile (64187)
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 63032 2000-07-12 18:11:54Z jhb $
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 64187 2000-08-03 09:14:02Z jhb $
2
3PROG= boot0
4NOMAN=
5STRIP=
6BINDIR?= /boot
7BINMODE= 444
8
9M4?= m4
10
2
3PROG= boot0
4NOMAN=
5STRIP=
6BINDIR?= /boot
7BINMODE= 444
8
9M4?= m4
10
11# update, packet mode, and all slices enabled by default
12B0FLAGS=0x8f
13B0TICKS=0xb6
11# The default set of flags compiled into boot0. This enables update (writing
12# the modified boot0 back to disk after running so that the selection made is
13# saved), packet mode (detect and use the BIOS EDD extensions if we try to
14# boot past the 1024 cylinder liimt), and booting from all valid slices.
15BOOT_BOOT0_FLAGS?= 0x8f
14
16
15ORG= 0x600
17# The number of timer ticks to wait for a keypress before assuming the default
18# selection. Since there are 18.2 ticks per second, the default value of
19# 0xb6 (182d) corresponds to 10 seconds.
20BOOT_BOOT0_TICKS?= 0xb6
16
21
22# The base address that we the boot0 code to to run it. Don't change this
23# unless you are glutton for punishment.
24BOOT_BOOT0_ORG?= 0x600
25
17boot0: boot0.o
18.if ${OBJFORMAT} == aout
26boot0: boot0.o
27.if ${OBJFORMAT} == aout
19 ${LD} -N -s -T ${ORG} -o boot0.out boot0.o
28 ${LD} -N -s -T ${BOOT_BOOT0_ORG} -o boot0.out boot0.o
20 dd if=boot0.out of=${.TARGET} ibs=32 skip=1
21.else
29 dd if=boot0.out of=${.TARGET} ibs=32 skip=1
30.else
22 ${LD} -N -e start -Ttext ${ORG} -o boot0.out boot0.o
31 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o boot0.out boot0.o
23 objcopy -S -O binary boot0.out ${.TARGET}
24.endif
25
26boot0.o: boot0.s
32 objcopy -S -O binary boot0.out ${.TARGET}
33.endif
34
35boot0.o: boot0.s
27 ${AS} ${AFLAGS} --defsym FLAGS=${B0FLAGS} --defsym TICKS=${B0TICKS} \
28 ${.IMPSRC} -o ${.TARGET}
36 ${AS} ${AFLAGS} --defsym FLAGS=${BOOT_BOOT0_FLAGS} \
37 --defsym TICKS=${BOOT_BOOT0_TICKS} ${.IMPSRC} -o ${.TARGET}
29
30CLEANFILES+= boot0.out boot0.o
31
32.include <bsd.prog.mk>
38
39CLEANFILES+= boot0.out boot0.o
40
41.include <bsd.prog.mk>