zephyr/cmake
Luca Fancellu b3949415d8 cmake: gcc: Use --sysroot with gcc when SYSROOT_DIR is provided
When SYSROOT_DIR is provided, gcc should use it through the --sysroot=
option otherwise some commands won't work as expected.

For example, in the Yocto environment when cross compiling,
--print-libgcc-file-name prints only "libgcc.a" instead of the full
path to it and the subsequent assert_exists(LIBGCC_FILE_NAME) will
fail.

Fixes #45578
Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
2022-05-23 19:33:33 +09:00
..
app cmake: function to update Zephyr_DIR when loading old Zephyr packages 2022-03-07 16:35:54 +01:00
bintools cmake: Correct PATHS usage 2022-04-29 08:57:21 +02:00
compiler cmake: gcc: Use --sysroot with gcc when SYSROOT_DIR is provided 2022-05-23 19:33:33 +09:00
emu arch: common: dedicated `SEMIHOST` symbol 2022-04-21 13:04:52 +02:00
flash cmake: support multiple entries in board.cmake 2021-11-12 21:33:42 -05:00
ide
linker cmake: Correct PATHS usage 2022-04-29 08:57:21 +02:00
linker_script cmake: Add .tdata and .tbss to generated TLS linker sections 2022-04-28 11:09:01 +09:00
makefile_exports
modules ztest: add support for new and legacy include paths 2022-05-06 20:03:00 +02:00
reports scripts: size_report: Add support for TF-M and BL2 image size reports 2022-03-09 14:03:52 -05:00
toolchain include: Prefix includes to use a scope 2022-04-08 19:03:32 +02:00
usage cmake: boards and shields cmake files repurposed 2022-02-22 10:02:39 -08:00
util
cfb.cmake
extra_flags.cmake
gcc-m-cpu.cmake ARC: ARCv3: add HS5x support 2022-05-10 14:12:25 -04:00
gcc-m-fpu.cmake cmake: gcc: target_arm: Support advanced floating-point options 2022-05-05 12:03:27 +09:00
gen_version_h.cmake cmake: Zephyr CMake package and CMake modules 2022-02-22 10:02:39 -08:00
hex.cmake
kobj.cmake
mcuboot.cmake module: mcuboot: Add config option to support unsigned binary generation 2021-12-18 07:20:38 -05:00
package_helper.cmake cmake: package_helper CMake script 2022-02-23 11:34:22 -08:00
pristine.cmake
target_toolchain_flags.cmake everywhere: fix typos 2022-03-14 20:22:24 -04:00