]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rust-common: Ensure sstate signatures have correct dependencues for do_rust_gen_targets
authorSundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Sat, 21 May 2022 09:05:54 +0000 (10:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 May 2022 21:19:53 +0000 (22:19 +0100)
The do_rust_gen_targets task was not rerunning when the configuration variables it
uses were changed. Add the missing variable dependencies to fix this.

[RP: Split to separate patch and add commit message]
Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rust/rust-common.inc

index 310aecef226e94f6146d7944347114e0d943b931..29b17cb95547247aa76f9d1e15ec33a8fca4513d 100644 (file)
@@ -360,6 +360,8 @@ def rust_gen_target(d, thing, wd, features, cpu, arch, abi=""):
     with open(wd + sys + '.json', 'w') as f:
         json.dump(tspec, f, indent=4)
 
+do_rust_gen_targets[vardeps] += "DATA_LAYOUT LLVM_TARGET TARGET_ENDIAN TARGET_POINTER_WIDTH TARGET_C_INT_WIDTH MAX_ATOMIC_WIDTH FEATURES"
+
 python do_rust_gen_targets () {
     wd = d.getVar('WORKDIR') + '/targets/'
     build_arch = d.getVar('BUILD_ARCH')