28 lines
803 B
Makefile
28 lines
803 B
Makefile
# $NetBSD: Makefile,v 1.5 2008/06/23 02:16:53 matt Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
.include "../../common/Makefile.distrib"
|
|
|
|
MKMAN= no
|
|
PROG= miniroot.kmod
|
|
|
|
SRCMOD= ${DESTDIR}/stand/${MACHINE}/${DISTRIBVER}/modules/miniroot/miniroot.kmod
|
|
DSTMOD= ${.OBJDIR}/miniroot.kmod
|
|
RAMDISK= ramdisk-big
|
|
RAMDISKDIR!= cd ${.CURDIR}/../ramdisks/${RAMDISK} && ${PRINTOBJDIR}
|
|
RAMDISKFS= ${RAMDISKDIR}/${RAMDISK}.fs
|
|
|
|
miniroot.kmod: ${RAMDISKFS} ${SRCMOD}
|
|
${OBJCOPY} --add-section miniroot=${RAMDISKFS} \
|
|
--set-section-flags miniroot=alloc,contents,load,data \
|
|
${SRCMOD} ${DSTMOD}.tmp
|
|
gzip -9c < ${DSTMOD}.tmp > ${DSTMOD}
|
|
rm -f ${DSTMOD}.tmp
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
release: miniroot.kmod
|
|
${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
|
|
${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/miniroot/
|
|
|