Module Name: src
Committed By: mlelstv
Date: Mon Jan 14 20:05:43 UTC 2013
Modified Files:
src/etc: Makefile
Log Message:
Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.
To generate a diff of this commit:
cvs rdiff -u -r1.401 -r1.402 src/etc/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/Makefile
diff -u src/etc/Makefile:1.401 src/etc/Makefile:1.402
--- src/etc/Makefile:1.401 Mon Dec 3 13:53:28 2012
+++ src/etc/Makefile Mon Jan 14 20:05:42 2013
@@ -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 @@ snap_post: .PHONY .MAKE build_kernelsets
# 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 @@ build_kernelsets: .PHONY
# ${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 @@ kernset-${configfile}: .PHONY build_kern
done ) | eval $${pax_cmd}; \
} \
}
+.endif
+.endfor
.endfor # KERNEL_SETS # }
build_releasekernels: .PHONY
@@ -598,6 +603,8 @@ build_releasekernels: .PHONY
# ${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 @@ releasekern-${configfile}: .PHONY build_
done; \
done; \
}
+.endif
+.endfor
.endfor # KERNEL_SETS EXTRA_KERNELS # }
# snap_md_post --