zephyr/cmake
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
..
app
bintools toolchain: iar: Add experimental IAR support 2025-02-14 19:12:44 +00:00
compiler cmake: Remove previously deprecated look-ups 2025-03-24 07:53:31 +01:00
emu boards: intel: ish: Improve Simics support 2024-12-12 16:22:34 +01:00
flash cmake: flash: update cmake to support rtt target 2024-11-21 11:01:55 +00:00
ide
linker linker: Add underscore between the init level and priority 2025-03-19 18:53:22 -04:00
linker_script cmake: linker: Removed unnecessary regexp in link generator 2025-03-20 21:58:14 +01:00
makefile_exports
modules cmake: support directory as argument to zephyr_library_amend() 2025-03-26 16:26:40 +01:00
reports cmake: reports: Fix file prefix for tfm/bl2 2025-02-24 15:36:45 +00:00
sca sca: gcc: add support for additional analyzer options 2025-03-13 16:53:26 +00:00
toolchain logging: Added config to disable vla in statements 2025-03-11 18:55:08 +01:00
usage cmake: targets: usage: add missing custom targets 2024-08-31 06:46:44 -04:00
util
cfb.cmake
extra_flags.cmake
gcc-m-cpu.cmake arch: Add Cortex-R8 support 2024-10-01 09:58:22 +02:00
gcc-m-fpu.cmake arch: Add Cortex-R8 support 2024-10-01 09:58:22 +02:00
gen_version_h.cmake cmake: Create git module 2024-09-12 10:04:05 +02:00
kobj.cmake
llext-edk.cmake llext-edk: export board information to EDK files 2025-03-12 19:02:45 +01:00
mcuboot.cmake cmake: mcuboot: Flash confirmed file if available 2025-03-26 16:20:13 +01:00
package_helper.cmake cmake: move script mode handling from package helper to extensions.cmake 2024-10-08 17:00:30 +02:00
pristine.cmake
target_toolchain_flags.cmake cmake: source dedicated linker library properties for native builds 2024-11-16 15:28:20 -05:00
verify-toolchain.cmake
vif.cmake
yaml-filter.cmake cmake: yaml: add support for generator expressions 2025-01-30 14:10:53 +01:00