summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-10 21:46:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-12 11:46:26 +0100
commit83e7f668ae6b697bfb89eaee80609bd8d509ba71 (patch)
tree9be2365800400a2b44c8a7c68cbf08a7627c4285 /meta/classes
parent883aea9b6e02f796d11d46f5c2a82ea620c19797 (diff)
downloadpoky-83e7f668ae6b697bfb89eaee80609bd8d509ba71.tar.gz
rust: Remove unneeded RUST_TARGETGENS settings
These match the default from the class so drop them. We then always generate all targets so remove the configuration from the class. (From OE-Core rev: e4d56256936c55bab2bf2934ccbde9157ef7dc57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rust-target-config.bbclass8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/rust-target-config.bbclass b/meta/classes/rust-target-config.bbclass
index 0f0797603e..135ed86308 100644
--- a/meta/classes/rust-target-config.bbclass
+++ b/meta/classes/rust-target-config.bbclass
@@ -372,16 +372,12 @@ do_rust_gen_targets[vardeps] += "DATA_LAYOUT TARGET_ENDIAN TARGET_POINTER_WIDTH
372RUST_TARGETS_DIR = "${WORKDIR}/rust-targets/" 372RUST_TARGETS_DIR = "${WORKDIR}/rust-targets/"
373export RUST_TARGET_PATH = "${RUST_TARGETS_DIR}" 373export RUST_TARGET_PATH = "${RUST_TARGETS_DIR}"
374 374
375RUST_TARGETGENS = "BUILD HOST TARGET"
376
377python do_rust_gen_targets () { 375python do_rust_gen_targets () {
378 wd = d.getVar('RUST_TARGETS_DIR') 376 wd = d.getVar('RUST_TARGETS_DIR')
379 # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last 377 # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last
380 rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH')) 378 rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH'))
381 if "HOST" in d.getVar("RUST_TARGETGENS"): 379 rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH'))
382 rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH')) 380 rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_ARCH'))
383 if "TARGET" in d.getVar("RUST_TARGETGENS"):
384 rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_ARCH'))
385} 381}
386 382
387addtask rust_gen_targets after do_patch before do_compile 383addtask rust_gen_targets after do_patch before do_compile