add CDEXTRA for specifying a directory of extra stuff to put on a CD

This commit is contained in:
jnemeth 2007-08-31 14:20:29 +00:00
parent e71bfccc23
commit 28af2a6c6b
1 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.bootcd,v 1.10 2007/08/30 04:27:04 jnemeth Exp $
# $NetBSD: Makefile.bootcd,v 1.11 2007/08/31 14:20:29 jnemeth Exp $
#
# Makefile snipped to create a CD/DVD ISO
#
@ -15,6 +15,7 @@
# CDRELEASE Set to 'true' to include $RELEASEDIR/$MACHINE on the CD
# CDRELEASE_NOISOS Excludes installation/cdrom directory if set
# CDSOURCE Set to 'true' to include $RELEASEDIR/source on the CD
# CDEXTRA Set to a directory containing extra stuff to put on CD
# BOOT Defaults to $DESTDIR/usr/mdec/boot
# BOOTXX_CD9660 Defaults to $DESTDIR/usr/mdec/bootxx_cd9660
# CDBOOTOPTIONS Options for installboot, eg -o console=com0,speed=9600
@ -134,6 +135,20 @@ copy-releasedir:
. $$release_destdir; \
cd $$curdir; \
fi
if [ "X${CDEXTRA}" != "X" ]; then \
if [ ! -d ${CDEXTRA} ]; then \
echo "Missing ${CDEXTRA}, aborting"; \
exit 1; \
fi; \
curdir=$$(pwd); \
release_destdir=$$(pwd)/cdrom; \
cd ${CDEXTRA}; \
echo Copying $$(pwd) to $$release_destdir ...; \
${TOOL_PAX} \
-rw -pe -v \
. $$release_destdir; \
cd $$curdir; \
fi
image:
${TOOL_MAKEFS} -t cd9660 -o ${_CDMAKEFSOPTIONS:Q} ${CDBASE}.iso cdrom