summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/cargo.bbclass
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-06-25 23:22:25 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-27 16:23:40 +0100
commitfa8b714d7aedd941c419261d7cd248dce64b9ac4 (patch)
tree39e153d81a0b406bf3d400146de79a1e2a3ac5f4 /meta/classes-recipe/cargo.bbclass
parenta16a8a1cfa3790180ae5a9cded8f1055cc2a514d (diff)
downloadpoky-fa8b714d7aedd941c419261d7cd248dce64b9ac4.tar.gz
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. (From OE-Core rev: 9f4ff643a028d7f5670d80861f2ce19ca2d90faa) 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>
Diffstat (limited to 'meta/classes-recipe/cargo.bbclass')
-rw-r--r--meta/classes-recipe/cargo.bbclass1
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/classes-recipe/cargo.bbclass b/meta/classes-recipe/cargo.bbclass
index 7a8cc1e751..3ef0bbbb44 100644
--- a/meta/classes-recipe/cargo.bbclass
+++ b/meta/classes-recipe/cargo.bbclass
@@ -55,7 +55,6 @@ oe_cargo_build () {
55 55
56do_compile[progress] = "outof:\s+(\d+)/(\d+)" 56do_compile[progress] = "outof:\s+(\d+)/(\d+)"
57cargo_do_compile () { 57cargo_do_compile () {
58 oe_cargo_fix_env
59 oe_cargo_build 58 oe_cargo_build
60} 59}
61 60