diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-22 03:59:59 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-25 17:03:16 +0200 |
commit | b480fec988b051df792633e99bf622fc63a305f6 (patch) | |
tree | e3f2357a05a09f9b49daa14664f2a5934f243173 /Makefile | |
parent | kbuild: remove ifdef builtin-target / lib-target (diff) | |
download | linux-b480fec988b051df792633e99bf622fc63a305f6.tar.xz linux-b480fec988b051df792633e99bf622fc63a305f6.zip |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |