summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-21 14:12:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-07 11:53:26 +0100
commitc29718ee73be8b0a1896df21acf8aed621afb029 (patch)
tree17e230da4f925a1a4616af724452b42734e9f19d /meta/recipes-devtools/rust
parent4e05a17616112ba558f0223c13192d11052d535b (diff)
downloadpoky-c29718ee73be8b0a1896df21acf8aed621afb029.tar.gz
rust-common: Fix native signature dependency issues
The previous changes cause sstatetests.SStateTests.test_sstate_32_64_same_hash to fail since RUST_XXX_SYS changes depending on the native architecture. This is correct but these are accounted for in the layout of paths in TMPDIR so they should be excluded from the task signatures for the correct behaviour. (From OE-Core rev: 1887a69a1738cdf34d27f396943bce6a7e4f8e39) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 2b9bb4c07d0ab53f58cbdd8a96896780a90be9a8) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust')
-rw-r--r--meta/recipes-devtools/rust/rust-common.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust-common.inc b/meta/recipes-devtools/rust/rust-common.inc
index 3cdce36439..621cd4ad57 100644
--- a/meta/recipes-devtools/rust/rust-common.inc
+++ b/meta/recipes-devtools/rust/rust-common.inc
@@ -347,6 +347,9 @@ def rust_gen_target(d, thing, wd, features, cpu, arch, abi=""):
347 with open(wd + sys + '.json', 'w') as f: 347 with open(wd + sys + '.json', 'w') as f:
348 json.dump(tspec, f, indent=4) 348 json.dump(tspec, f, indent=4)
349 349
350# These are accounted for in tmpdir path names so don't need to be in the task sig
351rust_gen_target[vardepsexclude] += "RUST_HOST_SYS RUST_TARGET_SYS"
352
350do_rust_gen_targets[vardeps] += "DATA_LAYOUT TARGET_ENDIAN TARGET_POINTER_WIDTH TARGET_C_INT_WIDTH MAX_ATOMIC_WIDTH FEATURES" 353do_rust_gen_targets[vardeps] += "DATA_LAYOUT TARGET_ENDIAN TARGET_POINTER_WIDTH TARGET_C_INT_WIDTH MAX_ATOMIC_WIDTH FEATURES"
351 354
352python do_rust_gen_targets () { 355python do_rust_gen_targets () {