Skip to content

Commit e0a9bd7

Browse files
nashifkartben
authored andcommitted
Revert "kconfig: Don't USE_DT_CODE_PARTITION if there isn't one"
This reverts commit 1440f5c. Fixes zephyrproject-rtos#84196 Signed-off-by: Anas Nashif <[email protected]>
1 parent 3767641 commit e0a9bd7

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Kconfig.zephyr

+3-10
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,17 @@ config HAS_FLASH_LOAD_OFFSET
8888

8989
if HAS_FLASH_LOAD_OFFSET
9090

91-
# Workaround for not being able to have commas in macro arguments
92-
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
93-
94-
config HAS_DT_CODE_PARTITION
95-
def_bool "$(dt_chosen_path,$(DT_CHOSEN_Z_CODE_PARTITION))" != ""
96-
help
97-
Symbol that indicates whether the "zephyr,code-partition"
98-
chosen property is set. Other settings may depend on it.
99-
10091
config USE_DT_CODE_PARTITION
10192
bool "Link application into /chosen/zephyr,code-partition from devicetree"
102-
depends on HAS_DT_CODE_PARTITION
10393
help
10494
When enabled, the application will be linked into the flash partition
10595
selected by the zephyr,code-partition property in /chosen in devicetree.
10696
When this is disabled, the flash load offset and size can be set manually
10797
below.
10898

99+
# Workaround for not being able to have commas in macro arguments
100+
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
101+
109102
config FLASH_LOAD_OFFSET
110103
# Only user-configurable when USE_DT_CODE_PARTITION is disabled
111104
hex "Kernel load offset" if !USE_DT_CODE_PARTITION

0 commit comments

Comments
 (0)