]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cargo.bbclass: set up cargo environment in common do_compile
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 25 Jun 2023 21:22:25 +0000 (23:22 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 19 Sep 2023 14:19:54 +0000 (04:19 -1000)
commita3f566fcbfc02e0a3b3f6a676d6dde88a5b50506
tree2190e5f5438fa05d9f6e3776eaed120e932a66c6
parent55529a5cb481b64ab4390728e01650bc585be602
cargo.bbclass: set up cargo environment in common do_compile

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.

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>
meta/classes/cargo.bbclass
meta/classes/cargo_common.bbclass