2002-04-23 01:17:48 +04:00
|
|
|
# $NetBSD: Makefile,v 1.6 2002/04/22 21:17:57 fredette Exp $
|
2001-05-18 04:16:36 +04:00
|
|
|
|
|
|
|
TOP= ${.CURDIR}/..
|
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include <bsd.kernobj.mk>
|
|
|
|
.include "${_SRC_TOP_}/distrib/Makefile.inc"
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
IMG= miniroot
|
|
|
|
IMAGE= ${IMG}
|
|
|
|
IMAGESIZE= 12m
|
|
|
|
MAKEFS_FLAGS= -o minfree=0,optimization=space,density=8k,cpg=16
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
KERNEL= ${KERNOBJDIR}/INSTALL/netbsd
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
WARNS= 1
|
|
|
|
DBG= -Os
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
LISTS= ${.CURDIR}/${IMG}.list
|
|
|
|
PARSELISTENV= TOPDIR=${TOP} KERNEL=${KERNEL}
|
|
|
|
MTREECONF= ${TOP}/common/${IMG}.tree
|
|
|
|
IMAGEENDIAN= be
|
|
|
|
MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 fd0
|
|
|
|
IMAGEDEPENDS= ${KERNEL} install.sub
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
realall: ${IMG} ib.stamp
|
2001-10-13 10:15:15 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
ib.stamp: ${IMG}
|
|
|
|
${INSTALLBOOT} -v ${IMG} ${DESTDIR}/usr/mdec/bootxx /ufsboot
|
|
|
|
touch ib.stamp
|
2001-05-18 04:16:36 +04:00
|
|
|
|
|
|
|
install.sub : ${TOP}/../miniroot/install.sub
|
2002-03-06 15:14:26 +03:00
|
|
|
sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
${IMAGE}.gz: ${IMAGE}
|
|
|
|
gzip -c -9 < ${IMAGE} > ${IMAGE}.gz
|
2001-05-18 04:16:36 +04:00
|
|
|
|
|
|
|
.if !defined(RELEASEDIR)
|
|
|
|
release:
|
|
|
|
@echo setenv RELEASEDIR before doing that!
|
|
|
|
@false
|
|
|
|
.else # RELEASEDIR
|
|
|
|
release: ${IMAGE}.gz
|
|
|
|
-mkdir -p ${RELEASEDIR}/installation/miniroot
|
2002-04-12 07:21:09 +04:00
|
|
|
${RELINSTALL} ${IMAGE}.gz ${RELEASEDIR}/installation/miniroot
|
2001-05-18 04:16:36 +04:00
|
|
|
.endif # RELEASEDIR
|
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.makedev"
|
|
|
|
.include "${DISTRIBDIR}/common/Makefile.image"
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|