zephyr/cmake
Nicolas Lebedenco 6a42ede43b cmake: Normalize GNULD_LINKER variable
Some toolchains may generate convoluted paths when reporting accessory
tools. This is the case with GCC in the Zephyr SDK toolchain. For
example, for a Zephyr SDK installed under `C:\Portable\Zephyr` a call to
`gcc --print-prog-name=ld.bfd` should normally return something like
`c:/portable/zephyr/zephyr-sdk-0.16.5/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe`
but because of how the toolchain was created the path reported gets all
messed up with relative fragments. In above case, the actual path reported
was `c:/portable/zephyr/zephyr-sdk-0.16.5/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe`
One might argue that this should be fixed in the toolchain which could be
possible for the Zephyr SDK but not for other toolchains (definitely not
for proprietary ones).

Signed-off-by: Nicolas Lebedenco <nicolas@lebedenco.net>
2024-04-16 16:38:35 -07:00
..
app
bintools
compiler llext: use CMake shared library support on Xtensa 2024-04-08 09:04:32 +02:00
emu
flash
ide
linker linker: Include libkernel.a in the whole-archive when llext is enabled 2024-03-26 19:31:56 -04:00
linker_script input: rename the internal callback struct to input_callback 2024-03-19 14:30:39 +01:00
makefile_exports
modules cmake: Normalize GNULD_LINKER variable 2024-04-16 16:38:35 -07:00
reports
sca cmake: sca: codechecker: search for 'CodeChecker' and 'codechecker' 2024-03-28 16:44:13 -04:00
toolchain kconfig: llvm: riscv: Advertise TLS support when using llvm for RISC-V 2024-03-18 13:16:06 +01:00
usage
util
cfb.cmake
extra_flags.cmake
gcc-m-cpu.cmake
gcc-m-fpu.cmake
gen_version_h.cmake
hex.cmake
kobj.cmake
mcuboot.cmake
package_helper.cmake
pristine.cmake
target_toolchain_flags.cmake
verify-toolchain.cmake
vif.cmake