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:
parent
91f67a13f7
commit
84628e8b53
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ config HAS_FLASH_LOAD_OFFSET
|
||||||
This option is selected by targets having a FLASH_LOAD_OFFSET
|
This option is selected by targets having a FLASH_LOAD_OFFSET
|
||||||
and FLASH_LOAD_SIZE.
|
and FLASH_LOAD_SIZE.
|
||||||
|
|
||||||
|
if !HAS_DTS
|
||||||
config FLASH_LOAD_OFFSET
|
config FLASH_LOAD_OFFSET
|
||||||
hex "Kernel load offset"
|
hex "Kernel load offset"
|
||||||
default 0
|
default 0
|
||||||
|
@ -38,6 +39,7 @@ config FLASH_LOAD_SIZE
|
||||||
the device.
|
the device.
|
||||||
|
|
||||||
If unsure, leave at the default value 0.
|
If unsure, leave at the default value 0.
|
||||||
|
endif
|
||||||
|
|
||||||
config TEXT_SECTION_OFFSET
|
config TEXT_SECTION_OFFSET
|
||||||
hex "TEXT section offset"
|
hex "TEXT section offset"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue