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 <andy.gross@linaro.org>
This commit is contained in:
Andy Gross 2017-05-23 10:56:13 -05:00 committed by Kumar Gala
commit 84628e8b53

View file

@ -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"