Add APP_DIR as a kconfig environment variable.
This is useful in cases where you want to set a config path relative to
the directory of the application.
An example of this is how many sysbuild.cmake files sets the source
directory like this:
ExternalZephyrProject_Add(
APPLICATION remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_REMOTE_BOARD}
)
The same however cannot be done in Kconfig.sysbuild:
config NETCORE_IMAGE_PATH
default "${APP_DIR}/<image_path>" if NETCORE_ABC
Instead they must use ZEPHYR_MY_MODULE_MODULE_DIR, however not all
applications are part of a zephyr module.
Signed-off-by: Joakim Andersson <joerchan@gmail.com>
|
||
|---|---|---|
| .. | ||
| arch.cmake | ||
| basic_settings.cmake | ||
| boards.cmake | ||
| ccache.cmake | ||
| configuration_files.cmake | ||
| doc.cmake | ||
| dts.cmake | ||
| extensions.cmake | ||
| Findarmclang.cmake | ||
| FindBabbleSim.cmake | ||
| FindDeprecated.cmake | ||
| FindDtc.cmake | ||
| FindGnuLd.cmake | ||
| FindHostTools.cmake | ||
| FindLlvmLld.cmake | ||
| FindoneApi.cmake | ||
| FindScaTools.cmake | ||
| FindTargetTools.cmake | ||
| FindThreads.cmake | ||
| FindZephyr-sdk.cmake | ||
| generated_file_directories.cmake | ||
| git.cmake | ||
| hwm_v2.cmake | ||
| kconfig.cmake | ||
| kernel.cmake | ||
| pre_dt.cmake | ||
| python.cmake | ||
| root.cmake | ||
| shields.cmake | ||
| snippets.cmake | ||
| soc.cmake | ||
| unittest.cmake | ||
| user_cache.cmake | ||
| version.cmake | ||
| west.cmake | ||
| yaml.cmake | ||
| zephyr_default.cmake | ||
| zephyr_module.cmake | ||