1 # $NetBSD: Makefile,v 1.9 2009/01/24 22:14:44 rmind Exp $
4 .
include "../../common/Makefile.distrib"
9 SRCMOD
= ${DESTDIR}/stand
/${MACHINE}/${DISTRIBVER}/modules
/miniroot
/miniroot.kmod
10 DSTMOD
= ${.OBJDIR
}/miniroot.kmod
12 RAMDISKDIR
!= cd
${.CURDIR
}/..
/ramdisks
/${RAMDISK} && ${PRINTOBJDIR}
13 RAMDISKFS
= ${RAMDISKDIR}/${RAMDISK}.fs
15 miniroot.kmod
: ${RAMDISKFS} ${SRCMOD}
16 ${OBJCOPY} --add-section miniroot
=${RAMDISKFS} \
17 --set-section-flags miniroot
=alloc
,contents
,load
,data \
18 ${SRCMOD} ${DSTMOD}.tmp
19 gzip
-9nc
< ${DSTMOD}.tmp
> ${DSTMOD}
22 .
include <bsd.prog.mk
>
24 release
: miniroot.kmod
25 ${HOST_INSTALL_FILE} -m
${BINMODE} ${PROG} \
26 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation
/miniroot
/