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 <galak@kernel.org>
diff --git a/Kconfig.zephyr b/Kconfig.zephyr
index 7a3b2d6..d9e0a99 100644
--- a/Kconfig.zephyr
+++ b/Kconfig.zephyr
@@ -28,6 +28,10 @@
# 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 "soc/Kconfig"
source "arch/Kconfig"
source "kernel/Kconfig"
-source "dts/Kconfig"
source "drivers/Kconfig"
source "lib/Kconfig"
source "subsys/Kconfig"