zephyr/cmake/modules
Torsten Rasmussen 6384f28a2d cmake: support directory as argument to zephyr_library_amend()
Extend `zephyr_library_amend()` to support an optional directory
argument.
The current `zephyr_library_amend()` works well when used inside a
Zephyr module with same structure, but fails when the macro is called
from Zephyr module integration code is located in a Zephyr
`MODULE_EXT_ROOT` because in this case the CMake code being executed
is not present in the Zephyr module itself, in which case the dir name
creation based on relative to module dir give wrong result.

For this use-case then support a base directory.
This also allows for use-cases in Zephyr modules where the directory
structure matching Zephyr's own structure is placed in a sub-folder.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-03-26 16:26:40 +01:00
..
arch.cmake infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
basic_settings.cmake sysbuild: Use UTF-8 encoding for cache 2024-06-13 05:31:50 -04:00
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: dts: print error message if DTC fails 2025-03-24 19:33:18 +01:00
extensions.cmake cmake: support directory as argument to zephyr_library_amend() 2025-03-26 16:26:40 +01: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 cmake: modules: fix FindThreads use of deprecated PTHREAD config 2024-06-20 17:03:57 -04:00
FindZephyr-sdk.cmake cmake: support range for find_package(Zephyr-sdk) 2024-10-24 14:06:45 +02:00
generated_file_directories.cmake build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
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 infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
kernel.cmake cmake: modules: Refer to log file based on CMake version 2025-03-14 01:01:43 +01:00
pre_dt.cmake infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
python.cmake cmake: Remove previously deprecated look-ups 2025-03-24 07:53:31 +01:00
root.cmake sysbuild: Add support for snippets 2024-12-27 07:18:13 +01:00
shields.cmake
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: Remove previously deprecated look-ups 2025-03-24 07:53:31 +01:00
user_cache.cmake
version.cmake cmake: Added "-" support to EXTRAVERSION 2025-01-21 15:13:36 +01:00
west.cmake
yaml.cmake cmake: escape json input string 2025-02-21 11:41:26 +00:00
zephyr_default.cmake infrastructure: Remove hwmv1 support 2025-03-13 16:53:07 +00:00
zephyr_module.cmake