From 84628e8b53eb2576c373fa67d566cb39ba7df259 Mon Sep 17 00:00:00 2001 From: Andy Gross Date: Tue, 23 May 2017 10:56:13 -0500 Subject: [PATCH] kconfig: misc: Conditionally remove FLASH_LOAD options This patch adds a condition on the FLASH_LOAD_OFFSET and FLASH_LOAD_SIZE to make them conditionally excluded if HAS_DTS is enabled. FLASH partition information must be defined for all DTS platforms which utilize flash. For DTS enabled platforms, CONFIG_FLASH_LOAD_OFFSET and CONFIG_FLASH_LOAD_SIZE will be generated from the flash information defined in the DTS file. The values used for these variables will be determined by the zephyr,code-partition chosen node. If no chosen node is specified, the zephyr,flash chosen node will be used. Signed-off-by: Andy Gross --- misc/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/Kconfig b/misc/Kconfig index 876f4665075..20e0666dea7 100644 --- a/misc/Kconfig +++ b/misc/Kconfig @@ -15,6 +15,7 @@ config HAS_FLASH_LOAD_OFFSET This option is selected by targets having a FLASH_LOAD_OFFSET and FLASH_LOAD_SIZE. +if !HAS_DTS config FLASH_LOAD_OFFSET hex "Kernel load offset" default 0 @@ -38,6 +39,7 @@ config FLASH_LOAD_SIZE the device. If unsure, leave at the default value 0. +endif config TEXT_SECTION_OFFSET hex "TEXT section offset"