From: Masahiro Yamada Date: Fri, 22 May 2020 01:59:59 +0000 (+0900) Subject: kbuild: clear KBUILD_MODULES in top Makefile if CONFIG_MODULES=n X-Git-Tag: v5.10.7~2415^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b480fec988b051df792633e99bf622fc63a305f6;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/Makefile b/Makefile index 1f5bbfb..72eb55a 100644 --- a/Makefile +++ b/Makefile @@ -1724,6 +1724,10 @@ build-dirs := $(foreach d, $(build-dirs), \ endif +ifndef CONFIG_MODULES +KBUILD_MODULES := +endif + # Handle descending into subdirectories listed in $(build-dirs) # Preset locale variables to speed up the build process. Limit locale # tweaks to this spot to avoid wrong language settings when running diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 9af88f4..f46d254 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -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