Files
poky/meta/recipes-devtools
Sean Nyekjaer 62e4c1e1df rust-cross-canadian: set CC_<triple> for nativesdk
This fixes build errors when building rust bindings for C dependencies
for the sdk host.
This will allow us to build and run rust programs on the sdk host.

Before:
% cargo build --target x86_64-oesdk-linux-gnu -vv
[...]
   Compiling zstd-sys v2.0.13+zstd.1.5.6 (zstd-rs/zstd-safe/zstd-sys)
[zstd-sys 2.0.13+zstd.1.5.6] CC_x86_64-oesdk-linux-gnu = None
[zstd-sys 2.0.13+zstd.1.5.6] CC = Some(arm-oe-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/usr/local/sdk/sysroots/cortexa7t2hf-neon-oe-linux-gnueabi)
[zstd-sys 2.0.13+zstd.1.5.6] cargo:warning=ToolExecError: Command LC_ALL="C" "arm-oe-linux-gnueabi-gcc" "-mthumb" "-mfpu=neon" "-mfloat-abi=hard" "-mcpu=cortex-a7" "-D_TIME_BITS=64" "-D_FILE_OFFSET_BITS=64" "--sysroot=/usr/local/cc-sdk/sysroots/cortexa7t2hf-neon-oe-linux-gnueabi" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-O2" "-pipe" "-g" "-feliminate-unused-debug-types" "-flto" "-ffat-lto-objects" "-fuse-linker-plugin" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "zstd-rs/target/x86_64-oesdk-linux-gnu/debug/build/zstd-sys-b2560022e172eec3/out/44ff4c55aa9e5133-debug.o" "-c" "zstd/lib/common/debug.c" with args arm-oe-linux-gnueabi-gcc did not execute successfully (status code exit status: 1).cargo:warning=arm-oe-linux-gnueabi-gcc: error: unrecognized command-line option '-m64'

After:
% cargo build --target x86_64-oesdk-linux-gnu -vv
[...]
   Compiling zstd-sys v2.0.13+zstd.1.5.6 (zstd-rs/zstd-safe/zstd-sys)
[zstd-sys 2.0.13+zstd.1.5.6] CC_x86_64_oesdk_linux_gnu = Some(x86_64-oesdk-linux-gcc)
[...]
   Compiling zstd v0.13.2 (zstd-rs)
    Finished dev [unoptimized + debuginfo] target(s) in 14.67s

(From OE-Core rev: 3c8fedd6e5a3251b7a7a73cc92b153d8e68cb8e5)

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-02-01 13:20:45 +00:00
..
2024-01-21 12:27:12 +00:00
2023-07-30 07:54:44 +01:00
2024-11-25 22:23:25 +00:00
2024-08-23 09:12:37 +01:00
2024-11-27 14:58:48 +00:00
2025-01-23 12:14:29 +00:00
2024-09-03 10:21:38 +01:00
2024-11-27 14:58:48 +00:00
2024-05-28 09:38:23 +01:00
2024-08-23 09:12:37 +01:00
2024-04-16 08:07:01 +01:00
2025-01-04 12:34:04 +00:00
2025-01-21 13:26:07 +00:00
2025-01-27 15:47:09 +00:00
2024-12-12 12:52:39 +00:00
2025-01-27 15:47:09 +00:00
2024-10-29 11:19:57 +00:00
2023-09-26 10:35:27 +01:00
2024-09-30 17:00:50 +01:00
2024-11-18 22:09:02 +00:00
2024-08-23 09:12:37 +01:00
2024-08-08 08:26:14 +01:00
2023-03-11 00:08:41 +00:00
2024-08-28 09:14:26 +01:00
2025-01-29 10:40:41 +00:00
2024-11-18 22:09:02 +00:00
2024-11-27 16:44:48 +00:00
2024-06-04 12:04:52 +01:00
2024-05-28 09:38:24 +01:00
2024-08-29 21:58:19 +01:00
2024-09-30 17:00:51 +01:00
2024-08-28 09:14:26 +01:00
2025-01-29 13:15:31 +00:00
2024-12-17 11:41:53 +00:00
2024-12-24 13:49:28 +00:00
2025-01-04 12:34:04 +00:00
2025-01-20 13:38:59 +00:00
2025-01-10 11:10:00 +00:00
2024-11-22 16:53:37 +00:00
2024-12-05 17:07:10 +00:00
2025-01-23 11:56:47 +00:00
2024-04-25 10:06:03 +01:00