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>
This commit is contained in:
Ilias Apalodimas 2025-05-20 08:21:30 +03:00 committed by Tom Rini
parent 88067ffc0c
commit 1a59e6d3ba

View 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)