diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-10 21:46:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 11:46:26 +0100 |
commit | 83e7f668ae6b697bfb89eaee80609bd8d509ba71 (patch) | |
tree | 9be2365800400a2b44c8a7c68cbf08a7627c4285 /meta/classes | |
parent | 883aea9b6e02f796d11d46f5c2a82ea620c19797 (diff) | |
download | poky-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.bbclass | 8 |
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 | |||
372 | RUST_TARGETS_DIR = "${WORKDIR}/rust-targets/" | 372 | RUST_TARGETS_DIR = "${WORKDIR}/rust-targets/" |
373 | export RUST_TARGET_PATH = "${RUST_TARGETS_DIR}" | 373 | export RUST_TARGET_PATH = "${RUST_TARGETS_DIR}" |
374 | 374 | ||
375 | RUST_TARGETGENS = "BUILD HOST TARGET" | ||
376 | |||
377 | python do_rust_gen_targets () { | 375 | python 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 | ||
387 | addtask rust_gen_targets after do_patch before do_compile | 383 | addtask rust_gen_targets after do_patch before do_compile |