kbuild: clear KBUILD_MODULES in top Makefile if CONFIG_MODULES=n
Do not try to build any module-related artifacts when CONFIG_MODULES is disabled. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
@@ -77,7 +77,7 @@ ifdef need-builtin
|
||||
builtin-target := $(obj)/built-in.a
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_MODULES)$(need-modorder),y1)
|
||||
ifdef need-modorder
|
||||
modorder-target := $(obj)/modules.order
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user