Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/common Add IMGMAKEFSOPTIONS like in the bootimage Ma...



details:   https://anonhg.NetBSD.org/src/rev/ebe0935f92b9
branches:  trunk
changeset: 786965:ebe0935f92b9
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 24 21:34:19 2013 +0000

description:
Add IMGMAKEFSOPTIONS like in the bootimage Makefile

diffstat:

 distrib/common/Makefile.image |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r bde3e55bd985 -r ebe0935f92b9 distrib/common/Makefile.image
--- a/distrib/common/Makefile.image     Fri May 24 21:33:00 2013 +0000
+++ b/distrib/common/Makefile.image     Fri May 24 21:34:19 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.image,v 1.31 2009/04/03 22:36:35 perry Exp $
+#      $NetBSD: Makefile.image,v 1.32 2013/05/24 21:34:19 christos Exp $
 #
 # Makefile snippet to build a tree from the provided lists,
 # and make an ffs file system image from that tree
@@ -82,12 +82,13 @@
 .endif # ! target (${WORKSPEC})                                # }
 
 .if defined(IMAGE)                                             # {
+IMGMAKEFSOPTIONS?= -o bsize=4096,fsize=512
 ${IMAGE}: ${WORKBUILT}
        [ "${.OODATE}" = ${WORKBUILT} -a -f ${IMAGE} -a ! ${IMAGE} -ot ${WORKBUILT} ]  || { \
        ${_MKSHMSG_CREATE} ${.CURDIR:T}/${.TARGET}; \
        rm -f ${.TARGET} ${.TARGET}.tmp; \
        ${TOOL_MAKEFS} -t ffs -B ${IMAGEENDIAN} -s ${IMAGESIZE} -F ${WORKSPEC} \
-           -N ${NETBSDSRCDIR}/etc -o bsize=4096,fsize=512 \
+           -N ${NETBSDSRCDIR}/etc ${IMGMAKEFSOPTIONS} \
            -o optimization=space,minfree=0 \
            ${MAKEFS_FLAGS} ${.TARGET}.tmp ${WORKDIR} \
        && mv -f ${.TARGET}.tmp ${.TARGET}; \



Home | Main Index | Thread Index | Old Index