2d9b8b788b
and create sums for it. This means all the pieces to do network installation are easily accessible following a release build (and will also come out of the build servers). netbsd-GENERIC is in binary/kernel/ pxeboot_ia32.bin is in installation/misc/ miniroot.kmod is in installation/miniroot/
27 lines
729 B
Makefile
27 lines
729 B
Makefile
# $NetBSD: Makefile,v 1.3 2008/05/11 12:31:45 chris Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
MKMAN= no
|
|
PROG= miniroot.kmod
|
|
|
|
SRCMOD= ${DESTDIR}/kernel/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}/${MACHINE}/installation/miniroot/
|
|
|