summaryrefslogtreecommitdiffstats
path: root/meta/classes/rust-target-config.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/rust-target-config.bbclass')
-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