2000-08-02 08:46:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-02-09 16:01:45 +00:00
|
|
|
PROG= ${BOOT}.out
|
|
|
|
INTERNALPROG=
|
2004-02-07 12:19:44 +00:00
|
|
|
FILES= ${BOOT}
|
2004-02-09 16:01:45 +00:00
|
|
|
NOMAN=
|
|
|
|
SRCS= start.s boot.s boot0.5.s disk.s selector.s support.s syscons.s
|
|
|
|
CLEANFILES= ${BOOT} ${BOOT}.bin
|
2000-08-02 08:46:08 +00:00
|
|
|
|
2004-02-07 12:19:44 +00:00
|
|
|
BOOT= boot0.5
|
2000-08-02 08:46:08 +00:00
|
|
|
|
2004-02-07 12:19:44 +00:00
|
|
|
# The base address that we the boot0 code to to run it. Don't change this
|
|
|
|
# unless you are glutton for punishment.
|
|
|
|
BOOT_BOOT0_ORG?= 0x0000
|
2000-08-02 08:46:08 +00:00
|
|
|
|
2004-02-09 16:01:45 +00:00
|
|
|
LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG}
|
|
|
|
|
2004-02-07 12:19:44 +00:00
|
|
|
# The size of boot0.5 must be 7168 bytes
|
|
|
|
${BOOT}: ${BOOT}.bin
|
|
|
|
cat ${BOOT}.bin /dev/zero | dd of=${BOOT} bs=1 count=7168
|
2000-08-02 08:46:08 +00:00
|
|
|
|
2004-02-07 12:19:44 +00:00
|
|
|
${BOOT}.bin: ${BOOT}.out
|
|
|
|
objcopy -S -O binary ${BOOT}.out ${.TARGET}
|
2000-08-02 08:46:08 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|