From 52a3ec9df39de0f9f631cdd75f585dc073c29894 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 12 Aug 2022 10:00:38 -0500 Subject: [PATCH] kconfig: Move Kconfig.dts sourcing earlier Move Kconfig.dts before modules so that any of the auto generated symbols will be available to module Kconfigs. Signed-off-by: Kumar Gala --- Kconfig.zephyr | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 7a3b2d602d7..d9e0a998879 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -28,6 +28,10 @@ osource "soc/$(ARCH)/*/Kconfig.defconfig" # This loads the toolchain defconfigs osource "$(TOOLCHAIN_KCONFIG_DIR)/Kconfig.defconfig" +# This should be early since the autogen Kconfig.dts symbols may get +# used by modules +source "dts/Kconfig" + menu "Modules" source "modules/Kconfig" @@ -38,7 +42,6 @@ source "boards/Kconfig" source "soc/Kconfig" source "arch/Kconfig" source "kernel/Kconfig" -source "dts/Kconfig" source "drivers/Kconfig" source "lib/Kconfig" source "subsys/Kconfig"