zephyr/cmake
Daniel DeGrasse 10e85bf764 cmake: update API for zephyr_code_relocate to support relocating libraries
Update API for zephyr_code_relocate to support cmake generator expressions,
as well as relocating libraries.

zephyr_code_relocate can now accept a target name to the LIBRARY argument,
which will be converted into a set of source files from that
target to relocate.

Alternatively, files can be passed as a space separated list
or CMake generator expression. This allows users more
flexibility when relocating files. Glob matching functionality is still
available, although the preferred method to do this would now be:

file(GLOB relocate_sources "src/*.c")
zephyr_code_relocate(FILES ${relocate_sources} LOCATION <location>)

Note! This commit breaks support for zephyr_code_relocate until in tree
usages of the API are updated to the new format.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-01-17 18:08:37 +01:00
..
app
bintools cmake: lookup strip tool and set CMAKE_STRIP for host-gnu target 2022-11-01 11:59:19 +01:00
compiler treewide: Use CONFIG_CPP instead of CONFIG_CPLUSPLUS 2023-01-13 17:42:55 -05:00
emu cmake: armfvp: allow for extra arguments 2022-12-29 10:12:33 +01:00
flash cmake: update common Zephyr build settings to use zephyr_get() 2022-09-02 15:16:50 +02:00
ide
linker kconfig: linker: Add --no-relax build option 2023-01-16 11:20:32 +00:00
linker_script treewide: Use CONFIG_CPP instead of CONFIG_CPLUSPLUS 2023-01-13 17:42:55 -05:00
makefile_exports
modules cmake: update API for zephyr_code_relocate to support relocating libraries 2023-01-17 18:08:37 +01:00
reports
toolchain ARC: MWDT add TLS support 2022-11-29 09:48:23 +01:00
usage
util
cfb.cmake scripts: move gen_cfb_font_header.py to scripts/build 2022-07-12 10:03:45 +02:00
extra_flags.cmake cmake: fix improper use of separate_arguments 2022-09-05 10:22:05 +02:00
gcc-m-cpu.cmake
gcc-m-fpu.cmake cmake: gcc: Fix Cortex-R52 FPU type 2022-10-19 00:28:33 +09:00
gen_version_h.cmake
hex.cmake
kobj.cmake
mcuboot.cmake
package_helper.cmake
pristine.cmake
target_toolchain_flags.cmake
verify-toolchain.cmake cmake: rework of host tools and generic toolchain handling 2022-09-01 15:59:43 +02:00
vif.cmake usb-c: Generate USB-C connector VIF policies XML file 2022-12-02 08:46:04 -06:00