summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-28 17:12:15 +0000
committerphk <phk@FreeBSD.org>2004-11-28 17:12:15 +0000
commit3724ff7100efbc2ba0af403c6d76d3716a6ecfcb (patch)
treea7dd5b409c4d3a60de65101d5dcb13081fcf2f6e /tools
parentc9429150894ff0a1e36b497d0f112e563a3ed5c3 (diff)
downloadFreeBSD-src-3724ff7100efbc2ba0af403c6d76d3716a6ecfcb.zip
FreeBSD-src-3724ff7100efbc2ba0af403c6d76d3716a6ecfcb.tar.gz
Make it possible to specify a list of customize scripts.
Look for them in ./Customize first, then relative to . and then absolute.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/nanobsd/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/tools/nanobsd/Makefile b/tools/tools/nanobsd/Makefile
index 21e05c1..d5379c9 100644
--- a/tools/tools/nanobsd/Makefile
+++ b/tools/tools/nanobsd/Makefile
@@ -47,7 +47,7 @@ WD?= ${.OBJDIR}/_.w
# configuration slice.
#CFGMASTER?= ${.CURDIR}/cfgmaster
-.for cust in CUSTOMIZE CFGMASTER
+.for cust in CFGMASTER
.if !empty(${cust})
.if exists(${.CURDIR}/${${cust}})
${cust}_PATH= ${.CURDIR}/${${cust}}
@@ -71,14 +71,15 @@ all: buildworld installworld buildimage
#
Customize: _.cs
_.cs: _.iw _.di _.ik _.di
-.if empty(CUSTOMIZE_PATH)
- # useful stuff for diskless boot
- sed -i "" -e /beastie/d ${WD}/boot/loader.rc
- sed -i "" -e /ttyd0/s/off/on/ ${WD}/etc/ttys
- echo " -h" > ${WD}/boot.config
+.for cust in ${CUSTOMIZE}
+.if exists(${.CURDIR}/Customize/${${cust}})
+ sh -e ${.CURDIR}/Customize/${cust} ${WD} ${WORLDDIR} ${.CURDIR} ${CUSTOMIZE_ARGS}
+.elif exists(${.CURDIR}/${${cust}})
+ sh -e ${.CURDIR}/${cust} ${WD} ${WORLDDIR} ${.CURDIR} ${CUSTOMIZE_ARGS}
.else
- sh -e ${CUSTOMIZE_PATH} ${WD} ${WORLDDIR} ${.CURDIR} ${CUSTOMIZE_ARGS}
+ sh -e ${cust} ${WD} ${WORLDDIR} ${.CURDIR} ${CUSTOMIZE_ARGS}
.endif
+.endfor
touch _.cs
###########################################################################
OpenPOWER on IntegriCloud