Source-Changes-HG archive

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

[src/trunk]: src/etc Support a release build restricted to ALL_KERNELS. This ...



details:   https://anonhg.NetBSD.org/src/rev/4cdb85aa333d
branches:  trunk
changeset: 784007:4cdb85aa333d
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Mon Jan 14 20:05:42 2013 +0000

description:
Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.

diffstat:

 etc/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r 92dda96efa39 -r 4cdb85aa333d etc/Makefile
--- a/etc/Makefile      Mon Jan 14 19:15:13 2013 +0000
+++ b/etc/Makefile      Mon Jan 14 20:05:42 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.401 2012/12/03 13:53:28 apb Exp $
+#      $NetBSD: Makefile,v 1.402 2013/01/14 20:05:42 mlelstv Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -534,6 +534,7 @@
 # external sources (such as make(1)'s environment or command line)
 #
 ALL_KERNELS?=  ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
+.export ALL_KERNELS
 
 GETKERNELAWK=  ${TOOL_AWK} '/^config/ {print $$2; found=1} \
                END{ if (found == 0) print "netbsd"; }'
@@ -564,6 +565,8 @@
 #      ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets
 #
 .for configfile in ${KERNEL_SETS}                                      # {
+.for configsel in ${ALL_KERNELS}
+.if ${configfile} == ${configsel}
 build_kernelsets: kernset-${configfile}
 kernset-${configfile}: .PHONY build_kernels snap_pre
        @ kernlist=$$(${GETKERNELAWK} ${KERNCONFDIR}/${configfile}); \
@@ -591,6 +594,8 @@
                        done ) | eval $${pax_cmd}; \
                } \
        }
+.endif
+.endfor
 .endfor        # KERNEL_SETS                                                   # }
 
 build_releasekernels: .PHONY
@@ -598,6 +603,8 @@
 #      ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel
 #
 .for configfile in ${KERNEL_SETS} ${EXTRA_KERNELS}                     # {
+.for configsel in ${ALL_KERNELS}
+.if ${configfile} == ${configsel}
 build_releasekernels: releasekern-${configfile}
 releasekern-${configfile}: .PHONY build_kernels snap_pre
        @ kernlist=$$(${GETKERNELAWK} ${KERNCONFDIR}/${configfile:C/.*\///}); \
@@ -616,6 +623,8 @@
                        done; \
                done; \
        }
+.endif
+.endfor
 .endfor        # KERNEL_SETS EXTRA_KERNELS                                     # }
 
 # snap_md_post --



Home | Main Index | Thread Index | Old Index