2002-04-06 20:41:24 +04:00
|
|
|
# $NetBSD: Makefile,v 1.6 2002/04/06 16:41:24 bjh21 Exp $
|
2001-03-04 23:28:50 +03:00
|
|
|
|
2002-03-28 07:51:25 +03:00
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
2001-03-04 23:28:50 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
.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-03-29 09:36:04 +03:00
|
|
|
netbsd.gz: ${INSTKERNOBJ}/netbsd.INSTALL.gz
|
|
|
|
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
|
|
|
|
${PAX} -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
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|