Revert "kconfig: Don't USE_DT_CODE_PARTITION if there isn't one"

This reverts commit 1440f5c19c.

Fixes #84196

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2025-01-27 09:07:28 -05:00 committed by Benjamin Cabé
commit e0a9bd7312

View file

@ -88,24 +88,17 @@ config HAS_FLASH_LOAD_OFFSET
if HAS_FLASH_LOAD_OFFSET if HAS_FLASH_LOAD_OFFSET
# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
config HAS_DT_CODE_PARTITION
def_bool "$(dt_chosen_path,$(DT_CHOSEN_Z_CODE_PARTITION))" != ""
help
Symbol that indicates whether the "zephyr,code-partition"
chosen property is set. Other settings may depend on it.
config USE_DT_CODE_PARTITION config USE_DT_CODE_PARTITION
bool "Link application into /chosen/zephyr,code-partition from devicetree" bool "Link application into /chosen/zephyr,code-partition from devicetree"
depends on HAS_DT_CODE_PARTITION
help help
When enabled, the application will be linked into the flash partition When enabled, the application will be linked into the flash partition
selected by the zephyr,code-partition property in /chosen in devicetree. selected by the zephyr,code-partition property in /chosen in devicetree.
When this is disabled, the flash load offset and size can be set manually When this is disabled, the flash load offset and size can be set manually
below. below.
# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
config FLASH_LOAD_OFFSET config FLASH_LOAD_OFFSET
# Only user-configurable when USE_DT_CODE_PARTITION is disabled # Only user-configurable when USE_DT_CODE_PARTITION is disabled
hex "Kernel load offset" if !USE_DT_CODE_PARTITION hex "Kernel load offset" if !USE_DT_CODE_PARTITION