freebsd-dev/sys/boot/i386/boot0/Makefile
Robert Nordier 8c964b9bca Go back to occupying just a single sector, reverting r1.17 - r1.20.
Taking over the sector following the MBR causes problems on some
machines, and the actual gains are fairly small in terms of how
the space is presently used.

Since we need a number of further features (eg. handling extended
partitions) that can't be readily accommodated in the basic boot0
design anyway, rather choose to implement the additional stuff
separately and concentrate on compatibility rather than features
here.
2000-10-02 17:30:22 +00:00

34 lines
549 B
Makefile

# $FreeBSD$
MAINTAINER= rnordier
PROG= boot0
NOMAN=
STRIP=
BINDIR?= /boot
BINMODE= 444
M4?= m4
B0FLAGS=0xf
B0TICKS=0xb6
ORG= 0x600
boot0: boot0.o
.if ${OBJFORMAT} == aout
${LD} -N -s -T ${ORG} -o boot0.out boot0.o
dd if=boot0.out of=${.TARGET} ibs=32 skip=1
.else
${LD} -N -e start -Ttext ${ORG} -o boot0.out boot0.o
objcopy -S -O binary boot0.out ${.TARGET}
.endif
boot0.o: boot0.s
${AS} ${AFLAGS} --defsym FLAGS=${B0FLAGS} --defsym TICKS=${B0TICKS} \
${.IMPSRC} -o ${.TARGET}
CLEANFILES+= boot0.out boot0.o
.include <bsd.prog.mk>