diff options
| -rw-r--r-- | meta/classes-recipe/rust-target-config.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass index 1bd7626bd8..31b4bd9afd 100644 --- a/meta/classes-recipe/rust-target-config.bbclass +++ b/meta/classes-recipe/rust-target-config.bbclass | |||
| @@ -329,6 +329,7 @@ def rust_gen_target(d, thing, wd, arch): | |||
| 329 | sys = d.getVar('{}_SYS'.format(thing)) | 329 | sys = d.getVar('{}_SYS'.format(thing)) |
| 330 | prefix = d.getVar('{}_PREFIX'.format(thing)) | 330 | prefix = d.getVar('{}_PREFIX'.format(thing)) |
| 331 | rustsys = d.getVar('RUST_{}_SYS'.format(thing)) | 331 | rustsys = d.getVar('RUST_{}_SYS'.format(thing)) |
| 332 | os = d.getVar('{}_OS'.format(thing)) | ||
| 332 | 333 | ||
| 333 | abi = None | 334 | abi = None |
| 334 | cpu = "generic" | 335 | cpu = "generic" |
| @@ -368,7 +369,7 @@ def rust_gen_target(d, thing, wd, arch): | |||
| 368 | tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi) | 369 | tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi) |
| 369 | tspec['target-endian'] = d.getVarFlag('TARGET_ENDIAN', arch_abi) | 370 | tspec['target-endian'] = d.getVarFlag('TARGET_ENDIAN', arch_abi) |
| 370 | tspec['arch'] = arch_to_rust_target_arch(rust_arch) | 371 | tspec['arch'] = arch_to_rust_target_arch(rust_arch) |
| 371 | if "baremetal" in d.getVar('TCLIBC'): | 372 | if "elf" in os: |
| 372 | tspec['os'] = "none" | 373 | tspec['os'] = "none" |
| 373 | else: | 374 | else: |
| 374 | tspec['os'] = "linux" | 375 | tspec['os'] = "linux" |
