1# Actinius Icarus Bee board configuration 2 3# Copyright (c) 2021 Actinius 4# SPDX-License-Identifier: Apache-2.0 5 6if BOARD_ACTINIUS_ICARUS_BEE 7 8source "boards/actinius/common/Kconfig" 9 10# For the secure version of the board the firmware is linked at the beginning 11# of the flash, or into the code-partition defined in DT if it is intended to 12# be loaded by MCUboot. If the secure firmware is to be combined with a non- 13# secure image (TRUSTED_EXECUTION_SECURE=y), the secure FW image shall always 14# be restricted to the size of its code partition. 15# For the non-secure version of the board, the firmware 16# must be linked into the code-partition (non-secure) defined in DT, regardless. 17# Apply this configuration below by setting the Kconfig symbols used by 18# the linker according to the information extracted from DT partitions. 19 20# Workaround for not being able to have commas in macro arguments 21DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition 22 23config FLASH_LOAD_SIZE 24 default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 25 depends on BOARD_ACTINIUS_ICARUS_BEE_NRF9160 && TRUSTED_EXECUTION_SECURE 26 27if BOARD_ACTINIUS_ICARUS_BEE_NRF9160_NS 28 29config FLASH_LOAD_OFFSET 30 default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 31 32config FLASH_LOAD_SIZE 33 default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 34 35endif # BOARD_ACTINIUS_ICARUS_BEE_NRF9160_NS 36 37endif # BOARD_ACTINIUS_ICARUS_BEE 38