NetBSD/distrib/sun3/miniroot/Makefile
tsutsui d8e998dec9 Use crunched binary in miniroot so that we can get smaller image
and no longer have to sync shlib majors in the list file.

Ok'ed by nathanw and christos on port-sun3, and tested on tme by me.
2006-08-02 09:30:46 +00:00

61 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.33 2006/08/02 09:30:46 tsutsui Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk>
IMAGE= miniroot.fs
IMAGESIZE= 6m
MAKEFS_FLAGS= -o minfree=0,optimization=space,density=8k
KERNEL3= ${KERNOBJDIR}/INSTALL/netbsd
KERNEL3X= ${KERNOBJDIR}/INSTALL3X/netbsd
WARNS= 1
DBG= -Os
CRUNCHBIN= instbin
CRUNCHBIN_FLAGS= -d "${DBG}"
LISTS= ${.CURDIR}/list
MTREECONF= ${.CURDIR}/mtree.conf
IMAGEENDIAN= be
PARSELISTENV= KERNEL3=${KERNEL3} KERNEL3X=${KERNEL3X}
MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 fd0
IMAGEDEPENDS= ${CRUNCHBIN} \
${KERNEL3} ${KERNEL3X} \
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 \
${DESTDIR}/etc/passwd ${DESTDIR}/etc/protocols \
${DESTDIR}/etc/pwd.db ${DESTDIR}/etc/services \
${DESTDIR}/etc/spwd.db \
${DESTDIR}/usr/mdec/bootxx \
${DESTDIR}/usr/mdec/netboot ${DESTDIR}/usr/mdec/tapeboot \
${DESTDIR}/usr/mdec/ufsboot \
${DISTRIBDIR}/miniroot/install.sh \
${DISTRIBDIR}/miniroot/upgrade.sh \
install.sub
IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
${DESTDIR}/usr/mdec/bootxx /ufsboot
IMAGE_RELEASEDIR= installation/miniroot
# Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o
install.sub: ${DISTRIBDIR}/miniroot/install.sub
sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
CLEANFILES+= install.sub
.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"
.include <bsd.prog.mk>