summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-04-30 18:02:10 +0000
committerimp <imp@FreeBSD.org>2014-04-30 18:02:10 +0000
commitc55ab52e3fa2f145526776d1c6e327dbb78db3b6 (patch)
tree621fd6bb39362cdfb055a91cbc686ff443fe3ee4 /Makefile
parentc4a1255f95935b40173708ba78773bcb76cfbd72 (diff)
downloadFreeBSD-src-c55ab52e3fa2f145526776d1c6e327dbb78db3b6.zip
FreeBSD-src-c55ab52e3fa2f145526776d1c6e327dbb78db3b6.tar.gz
Omit from the universe build all config files tagged with
#NO_UNIVERSE. Many of these config files are important examples, but add little to no regresive value to the intended purpose of UNIVERSE. We now build over 120 kernels during universe. There's really little to no value to this over building say 60 or even 30 of them (either is still a way too big number). This is especially true for kernels that are nothing more than including a common base and adding a static DTB file. Start by pruning 1/3 of the arm kernels that add little regresion value.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7dafc36..6cdd0fe 100644
--- a/Makefile
+++ b/Makefile
@@ -458,9 +458,15 @@ universe_kernels: universe_kernconfs
.if !defined(TARGET)
TARGET!= uname -m
.endif
+.if defined(MAKE_ALL_KERNELS)
+_THINNER=cat
+.else
+_THINNER=xargs grep -L "^.NO_UNIVERSE"
+.endif
KERNCONFS!= cd ${KERNSRCDIR}/${TARGET}/conf && \
find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \
- ! -name DEFAULTS ! -name NOTES
+ ! -name DEFAULTS ! -name NOTES | \
+ ${_THINNER}
universe_kernconfs:
.for kernel in ${KERNCONFS}
TARGET_ARCH_${kernel}!= cd ${KERNSRCDIR}/${TARGET}/conf && \
OpenPOWER on IntegriCloud