summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/cargo_common.bbclass
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2023-12-07 13:39:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-08 16:58:34 +0000
commita8f959a8d315fe769b622139ba2e1b37c5bb7d00 (patch)
treeaf0cf0665b5468096e1094b07a544d6196af96f1 /meta/classes-recipe/cargo_common.bbclass
parent9a5c1456ba90bf986c91d8aa92b1dfb7ed3d7ab0 (diff)
downloadpoky-a8f959a8d315fe769b622139ba2e1b37c5bb7d00.tar.gz
cargo: Rename MANIFEST_PATH -> CARGO_MANIFEST_PATH
This variable is a piece of recipe configurable interface, scope it with the class name to make that clear. (From OE-Core rev: 0101de25832fbed3d08cd522512784133c628cad) 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>
Diffstat (limited to 'meta/classes-recipe/cargo_common.bbclass')
-rw-r--r--meta/classes-recipe/cargo_common.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass
index b732a1bd95..bf298e96c7 100644
--- a/meta/classes-recipe/cargo_common.bbclass
+++ b/meta/classes-recipe/cargo_common.bbclass
@@ -161,7 +161,7 @@ python cargo_common_do_patch_paths() {
161 # here is better than letting cargo tell (in case the file is missing) 161 # here is better than letting cargo tell (in case the file is missing)
162 # "Cargo.lock should be modified but --frozen was given" 162 # "Cargo.lock should be modified but --frozen was given"
163 163
164 manifest_path = d.getVar("MANIFEST_PATH", True) 164 manifest_path = d.getVar("CARGO_MANIFEST_PATH", True)
165 lockfile = os.path.join(os.path.dirname(manifest_path), "Cargo.lock") 165 lockfile = os.path.join(os.path.dirname(manifest_path), "Cargo.lock")
166 if not os.path.exists(lockfile): 166 if not os.path.exists(lockfile):
167 bb.fatal(f"{lockfile} file doesn't exist") 167 bb.fatal(f"{lockfile} file doesn't exist")