mirror of
git://git.yoctoproject.org/poky
synced 2026-08-12 19:49:25 +00:00
rust-common: Update to match cross targets
Tweak the armv7 workaround to work for cross environments and as a host triplet and not just as a target. (From OE-Core rev: dc134c031171a55a35964ba801219552a516a0ca) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
82dc055d96
commit
d172b76c26
@ -63,7 +63,7 @@ def rust_base_triple(d, thing):
|
||||
'''
|
||||
|
||||
# The llvm-target for armv7 is armv7-unknown-linux-gnueabihf
|
||||
if thing == "TARGET" and target_is_armv7(d):
|
||||
if d.getVar('{}_ARCH'.format(thing)) == d.getVar('TARGET_ARCH') and target_is_armv7(d):
|
||||
arch = "armv7"
|
||||
else:
|
||||
arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user