zephyr/cmake/modules
Joakim Andersson 12fdde6694 cmake: kconfig: Add APP_DIR to kconfig environment
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>
2025-07-08 13:40:34 -05:00
..
arch.cmake infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
basic_settings.cmake
boards.cmake infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
ccache.cmake
configuration_files.cmake cmake: Remove build type 2025-01-30 16:19:57 +01:00
doc.cmake
dts.cmake cmake: modules: Add zephyr_dt_import 2025-05-22 13:44:18 +02:00
extensions.cmake cmake: extensions: Check no arguments are given to zephyr_library 2025-06-27 10:59:22 +02:00
Findarmclang.cmake
FindBabbleSim.cmake
FindDeprecated.cmake cmake: Remove previously deprecated look-ups 2025-03-24 07:53:31 +01:00
FindDtc.cmake
FindGnuLd.cmake cmake: modules/FindGnuLd: support an additional obselete version format 2025-01-27 13:24:52 +01:00
FindHostTools.cmake cmake: Remove previously deprecated look-ups 2025-03-24 07:53:31 +01:00
FindLlvmLld.cmake
FindoneApi.cmake
FindScaTools.cmake
FindTargetTools.cmake cmake: improve Zephyr link phase 2024-10-04 16:34:35 +01:00
FindThreads.cmake
FindZephyr-sdk.cmake cmake: support range for find_package(Zephyr-sdk) 2024-10-24 14:06:45 +02:00
generated_file_directories.cmake
git.cmake cmake: Create git module 2024-09-12 10:04:05 +02:00
hwm_v2.cmake cmake: scripts: support SoC extension 2024-10-26 17:14:06 +02:00
kconfig.cmake cmake: kconfig: Add APP_DIR to kconfig environment 2025-07-08 13:40:34 -05:00
kernel.cmake CMake: Add support for .mot binary file format 2025-05-02 09:18:16 +02:00
pre_dt.cmake dts: Move vendor-specific dtsi to dedicated folder 2025-04-29 13:00:03 +02:00
python.cmake Revert "doc: ci: Zephyr now requires Python 3.12 or higher" 2025-07-04 15:50:06 -05:00
root.cmake sysbuild: Add support for snippets 2024-12-27 07:18:13 +01:00
shields.cmake shields: scripts: cmake: use list_shields.py in shields.cmake 2025-05-23 17:19:58 +02:00
snippets.cmake cmake: snippets: Add snippet help message 2025-02-13 16:43:20 +01:00
soc.cmake infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
unittest.cmake cmake: clean up gen_kobject_list.py invocations 2025-05-07 15:10:05 +02:00
user_cache.cmake
version.cmake cmake: Added "-" support to EXTRAVERSION 2025-01-21 15:13:36 +01:00
west.cmake
yaml.cmake yaml: save intermediate files in the build directory 2025-05-08 19:46:18 +02:00
zephyr_default.cmake infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
zephyr_module.cmake cmake: fix Zephyr module ext order 2025-04-03 13:16:56 +02:00