Skip to content

Commit 0e8b12c

Browse files
committed
Eliminate "rust_target[vardeps]" taskhash mismatches
Yocto adds a vardep to rust_target on the string "rust_target[vardeps]" which then causes taskhash mismatches because the string contents of that variable changes each time the code is built. We don't actually care about the "rust_target[vardeps]" string, we care about the vardeps that string specifies (*_ARCH/*_OS). This commit adds a vardepsexclude for "rust_target[vardeps]". Signed-off-by: Nick Stevens <[email protected]>
1 parent 653bf62 commit 0e8b12c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

classes/rust-common.bbclass

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,10 @@ def rust_target(d, spec_type):
6262

6363
return target
6464

65+
# Yocto adds a vardep to rust_target on "rust_target[vardeps]"... it really
66+
# doesn't like us generating ARCH and OS dynamically. We don't actually care
67+
# about the "rust_target[vardeps]" string, we care about the vardeps that
68+
# string specifies (*_ARCH/*_OS), so it is safe to exclude.
69+
rust_target[vardepsexclude] += "rust_target[vardeps]"
70+
6571
RUST_BASE_URI := "https://static.rust-lang.org"

0 commit comments

Comments
 (0)