summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/cargo_common.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-09 17:02:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-21 12:08:04 +0100
commit71c6db8e65ced98db74fd18b726fa4b4c0346f05 (patch)
tree0e5d7f21a2d65ba5b562068eb44d4e9b34465bed /meta/classes-recipe/cargo_common.bbclass
parentc6c1ed6ba0b7e529d955eeda71c4a66317fa1331 (diff)
downloadpoky-71c6db8e65ced98db74fd18b726fa4b4c0346f05.tar.gz
recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR. (From OE-Core rev: 1f18b9a512800860d5153d89eb82b56388efad6f) 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.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass
index 0fb443edbd..78440c810b 100644
--- a/meta/classes-recipe/cargo_common.bbclass
+++ b/meta/classes-recipe/cargo_common.bbclass
@@ -18,7 +18,7 @@
18inherit rust-common 18inherit rust-common
19 19
20# Where we download our registry and dependencies to 20# Where we download our registry and dependencies to
21export CARGO_HOME = "${WORKDIR}/cargo_home" 21export CARGO_HOME = "${UNPACKDIR}/cargo_home"
22 22
23# The pkg-config-rs library used by cargo build scripts disables itself when 23# The pkg-config-rs library used by cargo build scripts disables itself when
24# cross compiling unless this is defined. We set up pkg-config appropriately 24# cross compiling unless this is defined. We set up pkg-config appropriately
@@ -138,7 +138,7 @@ python cargo_common_do_patch_paths() {
138 return 138 return
139 139
140 patches = dict() 140 patches = dict()
141 workdir = d.getVar('WORKDIR') 141 workdir = d.getVar('UNPACKDIR')
142 fetcher = bb.fetch2.Fetch(src_uri, d) 142 fetcher = bb.fetch2.Fetch(src_uri, d)
143 for url in fetcher.urls: 143 for url in fetcher.urls:
144 ud = fetcher.ud[url] 144 ud = fetcher.ud[url]