]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
kbuild: generate modules.order only when CONFIG_MODULES=y
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 20 May 2025 05:21:30 +0000 (08:21 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 30 May 2025 00:42:38 +0000 (18:42 -0600)
Backport from kernel although it is unused since it makes diffing easier.
commit 1d8001ef358 ("kbuild: generate modules.order only when CONFIG_MODULES=y")

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
scripts/Makefile.build

index ed58bcab291e6f6fb2e6ce895e29cf75bce883f2..2b2beb01bd3b90e9c9a51f81b87b88865037b2a5 100644 (file)
@@ -82,7 +82,9 @@ ifneq ($(strip $(obj-y) $(obj-m) $(obj-) $(subdir-m) $(lib-target)),)
 builtin-target := $(obj)/built-in.o
 endif
 
+ifdef CONFIG_MODULES
 modorder-target := $(obj)/modules.order
+endif
 
 # We keep a list of all modules in $(MODVERDIR)