1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-10-05 19:20:36 +00:00
|
|
|
|
2000-10-02 17:23:16 +00:00
|
|
|
MAINTAINER= rnordier
|
|
|
|
|
1998-10-05 19:20:36 +00:00
|
|
|
PROG= boot0
|
|
|
|
NOMAN=
|
|
|
|
STRIP=
|
|
|
|
BINDIR?= /boot
|
1998-10-17 14:20:25 +00:00
|
|
|
BINMODE= 444
|
1998-10-05 10:08:37 +00:00
|
|
|
|
|
|
|
M4?= m4
|
|
|
|
|
2000-10-02 17:30:22 +00:00
|
|
|
B0FLAGS=0xf
|
|
|
|
B0TICKS=0xb6
|
1998-10-19 19:13:53 +00:00
|
|
|
|
2000-10-02 17:30:22 +00:00
|
|
|
ORG= 0x600
|
1998-10-05 10:08:37 +00:00
|
|
|
|
|
|
|
boot0: boot0.o
|
1998-10-09 17:19:51 +00:00
|
|
|
.if ${OBJFORMAT} == aout
|
2000-10-02 17:30:22 +00:00
|
|
|
${LD} -N -s -T ${ORG} -o boot0.out boot0.o
|
1998-10-09 17:19:51 +00:00
|
|
|
dd if=boot0.out of=${.TARGET} ibs=32 skip=1
|
|
|
|
.else
|
2000-10-02 17:30:22 +00:00
|
|
|
${LD} -N -e start -Ttext ${ORG} -o boot0.out boot0.o
|
1998-10-13 18:29:18 +00:00
|
|
|
objcopy -S -O binary boot0.out ${.TARGET}
|
1998-10-09 17:19:51 +00:00
|
|
|
.endif
|
1998-10-05 10:08:37 +00:00
|
|
|
|
2000-05-23 12:18:49 +00:00
|
|
|
boot0.o: boot0.s
|
2000-10-02 17:30:22 +00:00
|
|
|
${AS} ${AFLAGS} --defsym FLAGS=${B0FLAGS} --defsym TICKS=${B0TICKS} \
|
|
|
|
${.IMPSRC} -o ${.TARGET}
|
1998-10-05 10:08:37 +00:00
|
|
|
|
1998-10-05 19:20:36 +00:00
|
|
|
CLEANFILES+= boot0.out boot0.o
|
1998-10-05 10:08:37 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|