summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-14 04:05:15 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-20 01:42:46 +0100
commit1d8001ef358da16f0ca64ab7fae9f34d7b91101e (patch)
tree4659da7c00c1efea17913475861835469939b1b4 /scripts/Makefile.build
parentkbuild: pkg: use -f $(srctree)/Makefile to recurse to top Makefile (diff)
downloadlinux-1d8001ef358da16f0ca64ab7fae9f34d7b91101e.tar.xz
linux-1d8001ef358da16f0ca64ab7fae9f34d7b91101e.zip
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 <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build2
1 files changed, 2 insertions, 0 deletions
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)