2008-06-23 06:16:53 +04:00
|
|
|
# $NetBSD: Makefile,v 1.13 2008/06/23 02:16:54 matt Exp $
|
2001-03-04 23:28:50 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
2002-05-02 22:02:14 +04:00
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
2002-04-30 19:28:32 +04:00
|
|
|
|
2001-03-04 23:28:50 +03:00
|
|
|
.include <bsd.kernobj.mk>
|
|
|
|
|
|
|
|
INSTKERNOBJ!= cd ${.CURDIR}/../ramdisk-kernel && ${PRINTOBJDIR}
|
2002-03-28 07:51:25 +03:00
|
|
|
|
|
|
|
IMAGE= boot.fs
|
2002-03-30 01:53:30 +03:00
|
|
|
IMAGESIZE= 1200k
|
|
|
|
XXBOOT= ${DESTDIR}/usr/mdec/xxboot_ustarfs
|
2002-03-28 07:51:25 +03:00
|
|
|
|
2002-03-30 04:33:20 +03:00
|
|
|
IMAGEDEPENDS= ${XXBOOT} boot.vax netbsd.gz
|
|
|
|
CLEANFILES+= netbsd.gz boot.vax ${IMAGE}.tmp
|
2002-03-28 07:51:25 +03:00
|
|
|
|
2002-03-30 01:53:30 +03:00
|
|
|
realall: ${IMAGE} ${XXBOOT} ${DESTDIR}/usr/mdec/boot
|
2002-03-28 07:51:25 +03:00
|
|
|
|
2002-05-06 01:24:51 +04:00
|
|
|
netbsd.gz: ${INSTKERNOBJ}/install.ram.gz
|
2002-03-29 09:36:04 +03:00
|
|
|
cp -f ${.ALLSRC} ${.TARGET}
|
2002-03-28 07:51:25 +03:00
|
|
|
|
2002-03-30 04:33:20 +03:00
|
|
|
boot.vax: ${DESTDIR}/usr/mdec/boot
|
2002-03-30 01:53:30 +03:00
|
|
|
cp -f ${.ALLSRC} ${.TARGET}
|
|
|
|
|
2002-03-29 09:36:04 +03:00
|
|
|
${IMAGE}: ${IMAGEDEPENDS}
|
2002-03-30 04:33:20 +03:00
|
|
|
cat ${XXBOOT} > ${IMAGE}.tmp
|
2003-07-10 14:33:58 +04:00
|
|
|
${TOOL_PAX} -O -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
|
2002-04-06 20:41:24 +04:00
|
|
|
dd if=${IMAGE}.tmp of=${IMAGE} bs=${IMAGESIZE} conv=sync
|
2002-03-28 07:51:25 +03:00
|
|
|
|
2002-05-02 22:02:14 +04:00
|
|
|
release: check_RELEASEDIR .WAIT ${IMAGE}
|
2003-01-03 18:34:30 +03:00
|
|
|
${RELEASE_INSTALL} ${IMAGE} \
|
2008-06-23 06:16:53 +04:00
|
|
|
${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/bootfs
|
2002-05-02 22:02:14 +04:00
|
|
|
|
2002-03-28 07:51:25 +03:00
|
|
|
.include <bsd.prog.mk>
|