Source-Changes-HG archive

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

[src/trunk]: src/distrib build.sh lets you build releases with a limited set ...



details:   https://anonhg.NetBSD.org/src/rev/d79c15bda14e
branches:  trunk
changeset: 783953:d79c15bda14e
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jan 13 14:43:23 2013 +0000

description:
build.sh lets you build releases with a limited set of kernels by
using the ALL_KERNELS environment variable to override the arch default.

Fix this mechanism for evbarm by limiting the generated boot images
accordingly.

diffstat:

 distrib/common/Makefile.mdset        |  8 +++++++-
 distrib/evbarm/gzboot/gzimg/Makefile |  7 ++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diffs (66 lines):

diff -r 62e59abc488b -r d79c15bda14e distrib/common/Makefile.mdset
--- a/distrib/common/Makefile.mdset     Sun Jan 13 14:27:06 2013 +0000
+++ b/distrib/common/Makefile.mdset     Sun Jan 13 14:43:23 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.mdset,v 1.35 2011/01/01 16:56:18 jym Exp $
+#      $NetBSD: Makefile.mdset,v 1.36 2013/01/13 14:43:23 mlelstv Exp $
 #
 # Makefile snippet to ${TOOL_MDSETIMAGE} file system images into kernels
 #
@@ -69,7 +69,10 @@
 
 .include <bsd.kernobj.mk>
 
+ALL_KERNELS?= "+"
 .for _K _I _F in ${MDSETTARGETS}                       # {
+.for currentsel in ${ALL_KERNELS}                      # {
+.if ${currentsel} == "+" || ${_K} == ${currentsel}
 
 _KERNEL:=${_K}                 # (work around obscure issue in make(1))
 .if (${_KERNEL:M*/*} != "")
@@ -166,6 +169,8 @@
        gzip -9nc ${.ALLSRC} > ${.TARGET}
 .endif                                                 # }
 
+.endif
+.endfor                                                        # }
 .endfor                                                        # }
 
 CLEANFILES+=   ${KERNELS} ${KERNELSYMS}
@@ -174,6 +179,7 @@
 
 .if defined(MDSET_RELEASEDIR)
 release:: check_RELEASEDIR .WAIT ${KERNELS}
+       test -z "${KERNELS}" || \
        ${RELEASE_INSTALL} ${KERNELS} ${KERNELSYMS} \
            ${RELEASEDIR}/${RELEASEMACHINEDIR}/${MDSET_RELEASEDIR}
 .endif
diff -r 62e59abc488b -r d79c15bda14e distrib/evbarm/gzboot/gzimg/Makefile
--- a/distrib/evbarm/gzboot/gzimg/Makefile      Sun Jan 13 14:27:06 2013 +0000
+++ b/distrib/evbarm/gzboot/gzimg/Makefile      Sun Jan 13 14:43:23 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.22 2012/04/04 07:32:29 bsh Exp $
+#      $NetBSD: Makefile,v 1.23 2013/01/13 14:43:23 mlelstv Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -62,7 +62,10 @@
                0x00140000      netbsd-wd0
 .endif
 
+ALL_KERNELS?= "+"
 .for K G I R W in ${TARGETS}                           # {
+.for configsel in ${ALL_KERNELS}                       # {
+.if ${configsel} == "+" || ${configsel} == ${K}
 
 GZB${G}=       ${DESTDIR}/usr/mdec/gzboot_${G}_${R}.bin
 
@@ -86,6 +89,8 @@
 .endif
 KZ${K}+=       gzimg_${I}_flash_${R}.gz
 
+.endif
+.endfor                                                        # }
 .endfor                                                        # }
 
 .for K in ${GZKERNELS}



Home | Main Index | Thread Index | Old Index