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).
This commit is contained in:
Ian Lepore 2017-06-12 17:22:23 +00:00
parent 0773ff183a
commit 1f14b5e4c0

View File

@ -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