summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2017-09-11 01:53:22 +0000
committerian <ian@FreeBSD.org>2017-09-11 01:53:22 +0000
commita8c8c6f7c99020232ee481f9e5c9389c60f8e20a (patch)
tree5c9a3df9435bc1f4e43ac5c3e28412332b53f9ac /Makefile
parent7b8e42d42e8122a5ba629d83a2842190d6b9820c (diff)
downloadFreeBSD-src-a8c8c6f7c99020232ee481f9e5c9389c60f8e20a.zip
FreeBSD-src-a8c8c6f7c99020232ee481f9e5c9389c60f8e20a.tar.gz
MFC r319859, r319888:
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). By popular demand: change MAKE_GENERIC_KERNELS to MAKE_LINT_KERNELS. It appears that the same arches that lack GENERIC kernel configs also lack LINT. But enough different arches get built to ensure a kernel change should build everywhere (32 and 64 bit, clang and old gcc, little and big endian).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 084f2f9..4be52c6 100644
--- a/Makefile
+++ b/Makefile
@@ -521,6 +521,8 @@ TARGET!= uname -m
.endif
.if defined(MAKE_ALL_KERNELS)
_THINNER=cat
+.elif defined(MAKE_LINT_KERNELS)
+_THINNER=grep 'LINT' || true
.else
_THINNER=xargs grep -L "^.NO_UNIVERSE" || true
.endif
OpenPOWER on IntegriCloud