]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rust-common.bbclass: soft assignment for RUSTLIB path
authorPedro Ferreira <Pedro.Silva.Ferreira@criticaltechworks.com>
Wed, 29 Jan 2025 11:33:24 +0000 (11:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 Feb 2025 08:03:36 +0000 (08:03 +0000)
commit6eeb832f73ffb48f5f05dc47191f60e4599e640f
tree8cb3c75d2305aacf1fca4ded0d064badbbb011ba
parent9998d91f982cd323fa5da20edda8b1828bd4fb5d
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>
meta/classes-recipe/rust-common.bbclass