Commit Graph

4 Commits

Author SHA1 Message Date
Yoann Congal
ff32331d4d cargo-c: Update patch Upstream-Status
https://github.com/rust-lang/libc/pull/4382 was merge as
4b439b0953

(From OE-Core rev: d34f49cc604733c7d714a72b3a3d66a99aa65c79)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-04-16 17:41:30 +01:00
Khem Raj
77e5b8db1e cargo-c,rust: Fix build on risv32
Apply fix in libc that are needed for rustix-0.38 to build.

(From OE-Core rev: c21fd6f1c0b6a9df9950c541025f24e342b7a118)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-04-10 11:05:34 +01:00
Alexander Kanavin
2db6df6f2e cargo-c-native: convert from git fetcher to crate fetcher
Fetching from git requires manually maintaining Cargo.lock
which is tedious and unclear how to do correctly,
especially with version updates. On the other hand, crates
do include Cargo.lock, and this way the revisions would match
upstream's and crate users (which requires regenerating
crates.inc to match the lock file).

(From OE-Core rev: 03c1954404bf56470935b12cb3aeb02199f68ded)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Frederic Martinsons
ed5702223b rust: add cargo-c native recipe
This package make it easier to generate C/C++ ABI compatible
header, library and also generate package config file.

It is built around cbindgen (https://github.com/mozilla/cbindgen)
for the header generation, it compiles the library (static or dynamic)
through cargo and finally handle the generation of a custom
package config file.

(From OE-Core rev: dfce5f9ffb5240aadae311c2a2e912a315afc703)

Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-21 16:15:35 +01:00