2009-01-25 22:08:37 +00:00
|
|
|
# $NetBSD: Makefile,v 1.28 2009/01/25 22:08:39 abs Exp $
|
2001-05-18 00:16:36 +00:00
|
|
|
|
2002-04-22 21:17:48 +00:00
|
|
|
.include <bsd.own.mk>
|
2002-05-02 18:02:14 +00:00
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
|
|
|
|
2002-04-22 21:17:48 +00:00
|
|
|
.include <bsd.kernobj.mk>
|
2001-05-18 00:16:36 +00:00
|
|
|
|
2002-04-26 03:49:05 +00:00
|
|
|
IMAGE= miniroot.fs
|
2007-05-16 13:06:39 +00:00
|
|
|
IMAGESIZE= 4m
|
2007-06-24 05:41:52 +00:00
|
|
|
MAKEFS_FLAGS= -o density=8k
|
2001-05-18 00:16:36 +00:00
|
|
|
|
2002-04-22 21:17:48 +00:00
|
|
|
KERNEL= ${KERNOBJDIR}/INSTALL/netbsd
|
2001-05-18 00:16:36 +00:00
|
|
|
|
2002-04-22 21:17:48 +00:00
|
|
|
WARNS= 1
|
|
|
|
DBG= -Os
|
2001-05-18 00:16:36 +00:00
|
|
|
|
2007-03-20 16:20:20 +00:00
|
|
|
CRUNCHBIN= instbin
|
2008-04-29 17:42:35 +00:00
|
|
|
CRUNCHGEN_FLAGS= -d "${DBG}"
|
2007-03-20 16:20:20 +00:00
|
|
|
|
2002-04-26 03:49:05 +00:00
|
|
|
LISTS= ${.CURDIR}/list
|
|
|
|
MTREECONF= ${.CURDIR}/mtree.conf
|
2002-04-22 21:17:48 +00:00
|
|
|
IMAGEENDIAN= be
|
2002-04-26 03:49:05 +00:00
|
|
|
PARSELISTENV= KERNEL=${KERNEL}
|
2003-12-13 22:05:28 +00:00
|
|
|
MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0
|
2007-03-20 16:20:20 +00:00
|
|
|
IMAGEDEPENDS= ${CRUNCHBIN} \
|
|
|
|
${KERNEL} \
|
2002-04-26 03:49:05 +00:00
|
|
|
fstab install.md profile termcap \
|
|
|
|
${DESTDIR}/dev/MAKEDEV ${DESTDIR}/dev/MAKEDEV.local \
|
|
|
|
${DESTDIR}/etc/disktab ${DESTDIR}/etc/group \
|
|
|
|
${DESTDIR}/etc/master.passwd ${DESTDIR}/etc/netconfig \
|
2009-01-25 22:08:37 +00:00
|
|
|
${DESTDIR}/etc/passwd \
|
|
|
|
${NETBSDSRCDIR}/distrib/common/protocols \
|
|
|
|
${DESTDIR}/etc/pwd.db ${NETBSDSRCDIR}/distrib/common/services \
|
2002-04-26 03:49:05 +00:00
|
|
|
${DESTDIR}/etc/spwd.db \
|
|
|
|
${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/usr/mdec/bootyy \
|
|
|
|
${DESTDIR}/usr/mdec/netboot ${DESTDIR}/usr/mdec/tapeboot \
|
|
|
|
${DESTDIR}/usr/mdec/ufsboot \
|
|
|
|
${DISTRIBDIR}/miniroot/install.sh \
|
|
|
|
${DISTRIBDIR}/miniroot/upgrade.sh \
|
2002-05-07 09:14:15 +00:00
|
|
|
install.sub
|
2001-05-18 00:16:36 +00:00
|
|
|
|
2003-07-10 10:33:58 +00:00
|
|
|
IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
|
2002-05-02 18:02:14 +00:00
|
|
|
${DESTDIR}/usr/mdec/bootxx /ufsboot
|
|
|
|
IMAGE_RELEASEDIR= installation/miniroot
|
2002-04-26 03:49:05 +00:00
|
|
|
|
2007-03-20 16:20:20 +00:00
|
|
|
# Use stubs to eliminate some large stuff from libc
|
|
|
|
HACKSRC= ${DISTRIBDIR}/utils/libhack
|
|
|
|
.include "${HACKSRC}/Makefile.inc"
|
|
|
|
${CRUNCHBIN}: libhack.o
|
|
|
|
|
2002-05-07 09:14:15 +00:00
|
|
|
install.sub: ${DISTRIBDIR}/miniroot/install.sub
|
2008-10-25 22:27:34 +00:00
|
|
|
${TOOL_SED} -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
|
2001-05-18 00:16:36 +00:00
|
|
|
|
2002-05-07 09:14:15 +00:00
|
|
|
CLEANFILES+= install.sub
|
|
|
|
|
2007-03-20 16:20:20 +00:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.crunch"
|
2002-04-22 21:17:48 +00:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.makedev"
|
|
|
|
.include "${DISTRIBDIR}/common/Makefile.image"
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|