aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-10-05gitignore: add pyc fileskirkstone/rust-1.68Peter Marko
Using this mixin layer causes dirty repository after parsing due to lib/mixin/rust.py compilation. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-08-23Fix RISC-V supportScott Murray
Building Rust projects for RISC-V platforms was failing due to the layer not including a copy of lib/oe/rust.py to get all the changes from oe-core commit 1cfb9c8a ("rust-target-config: match riscv target names with what rust expects"). Reverting the changes from that commit seems likely to make things less robust, so instead add a copy of the updated lib/oe/rust.py in lib/mixin and update callers of arch_to_rust_arch to use it. This is not ideal from an ease of further maintenance perspective, but seems more inline with the intent of matching the behavior of the Rust toolchain as it stands in Mickledore branch. Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-08-23librsvg: upgrade to 2.54.6Chee Yang Lee
update include fix for CVE-2023-38633. Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-08-23rust-common.bbclass: move musl-specific linking fix from rust-source.incAlexander Kanavin
This needs to be done for any item that is linked under rustc, and not just rust itself. Latest python-cryptography exposes the issue. (From OE-Core rev: 967d847a9815df43d0c92ca61cc544e1fe5dcc03) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d3811228747590ea06e8d68be4785d45ec9c478f) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-08-23cargo.bbclass: set up cargo environment in common do_compileAlexander Kanavin
cargo_do_compile runs only if the recipe is built using cargo as the top level tool. Some recipes hide usage of cargo inside setuptools (or autoconf) and use do_compile definitions specific to those, and so the environment isn't properly set up. This was exposed by latest versions of python3-cryptography. (From OE-Core rev: a1946efdbec608d47f9e992c1b5cf3c671a204fc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 9f4ff643a028d7f5670d80861f2ce19ca2d90faa) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-05-10rust: Upgrade 1.68.1 -> 1.68.2Alex Kiernan
Changes: * Update the GitHub RSA host key bundled within Cargo. The key was rotated by GitHub on 2023-03-24 after the old one leaked. * Mark the old GitHub RSA host key as revoked. This will prevent Cargo from accepting the leaked key even when trusted by the system. * Add support for @revoked and a better error message for @cert-authority in Cargo’s SSH host key verification (From OE-Core rev: 4563432b41026adc56c54452984b19ab64e7406e) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-05-10cargo: Fix build on musl/riscvKhem Raj
libc needs fix for defining scope of SOCK_SEQPACKET (From OE-Core rev: 378da16ebe2917f26f9fe8cf654bced09ec6ecfe) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-05-10Initial check-inScott Murray
Backport Rust 1.68.1 toolchain from oe-core mickledore branch as of commit 7692dce8, including the updated rust and cargo bbclasses with the rust-target-config changes added in Langdale. The newer librsvg recipe has been backported as well to reduce maintenance effort. See the README file for more details. Signed-off-by: Scott Murray <scott.murray@konsulko.com>