Skip to content

Commit 7d7fed0

Browse files
alextsamioannisg
authored andcommitted
boards: actinius_icarus: change defaults to use new kconfig functions
Change default flash size and offset to use the new kconfig function `dt_chosen_reg_addr` instead of deprecated `dt_hex_val` Signed-off-by: Alex Tsamakos <[email protected]>
1 parent 88dfb88 commit 7d7fed0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

boards/arm/actinius_icarus/Kconfig.defconfig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,23 @@ endif # SPI
4747
# Apply this configuration below by setting the Kconfig symbols used by
4848
# the linker according to the information extracted from DT partitions.
4949

50+
# Workaround for not being able to have commas in macro arguments
51+
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
52+
5053
if BOARD_ACTINIUS_ICARUS && TRUSTED_EXECUTION_SECURE
5154

5255
config FLASH_LOAD_SIZE
53-
default $(dt_hex_val,DT_CODE_PARTITION_SIZE)
56+
default $(dt_chosen_reg_size,$(DT_CHOSEN_Z_CODE_PARTITION))
5457

5558
endif # BOARD_ACTINIUS_ICARUS && TRUSTED_EXECUTION_SECURE
5659

5760
if BOARD_ACTINIUS_ICARUS_NS
5861

5962
config FLASH_LOAD_OFFSET
60-
default $(dt_hex_val,DT_CODE_PARTITION_OFFSET)
63+
default $(dt_chosen_reg_addr,$(DT_CHOSEN_Z_CODE_PARTITION))
6164

6265
config FLASH_LOAD_SIZE
63-
default $(dt_hex_val,DT_CODE_PARTITION_SIZE)
66+
default $(dt_chosen_reg_size,$(DT_CHOSEN_Z_CODE_PARTITION))
6467

6568
endif # BOARD_ACTINIUS_ICARUS_NS
6669

0 commit comments

Comments
 (0)