Browse Source

sysbuild: include HWMv2 Kconfig in sysbuild

Including HWMv2 Kconfig in sysbuild allows sysbuild to introduce
configuration options or defaults based on selected board and SoC.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
pull/69766/head
Torsten Rasmussen 2 years ago committed by Fabio Baltieri
parent
commit
e2ff2a88ba
  1. 4
      share/sysbuild/CMakeLists.txt
  2. 2
      share/sysbuild/Kconfig
  3. 5
      share/sysbuild/Kconfig.v1
  4. 32
      share/sysbuild/Kconfig.v2

4
share/sysbuild/CMakeLists.txt

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
# Copyright (c) 2023 Nordic Semiconductor
# Copyright (c) 2021-2023 Nordic Semiconductor
#
# SPDX-License-Identifier: Apache-2.0
@ -19,7 +19,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake/modules) @@ -19,7 +19,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake/modules)
# List of Zephyr and sysbuild CMake modules we need for sysbuild.
# Note: sysbuild_kconfig will internally load kconfig CMake module.
set(zephyr_modules extensions
sysbuild_extensions python west root zephyr_module boards shields
sysbuild_extensions python west root zephyr_module boards shields hwm_v2
sysbuild_kconfig native_simulator_sb_extensions
)

2
share/sysbuild/Kconfig

@ -2,6 +2,8 @@ @@ -2,6 +2,8 @@
#
# SPDX-License-Identifier: Apache-2.0
rsource "Kconfig.$(HWM_SCHEME)"
comment "Sysbuild image configuration"
osource "$(BOARD_DIR)/Kconfig.sysbuild"

5
share/sysbuild/Kconfig.v1

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
# Copyright (c) 2023 Nordic Semiconductor
#
# SPDX-License-Identifier: Apache-2.0
# Intentionally left empty as sysbuild Kconfig doesn't support hw model v1.

32
share/sysbuild/Kconfig.v2

@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
# Copyright (c) 2023 Nordic Semiconductor
#
# SPDX-License-Identifier: Apache-2.0
config BOARD
string
default "$(BOARD)"
help
This option holds the name of the board and is used to locate the files
related to the board in the source tree (under boards/).
The Board is the first location where we search for a linker.ld file,
if not found we look for the linker file in
soc/<arch>/<family>/<series>
config BOARD_REVISION
def_string "$BOARD_REVISION"
help
If the BOARD has a revision field set, this is the revision.
Otherwise, it is the empty string. For example, if BOARD is
"plank@foo", this option will be "foo". If BOARD is "plank",
this option will be the empty string.
config BOARD_DEPRECATED_RELEASE
string
help
This hidden option is set in the board configuration and indicates
the Zephyr release that the board configuration will be removed.
When set, any build for that board will generate a clearly visible
deprecation warning.
source "boards/Kconfig.$(HWM_SCHEME)"
source "soc/Kconfig.$(HWM_SCHEME)"
Loading…
Cancel
Save