Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/common Add a IMAGEPREBUILD option for makefiles to o...
details: https://anonhg.NetBSD.org/src/rev/4b5c99c8087b
branches: trunk
changeset: 331494:4b5c99c8087b
user: martin <martin%NetBSD.org@localhost>
date: Tue Aug 12 11:48:22 2014 +0000
description:
Add a IMAGEPREBUILD option for makefiles to ovveride (e.g. to additionally
add files to the staging directory)
diffstat:
distrib/common/Makefile.image | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 199e39109117 -r 4b5c99c8087b distrib/common/Makefile.image
--- a/distrib/common/Makefile.image Tue Aug 12 09:12:18 2014 +0000
+++ b/distrib/common/Makefile.image Tue Aug 12 11:48:22 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.image,v 1.37 2014/08/06 11:41:18 apb Exp $
+# $NetBSD: Makefile.image,v 1.38 2014/08/12 11:48:22 martin Exp $
#
# Makefile snippet to build a tree from the provided lists,
# and make an ffs file system image from that tree
@@ -13,6 +13,7 @@
#
# Optional variables:
# IMAGE name of target image
+# IMAGEPREBUILD additional operations to run pre image creation
# IMAGEPOSTBUILD operation to run on ${IMAGE} ${.TARGET} after its built
# (if this returns non zero, ${.TARGET} is removed)
# CRUNCHBIN name of crunchgen(1)ed binary
@@ -85,6 +86,9 @@
.if defined(IMAGE) # {
IMGMAKEFSOPTIONS?= -o bsize=4096,fsize=512
${IMAGE}: ${WORKBUILT}
+.if defined(IMAGEPREBUILD)
+ ${IMAGEPREBUILD}
+.endif
[ "${.OODATE}" = ${WORKBUILT} -a -f ${IMAGE} -a ! ${IMAGE} -ot ${WORKBUILT} ] || { \
${_MKSHMSG_CREATE} ${.CURDIR:T}/${.TARGET}; \
rm -f ${.TARGET} ${.TARGET}.tmp; \
Home |
Main Index |
Thread Index |
Old Index