diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-19 02:54:58 +0900 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-20 13:08:54 +0200 |
commit | c6aea1e9a377de5e67ce5c71d7487525af633a0b (patch) | |
tree | bec24ce375c6d1cbeb992fa8832ddcb32ad83510 /Makefile | |
parent | fc7c564853b92110342b0c928cc3d3d3bd6d0a09 (diff) | |
download | barebox-c6aea1e9a377de5e67ce5c71d7487525af633a0b.tar.gz barebox-c6aea1e9a377de5e67ce5c71d7487525af633a0b.tar.xz |
kbuild: build modules by 'make'
In Linux, 'make' and 'make all' work equivalently; it builds both
vmlinux and modules.
In barebox, strangely, 'make all' builds both barebox and modules,
but 'make' builds only barebox because KBUILD_MODULES is unset.
The check for 'ifeq ($(MAKECMDGOALS),)' is missing since the day-one.
Fixes: b02e0966412c ("add additional linking stage for modules")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -533,6 +533,10 @@ ifneq ($(filter all _all modules,$(MAKECMDGOALS)),) KBUILD_MODULES := 1 endif +ifeq ($(MAKECMDGOALS),) + KBUILD_MODULES := 1 +endif + export KBUILD_MODULES KBUILD_BUILTIN ifdef need-config |