diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2025-05-20 08:21:30 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-29 18:42:38 -0600 |
commit | 1a59e6d3ba8a2f63a27a1e69286affd0bdc66dbf (patch) | |
tree | dc209b4bb736755aa70db85f53e222fe1c9bdbb3 | |
parent | 88067ffc0c6f8c4f5142a1f8d08a206f3ed49083 (diff) |
kbuild: generate modules.order only when CONFIG_MODULES=y
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>
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ed58bcab291..2b2beb01bd3 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -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) |