mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-25 23:16:26 +00:00
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>
40 lines
948 B
Plaintext
40 lines
948 B
Plaintext
# Kconfig - general configuration options
|
|
|
|
#
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
# Copyright (c) 2016 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Include these first so that any properties (e.g. defaults) below can be
|
|
# overriden in *.defconfig files (by defining symbols in multiple locations).
|
|
# After merging all the symbol definitions, Kconfig picks the first property
|
|
# (e.g. the first default) with a satisfied condition.
|
|
#
|
|
# Board defaults should be parsed before SoC defaults, because boards usually
|
|
# overrides SoC values.
|
|
#
|
|
# Note: $ENV_VAR_ARCH and $ENV_VAR_BOARD_DIR might be glob patterns.
|
|
source "$ENV_VAR_BOARD_DIR/Kconfig.defconfig"
|
|
source "arch/$ENV_VAR_ARCH/soc/*/Kconfig.defconfig"
|
|
|
|
|
|
source "arch/Kconfig"
|
|
|
|
source "kernel/Kconfig"
|
|
|
|
source "dts/Kconfig"
|
|
|
|
source "drivers/Kconfig"
|
|
|
|
source "misc/Kconfig"
|
|
|
|
source "lib/Kconfig"
|
|
|
|
source "subsys/Kconfig"
|
|
|
|
source "ext/Kconfig"
|
|
|
|
source "tests/Kconfig"
|