This commit introduces support for multiple SOC_ROOT. This means that additional SOC_ROOTs specified using -DSOC_ROOT as argument to CMake will be forming a list together with ${ZEPHYR_BASE}. This allows for greater flexibility, as developers can now specify multiple out-of-tree SoCs and not worry about the SoC used for the board they compile for. Also it avoid code, such as: if(BOARD STREQUAL my_board_using_out_of_tree_soc) set(SOC_ROOT some/out/of/tree/soc/path) endif() in application CMakeLists.txt. Finally, allowing multiple SOC_ROOTs prepares for specifying SOC_ROOTs in Zephyr modules. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
43 lines
910 B
Text
43 lines
910 B
Text
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
choice
|
|
prompt "SoC/CPU/Configuration Selection"
|
|
|
|
source "$(KCONFIG_BINARY_DIR)/Kconfig.soc"
|
|
|
|
endchoice
|
|
|
|
menu "Hardware Configuration"
|
|
source "$(KCONFIG_BINARY_DIR)/Kconfig.soc.arch"
|
|
|
|
|
|
module = SOC
|
|
module-str = SOC
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
endmenu
|
|
|
|
# The helper symbols below are put here due to an unusual setup: The simulated
|
|
# nrf52_bsim board uses the POSIX arch, but is compatible with Nordic ARM
|
|
# boards
|
|
|
|
config SOC_COMPATIBLE_NRF
|
|
bool
|
|
|
|
config SOC_COMPATIBLE_NRF52X
|
|
bool
|
|
|
|
config SOC_COMPATIBLE_NRF52832
|
|
bool
|
|
|
|
#
|
|
# SOC_*_LD: SoC specific Linker script additions
|
|
#
|
|
|
|
config SOC_DEPRECATED_RELEASE
|
|
string
|
|
help
|
|
This hidden option is set in the SoC configuration and indicates
|
|
the Zephyr release that the SoC configuration will be removed.
|
|
When set, any build for that SoC will generate a clearly visible
|
|
deprecation warning.
|