diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/rust-target-config.bbclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes/rust-target-config.bbclass b/meta/classes/rust-target-config.bbclass index 4db91d36d5..87b7dee3ed 100644 --- a/meta/classes/rust-target-config.bbclass +++ b/meta/classes/rust-target-config.bbclass | |||
| @@ -357,10 +357,16 @@ rust_gen_target[vardepsexclude] += "RUST_HOST_SYS RUST_TARGET_SYS ABIEXTENSION l | |||
| 357 | 357 | ||
| 358 | do_rust_gen_targets[vardeps] += "DATA_LAYOUT TARGET_ENDIAN TARGET_POINTER_WIDTH TARGET_C_INT_WIDTH MAX_ATOMIC_WIDTH FEATURES" | 358 | do_rust_gen_targets[vardeps] += "DATA_LAYOUT TARGET_ENDIAN TARGET_POINTER_WIDTH TARGET_C_INT_WIDTH MAX_ATOMIC_WIDTH FEATURES" |
| 359 | 359 | ||
| 360 | RUST_TARGETGENS = "BUILD" | ||
| 361 | |||
| 360 | python do_rust_gen_targets () { | 362 | python do_rust_gen_targets () { |
| 361 | wd = d.getVar('WORKDIR') + '/targets/' | 363 | wd = d.getVar('WORKDIR') + '/targets/' |
| 362 | build_arch = d.getVar('BUILD_ARCH') | 364 | # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last |
| 363 | rust_gen_target(d, 'BUILD', wd, build_arch) | 365 | rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH')) |
| 366 | if "HOST" in d.getVar("RUST_TARGETGENS"): | ||
| 367 | rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH')) | ||
| 368 | if "TARGET" in d.getVar("RUST_TARGETGENS"): | ||
| 369 | rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_ARCH')) | ||
| 364 | } | 370 | } |
| 365 | 371 | ||
| 366 | addtask rust_gen_targets after do_patch before do_compile | 372 | addtask rust_gen_targets after do_patch before do_compile |
