Ovidiu Panait
ee521bb17c
rust-target-config: fix nativesdk-libstd-rs build with baremetal
...
If TCLIBC='baremetal' is set in local.conf, nativesdk-libstd-rs build fails
with:
| error[E0412]: cannot find type `c_char` in the crate root
| --> /usr/src/debug/libstd-rs/1.75.0/rustc-1.75.0-src/vendor/libc/src/unix/mod.rs:56:29
| |
| 6 | pub type c_schar = i8;
| | ---------------------- similarly named type alias `c_schar` defined here
| ...
| 56 | pub gr_name: *mut ::c_char,
| | ^^^^^^
This happens because rust_gen_target() sets os="none" when TCLIBC is
'baremetal' - even for nativesdk targets. However, nativesdk packages are
built against glibc, so the correct 'os' value should be "linux".
Fix this by setting the os field based on {TARGET,HOST,BUILD}_OS variables,
as it is already done in rust_base_triple(), instead of relying on TCLIBC.
(From OE-Core rev: 4c3f321304f2aa8b75cb58699b59fea80a23690c)
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com >
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com >
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org >
(master rev: 3eaf2cd5647585a1e6df03fc20e2753da27bb692) -- backport
Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com >
Signed-off-by: Steve Sakoman <steve@sakoman.com >
2025-11-26 07:50:35 -08:00
..
2024-01-18 10:15:58 +00:00
2022-08-12 15:27:17 +01:00
2024-04-04 14:05:03 +01:00
2025-11-14 06:45:29 -08:00
2022-08-12 15:27:17 +01:00
2023-10-30 08:50:46 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-08-21 16:15:35 +01:00
2024-07-12 05:47:20 -07:00
2023-04-06 14:28:59 +01:00
2023-12-09 19:17:11 +00:00
2024-08-01 06:08:09 -07:00
2025-02-14 06:38:54 -08:00
2024-11-26 06:11:30 -08:00
2022-08-12 15:27:17 +01:00
2023-01-26 21:06:57 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2025-11-14 06:45:29 -08:00
2025-11-14 06:45:29 -08:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-05-04 12:37:00 +01:00
2023-08-24 16:50:24 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-09-20 23:51:11 +01:00
2023-01-26 22:22:53 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-08-21 11:34:12 +01:00
2022-08-12 15:27:17 +01:00
2022-09-28 08:01:10 +01:00
2024-01-18 10:15:58 +00:00
2023-11-20 15:30:52 +00:00
2022-08-12 15:27:17 +01:00
2024-05-23 08:55:01 -07:00
2024-05-23 08:55:01 -07:00
2024-01-19 12:21:22 +00:00
2024-01-19 12:21:22 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-01-12 11:54:05 +00:00
2022-09-29 08:05:24 +01:00
2022-08-12 15:27:17 +01:00
2024-03-05 12:24:50 +00:00
2024-08-19 06:09:14 -07:00
2023-06-29 11:28:32 +01:00
2023-09-09 22:14:41 +01:00
2022-08-12 15:27:17 +01:00
2024-04-04 14:05:03 +01:00
2022-08-12 15:27:17 +01:00
2025-11-14 06:45:29 -08:00
2025-04-01 09:08:43 -07:00
2023-03-22 13:53:29 +00:00
2023-06-29 11:28:32 +01:00
2025-02-03 06:13:13 -08:00
2022-08-12 15:27:17 +01:00
2024-03-26 17:10:51 +00:00
2023-03-01 21:29:31 +00:00
2022-08-12 15:27:17 +01:00
2023-11-09 16:57:26 +00:00
2024-08-01 06:08:09 -07:00
2023-07-25 15:27:33 +01:00
2022-08-12 15:27:17 +01:00
2024-02-29 10:26:13 +00:00
2025-11-14 06:45:29 -08:00
2022-08-12 15:27:17 +01:00
2023-07-25 15:27:33 +01:00
2024-07-03 06:28:37 -07:00
2024-01-18 10:15:58 +00:00
2023-03-08 10:21:05 +00:00
2024-02-23 14:29:03 +00:00
2024-02-23 14:29:03 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-07-25 15:27:33 +01:00
2025-05-19 08:32:49 -07:00
2022-08-12 15:27:17 +01:00
2023-09-28 12:37:47 +01:00
2024-01-26 16:41:25 +00:00
2025-01-24 07:59:39 -08:00
2022-08-12 15:27:17 +01:00
2025-11-14 06:45:29 -08:00
2023-06-29 11:10:39 +01:00
2024-02-19 15:21:14 +00:00
2024-02-21 22:20:10 +00:00
2024-01-18 10:15:58 +00:00
2023-05-04 12:34:30 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-10-11 05:47:38 -07:00
2025-01-09 06:25:36 -08:00
2022-08-12 15:27:17 +01:00
2024-07-12 05:47:20 -07:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-02-08 10:59:06 +00:00
2023-09-22 07:45:17 +01:00
2024-01-19 12:21:22 +00:00
2022-08-12 15:27:17 +01:00
2023-05-05 11:07:25 +01:00
2022-08-12 15:27:17 +01:00
2023-06-02 14:41:50 +01:00
2023-12-17 19:07:21 +00:00
2024-02-20 11:39:45 +00:00
2024-03-22 16:27:48 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-07-25 15:27:33 +01:00
2022-08-12 15:27:17 +01:00
2025-01-24 07:59:39 -08:00
2024-08-26 05:18:44 -07:00
2022-08-12 15:27:17 +01:00
2024-01-18 10:15:58 +00:00
2023-07-10 11:36:34 +01:00
2024-10-30 08:30:00 -07:00
2023-09-09 22:14:41 +01:00
2025-02-12 06:25:37 -08:00
2025-11-26 07:50:35 -08:00
2022-08-12 15:27:17 +01:00
2023-02-04 17:02:10 +00:00
2024-02-20 11:39:45 +00:00
2024-02-20 11:39:45 +00:00
2024-02-20 11:39:45 +00:00
2024-01-15 21:42:15 +00:00
2022-08-12 15:27:17 +01:00
2023-09-26 10:35:28 +01:00
2022-08-12 15:27:17 +01:00
2024-07-26 07:43:46 -07:00
2024-10-02 06:15:15 -07:00
2025-06-13 08:58:01 -07:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-03-11 00:08:41 +00:00
2025-07-07 07:42:58 -07:00
2023-10-05 21:09:10 +01:00
2025-06-02 07:12:34 -07:00
2023-05-03 07:33:18 +01:00
2023-01-12 23:08:58 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-03-01 09:31:10 +00:00
2024-01-12 11:54:05 +00:00