Skip to content

Commit

Permalink
kbuild: clear KBUILD_MODULES in top Makefile if CONFIG_MODULES=n
Browse files Browse the repository at this point in the history
Do not try to build any module-related artifacts when CONFIG_MODULES
is disabled.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed May 25, 2020
1 parent e578edc commit b480fec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b480fec

Please sign in to comment.