2002-02-15 12:49:20 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-02-09 14:17:02 +00:00
|
|
|
PROG= boot1.elf
|
|
|
|
INTERNALPROG=
|
2004-12-21 08:47:35 +00:00
|
|
|
NO_MAN=
|
2004-02-09 14:17:02 +00:00
|
|
|
FILES= boot1
|
2004-02-11 21:17:04 +00:00
|
|
|
SRCS= _start.s boot1.c
|
2002-04-01 22:57:51 +00:00
|
|
|
|
2004-02-09 14:17:02 +00:00
|
|
|
BOOTBLOCKBASE= 0x4000
|
2002-02-15 12:49:20 +00:00
|
|
|
|
2004-02-09 14:17:02 +00:00
|
|
|
CFLAGS= -mcmodel=medlow -Os -I${.CURDIR}/../../common
|
2010-06-03 17:42:32 +00:00
|
|
|
LDFLAGS=-Ttext ${BOOTBLOCKBASE} -Wl,-N
|
2002-04-01 22:57:51 +00:00
|
|
|
|
2004-02-09 14:17:02 +00:00
|
|
|
# Construct boot1. sunlabel expects it to contain zeroed-out space for the
|
2002-04-01 22:57:51 +00:00
|
|
|
# label, and to be of the correct size.
|
|
|
|
boot1: boot1.aout
|
|
|
|
dd if=/dev/zero of=${.TARGET} bs=512 count=16
|
|
|
|
dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc
|
2002-02-15 12:49:20 +00:00
|
|
|
|
2004-02-09 14:17:02 +00:00
|
|
|
CLEANFILES= boot1.aout
|
|
|
|
|
|
|
|
boot1.aout: boot1.elf
|
|
|
|
elf2aout -o ${.TARGET} ${.ALLSRC}
|
|
|
|
|
|
|
|
boot1.o: ${.CURDIR}/../../common/ufsread.c
|
2002-02-15 12:49:20 +00:00
|
|
|
|
2002-04-01 22:57:51 +00:00
|
|
|
.include <bsd.prog.mk>
|