From: Masahiro Yamada Date: Thu, 14 Feb 2019 03:05:15 +0000 (+0900) Subject: kbuild: generate modules.order only when CONFIG_MODULES=y X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1d8001ef358da16f0ca64ab7fae9f34d7b91101e;p=openwrt%2Fstaging%2Fblogic.git kbuild: generate modules.order only when CONFIG_MODULES=y Do not generate pointless modules.order when the module support is disabled. Signed-off-by: Masahiro Yamada --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 0a9d849d0fab..b803233327d0 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -63,7 +63,9 @@ ifneq ($(strip $(real-obj-y) $(need-builtin)),) builtin-target := $(obj)/built-in.a endif +ifdef CONFIG_MODULES modorder-target := $(obj)/modules.order +endif # We keep a list of all modules in $(MODVERDIR)