mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 14:41:59 +00:00
The $srctree environment variable gives the path relative to which '(o)source' statements work (the current directory is used if $srctree is unset). It is set to $ZEPHYR_BASE in cmake/kconfig.cmake, so there's no need to qualify the source of Kconfig.zephyr in sample Kconfig files (or in external projects). All 'source's in Zephyr assume that the Zephyr root directory is used as the srctree as well, and would break otherwise. Remove the $(ZEPHYR_BASE)s to make it clearer that all 'source' statements work relative to the Zephyr root. There was some user confusion on IRC. Also explain how things work in the documentation. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
12 lines
441 B
Plaintext
12 lines
441 B
Plaintext
mainmenu "Your Application Name"
|
|
|
|
# Your application configuration options go here
|
|
|
|
# Sources Kconfig.zephyr in the Zephyr root directory.
|
|
#
|
|
# Note: All 'source' statements work relative to the Zephyr root directory (due
|
|
# to the $srctree environment variable being set to $ZEPHYR_BASE). If you want
|
|
# to 'source' relative to the current Kconfig file instead, use 'rsource' (or a
|
|
# path relative to the Zephyr root).
|
|
source "Kconfig.zephyr"
|