kbuild: generate modules.order only when CONFIG_MODULES=y
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 14 Feb 2019 03:05:15 +0000 (12:05 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 20 Feb 2019 00:42:46 +0000 (09:42 +0900)
Do not generate pointless modules.order when the module support is
disabled.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.build

index 0a9d849d0fab21fcd4f4101ef936ffe61803bc3e..b803233327d0e3f9410301da30cfaebec6fdd7bb 100644 (file)
@@ -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)