summaryrefslogtreecommitdiff
path: root/Kconfig.zephyr
diff options
context:
space:
mode:
authorDaniel Leung <daniel.leung@intel.com>2016-03-25 14:30:50 -0700
committerAnas Nashif <anas.nashif@intel.com>2016-03-26 20:36:32 -0400
commit8df10d458463e8f3069e134558e150357b1ddc99 (patch)
tree1e95aea5016ac3655af6a00e9d72ca564af764ea /Kconfig.zephyr
parentc6390d559f068dece53efcdadff64a40357857d7 (diff)
kconfig: untangle ordering and dependencies
There are two major issues with the kconfig: () Some of the config options have incorrect dependencies inside help under menuconfig. For example, CONFIG_GPIO depends on BOARD_GALILEO. () Since the SoC and board specific kconfig files are parsed first, the help screen would say, for example, CONFIG_SPI is defined at arch/arm/soc/fsl_frdm_k64f/Kconfig. This is incorrect because the actual config is defined in drivers/spi/Kconfig. These cause great confusion to users of menuconfig/xconfig. To fix these, the SoC and board defaults are now to be parsed last. Note that the position swapping of defaults in this patch is due to the fact the the default parsed last will be used. And, spi_test is broken due to the fact that it requires CONFIG_SPI_INTEL_PORT_1, but never enables it anywhere. This is bypassed for now. Origin: refactored and edited from existing files Change-Id: I2a4b1ae5be4d27e68c960aa47d91ef350f2d500f Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Diffstat (limited to 'Kconfig.zephyr')
-rw-r--r--Kconfig.zephyr10
1 files changed, 10 insertions, 0 deletions
diff --git a/Kconfig.zephyr b/Kconfig.zephyr
index bdd3bacaf..4f754c367 100644
--- a/Kconfig.zephyr
+++ b/Kconfig.zephyr
@@ -2,6 +2,7 @@
#
# Copyright (c) 2014-2015 Wind River Systems, Inc.
+# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -29,3 +30,12 @@ source "net/Kconfig"
source "misc/Kconfig"
+#
+# The following are for Kconfig files for default values only.
+# These should be parsed at the end.
+#
+# Board defaults should be parsed before SoC defaults
+# because board usually overrides them.
+#
+source "boards/*/Kconfig.defconfig"
+source "arch/*/soc/*/Kconfig.defconfig"