diff options
Diffstat (limited to 'meta/classes-recipe/rust-target-config.bbclass')
| -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 8ab5317c3f..2114c5850c 100644 --- a/meta/classes-recipe/rust-target-config.bbclass +++ b/meta/classes-recipe/rust-target-config.bbclass | |||
| @@ -349,6 +349,7 @@ def rust_gen_target(d, thing, wd, arch): | |||
| 349 | sys = d.getVar('{}_SYS'.format(thing)) | 349 | sys = d.getVar('{}_SYS'.format(thing)) |
| 350 | prefix = d.getVar('{}_PREFIX'.format(thing)) | 350 | prefix = d.getVar('{}_PREFIX'.format(thing)) |
| 351 | rustsys = d.getVar('RUST_{}_SYS'.format(thing)) | 351 | rustsys = d.getVar('RUST_{}_SYS'.format(thing)) |
| 352 | os = d.getVar('{}_OS'.format(thing)) | ||
| 352 | 353 | ||
| 353 | abi = None | 354 | abi = None |
| 354 | cpu = "generic" | 355 | cpu = "generic" |
| @@ -388,7 +389,7 @@ def rust_gen_target(d, thing, wd, arch): | |||
| 388 | tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi) | 389 | tspec['target-c-int-width'] = d.getVarFlag('TARGET_C_INT_WIDTH', arch_abi) |
| 389 | tspec['target-endian'] = d.getVarFlag('TARGET_ENDIAN', arch_abi) | 390 | tspec['target-endian'] = d.getVarFlag('TARGET_ENDIAN', arch_abi) |
| 390 | tspec['arch'] = arch_to_rust_target_arch(rust_arch) | 391 | tspec['arch'] = arch_to_rust_target_arch(rust_arch) |
| 391 | if "baremetal" in d.getVar('TCLIBC'): | 392 | if "elf" in os: |
| 392 | tspec['os'] = "none" | 393 | tspec['os'] = "none" |
| 393 | else: | 394 | else: |
| 394 | tspec['os'] = "linux" | 395 | tspec['os'] = "linux" |
