freebsd-skq/sys/boot/pc98/pc98boot/Makefile
Warner Losh 158c18ffb4 dd is currently a bootstrap tool. It really doesn't have any business
being a bootstrap tool. However, for reproducible build output,
FreeBSD added dd status=none because it was otherwise difficult to
suppress the status information, but retain any errors that might
happen. There's no real reason that dd has to be a build tool, other
than we use status=none unconditional. Remove dd from a bootstrap tool
entirely by only using status=none when available. This may also help
efforts to build the system on non-FreeBSD hosts as well.

Differential Revision: https://reviews.freebsd.org/D8605
2016-12-02 14:44:38 +00:00

26 lines
492 B
Makefile

# $FreeBSD$
FILES= ${BOOT}
CLEANFILES= ${BOOT} ${BOOT}.part
BOOT= pc98boot
.if exists(${.OBJDIR}/../boot0)
BOOT0= ${.OBJDIR}/../boot0/boot0
.else
BOOT0= ${.CURDIR}/../boot0/boot0
.endif
.if exists(${.OBJDIR}/../boot0.5)
BOOT05= ${.OBJDIR}/../boot0.5/boot0.5
.else
BOOT05= ${.CURDIR}/../boot0.5/boot0.5
.endif
${BOOT}: ${BOOT0} ${BOOT05} ${BOOT}.part
cat ${BOOT0} ${BOOT}.part ${BOOT05} > ${.TARGET}
${BOOT}.part:
${DD} if=/dev/zero of=${.TARGET} bs=512 count=1
.include <bsd.prog.mk>