blob: 47bb3ae22401673e19388f88a8bbe79a1fa8dbac [file] [log] [blame]
Jamie McCraeefdd9d42024-03-04 09:16:10 +00001# Copyright (c) 2022-2024 Nordic Semiconductor ASA
Torsten Rasmussen8dc3f852022-09-14 22:23:15 +02002
3# SPDX-License-Identifier: Apache-2.0
4
Torsten Rasmussen732c5042024-03-19 15:26:59 +01005BOARD_STRING := $(normalize_upper,$(BOARD))
6BOARD_TARGET_STRING := $(normalize_upper,$(BOARD)$(BOARD_QUALIFIERS))
Jamie McCraeefdd9d42024-03-04 09:16:10 +00007BOARD_QUALIFIERS_NO_SEPARATOR := $(substring,$(BOARD_QUALIFIERS),1)
Torsten Rasmussen8dc3f852022-09-14 22:23:15 +02008
9config BOARD_$(BOARD_STRING)
10 def_bool y
11 help
12 Kconfig symbol identifying the board.
13
Torsten Rasmussen732c5042024-03-19 15:26:59 +010014config BOARD_$(BOARD_TARGET_STRING)
Torsten Rasmussen8dc3f852022-09-14 22:23:15 +020015 def_bool y
16 help
Torsten Rasmussen732c5042024-03-19 15:26:59 +010017 Kconfig symbol identifying the board target.
Torsten Rasmussen8dc3f852022-09-14 22:23:15 +020018
Jamie McCraeefdd9d42024-03-04 09:16:10 +000019config BOARD_QUALIFIERS
20 string
21 default "$(BOARD_QUALIFIERS_NO_SEPARATOR)"
22 help
23 Contains the qualifiers of the board being used without the name of the board itself.
24
25 For example, if building for ``nrf5340dk/nrf5340/cpuapp`` then this will contain the
26 value ``nrf5340/cpuapp``.
27
Torsten Rasmussen8dc3f852022-09-14 22:23:15 +020028osource "$(BOARD_DIR)/Kconfig.$(BOARD)"