17f1b0adec
A design flaw of 'gsource' is that there's no way to require at least one file to match the glob pattern. This could lead to silent errors. Switch to a new design, where a plain 'source' is globbing and requires at least one file to match. A separate 'osource' (optional source) statement is available for cases where it's okay for a pattern (or plain filename) to not match any files. 'orsource' combines 'osource' and 'rsource' (relative source). This commit search-replaces 'gsource' with 'source', but backwards compatibility with 'gsource' is still maintained by making it an alias for 'osource' (and by making 'grsource' an alias for 'orsource'). The three Kconfig files arch/{nios2,posix,xtensa}/Kconfig source arch/{nios2,posix,xtensa}/soc/*/Kconfig, which doesn't match any files. Use 'osource' for those. The soc/*/Kconfig files seem to be for additional SoC-specific symbols, only none exist yet on those ARCHes. Also use 'osource' for the source of $ENV_VAR_BOARD_DIR/Kconfig in boards/Kconfig, which doesn't exist for all boards. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
32 lines
741 B
Plaintext
32 lines
741 B
Plaintext
|
|
config BOARD_DEPRECATED
|
|
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.
|
|
|
|
config QEMU_TARGET
|
|
bool
|
|
help
|
|
Mark all QEMU targets with this variable for checking whether we are
|
|
running in an emulated environment.
|
|
|
|
# Note: $ENV_VAR_BOARD_DIR might be a glob pattern
|
|
|
|
choice
|
|
prompt "Board Selection"
|
|
source "$ENV_VAR_BOARD_DIR/Kconfig.board"
|
|
endchoice
|
|
|
|
|
|
menu "Board Options"
|
|
# There might not be any board options, hence the optional source
|
|
osource "$ENV_VAR_BOARD_DIR/Kconfig"
|
|
endmenu
|
|
|
|
menu "Shields"
|
|
source "boards/shields/Kconfig"
|
|
endmenu
|