Age | Commit message (Collapse) | Author |
|
Add a backport of cargo-update-recipe-crates.bbclass tweaked to
use host rather than native Python for the Cargo.lock parsing.
This should ease backporting/maintaining recipes since the class
will be present, with the tradeoff that it will only work where
the host environment has Python 3.11 or newer. This seems more
likely now than when the 1.68.x mixin layer was first created.
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
The change to passing --frozen to cargo in oe-core commit 9ff9e652
broke building rust-hello-world since it does not have a Cargo.lock
file in its source tree. Patch one in so it will still build.
This was not a problem in oe-core as the rust-hello-world recipe had
been removed there before this would be an issue.
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
The '--remap-path-prefix' option removes all references to build directory
structure in the debug information within the compiled output for Cargo
dependencies and the project's binary.
However, some references to build directories remains in the final binary
in .rustc section in the form of compressed metadata and this makes the
build output dependent on the folder structure of the computer it's compiled on.
So, for reproducible builds, use the configuration option
'remap-debuginfo = true' along with the '--remap-path-prefix'.
[YOCTO# 14875]
Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 6ae62259afbbe861ed74211dab18a27b8c8d8b7a)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit caca883b524a767d970d934744b0f2b0ef743e20)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
A build with vfpv3d16 (armv7at2hf-vfpv3d16) tune currently warns:
'+d16' is not a recognized feature for this target (ignoring feature)
This correlates with the supported target_features for arm[1].
With the now enabled features, rustc might use vdiv.f64 with register
d17, which leads to an illegal instruction on the given platform.
Therefore, adapt the features s.t. they correspond to the
armv7_unknown_linux_gnueabihf target[2].
Additionally, only set the latest supported version of VFP.
[1] https://github.com/rust-lang/rust/blob/1.70.0/compiler/rustc_codegen_ssa/src/target_features.rs#L32
[2] https://github.com/rust-lang/rust/blob/1.70.0/compiler/rustc_target/src/spec/armv7_unknown_linux_gnueabihf.rs#L15
Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit d79f0a0702b667625e12c9e131932e02cb08bada)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
This includes the fix for CVE-2023-38633.
Signed-off-by: Ross Burton <ross.burton@arm.com>
(adapted from oe-core commit 26df3c30a7dfed79b7b8c724eb1ef03e463b79b4)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
Now we use --frozen, Cargo.lock cannot be modified by cargo build.
These patched git dependencies requires that the git url is removed
from Cargo.lock.
Fixes #15104
Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit b80f756dd480fc92f58d7e10105d3a2427a32795)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
It supersed the --offline flag and guarantee that Cargo.lock
file will not be modified during the build.
Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 9ff9e6523bd7eb6cdc854adcbd031085c536e0e6)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
- upstream no longer uses odd-even scheme
https://gitlab.gnome.org/GNOME/librsvg/-/releases/2.55.1
- x.y.9z versions are pre-releases and need to be excluded
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>
(adapted from oe-core commit df99bd7c99bb5c18632ab8203d64b54b4b8a2204)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
Drop 0001-system-deps-src-lib.rs-do-not-probe-into-harcoded-li.patch
as upstream fixed the issue.
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>
(adapted from oe-core commit f4d9dc2fb3ff0370917c37f61a46d47503d94420)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
* it started to fail only after the upgrade to 1.70.0
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(adapted from oe-core commit aa037b4138459521a3554c5e91cb4a6cd0c37bdd)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
Drop 0035-cmake-Enable-64bit-off_t-on-32bit-glibc-systems.patch as this
is merged upstream in rust-llvm.
https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(adapted from oe-core commit d1af583c290eb0cff5e36363f7531832a863a1a8)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
Upstream no longer includes all the crates into tarballs, so
use cargo_update_recipe_crates class to make a list for the crate://
fetcher.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(adapted from oe-core 365fac1a696b6e109849fa9ee21112ee777c5163)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
Rebase patches, drop crossbeam_atomic is this fully merged upstream.
https://blog.rust-lang.org/2023/04/20/Rust-1.69.0.html
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 39e05f9b0fdc3f76f8b80a12989f78614bc9ea5c)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
DESCRIPTION is optional for now; writing good component descriptions
is not easy (but appreciated).
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(adapted from oe-core commit 9ce4f9248db3db70732d886a18ea355f321bd49d)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|