aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2017-06-12 17:22:23 +0000
committerIan Lepore <ian@FreeBSD.org>2017-06-12 17:22:23 +0000
commit1f14b5e4c0c1ec3e062c07e0ab26ab71de446ed1 (patch)
treef58ebd9f57e03665204af2666e685cd29a7579c9 /Makefile
parent0773ff183afd317d92d09bf31e7d67f23d2371b8 (diff)
downloadsrc-1f14b5e4c0c1ec3e062c07e0ab26ab71de446ed1.tar.gz
src-1f14b5e4c0c1ec3e062c07e0ab26ab71de446ed1.zip
Add support for "make universe_kernels -DMAKE_GENERIC_KERNELS" to build
just the GENERIC kernels for each arch (including variations such as GENERIC-NODEBUG, GENERIC64, etc). This helps with quickly doing a test build for all[*] arches without building dozens of variant kernels for the arches that have lots of hardware/board/system variations. [*] Not all arches have a generic kernel (but they probably should for test-building purposes, even if it can't boot on any real hardware).
Notes
Notes: svn path=/head/; revision=319859
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 603124a03ae0..0b66f8d92d61 100644
--- a/Makefile
+++ b/Makefile
@@ -522,6 +522,8 @@ TARGET!= uname -m
.endif
.if defined(MAKE_ALL_KERNELS)
_THINNER=cat
+.elif defined(MAKE_GENERIC_KERNELS)
+_THINNER=grep "GENERIC" || true
.else
_THINNER=xargs grep -L "^.NO_UNIVERSE" || true
.endif