Add a netboot directory to releasedir/installation. Put symlinks to the

kernels and ofwboot in there.
This commit is contained in:
garbled 2008-05-01 01:58:10 +00:00
parent ca230e9919
commit 4b476699e2

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.8 2008/02/05 19:03:38 garbled Exp $
# $NetBSD: Makefile.inc,v 1.9 2008/05/01 01:58:10 garbled Exp $
#
# etc.ofppc/Makefile.inc -- ofppc-specific etc Makefile targets
#
@ -9,3 +9,27 @@
KERNEL_SETS= GENERIC
BUILD_KERNELS+= INSTALL
MD_INSTALLATION_DIRS= installation/netboot
INSTALLATION_DIRS+= ${MD_INSTALLATION_DIRS}
INSTALLATION_SYMLINKS= \
netboot/netbsd-INSTALL.gz ../../binary/kernel/netbsd-INSTALL.gz \
netboot/netbsd-GENERIC.gz ../../binary/kernel/netbsd-GENERIC.gz
snap_md_post:
# install ofwboot in netboot directory
${HOST_INSTALL_FILE} -m ${NONBINMODE} ${DESTDIR}/usr/mdec/ofwboot \
${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/netboot
# install links to boot and installation utilities for various media
.for linkdst linksrc in ${INSTALLATION_SYMLINKS}
rm -f ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/${linkdst}
ln -s ${linksrc} ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/${linkdst}
.endfor
# compute checksums
.for dir in ${MD_INSTALLATION_DIRS}
${MAKESUMS} -t ${RELEASEDIR}/${RELEASEMACHINEDIR}/${dir} '*'
.endfor