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