]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
rust-common.bbclass: soft assignment for RUSTLIB path
authorPedro Ferreira <Pedro.Silva.Ferreira@criticaltechworks.com>
Thu, 6 Feb 2025 10:12:21 +0000 (10:12 +0000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 10 Feb 2025 16:38:00 +0000 (08:38 -0800)
commitd8ccc3ad338a8020c998566249af2019baaa6e44
tree2f6304e6108e5d82640a20e901e2b678fae04138
parent78fac0f623e01bd52b2ea3a597d056726deca8a4
rust-common.bbclass: soft assignment for RUSTLIB path

As a user i want to override `RUSTLIB` path on a bbclass, lets
call it `XYZ.bbclass`.

If a certain recipe inherits `cargo.bbclass` and `XYZ.bbclass` the
value of `RUSTLIB` is dependent on the order of the inherit.

If `cargo.bbclass` is inherit before `XYZ.bbclass` this will reflect
the desired value of `RUSTLIB`, on the oposite, if the `XYZ.bbclass`
is inherit before `cargo.bbclass` then the `RUSTLIB` defined on
`rust-common.bbclass` will prevail.

Changed definition of `RUSTLIB` to soft assignment to make it overridable.

Signed-off-by: Pedro Silva Ferreira <Pedro.Silva.Ferreira@criticaltechworks.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
(cherry picked from commit 6eeb832f73ffb48f5f05dc47191f60e4599e640f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/rust-common.bbclass