kconfig: optional sourcing of $(KCONFIG_BINARY_DIR)/Kconfig.modules

Change sourcing of generated Kconfig.module to be optional.

It should be possible to run parse the Zephyr Kconfig tree even if the
Kconfig.modules file has not been generated.

This can be useful in testing where you may wish to run without Zephyr
modules present, and thus not load the Zephyr module CMake module.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2022-08-05 10:30:00 +02:00 committed by Carles Cufí
parent a450c663f2
commit 9871a05a67

View File

@ -3,7 +3,7 @@
comment "Available modules."
source "$(KCONFIG_BINARY_DIR)/Kconfig.modules"
osource "$(KCONFIG_BINARY_DIR)/Kconfig.modules"
comment "Optional modules. Make sure they're installed, via the project manifest."