summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-05 14:04:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-08 15:44:20 +0100
commitd172b76c264fae888855f6dc6565fda7035fcbb2 (patch)
tree1d5901f8109a721c11c66554d7d347d4a4743cb6 /meta
parent82dc055d96f285d6615928b6315718ca29274c23 (diff)
downloadpoky-d172b76c264fae888855f6dc6565fda7035fcbb2.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/rust-common.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass
index f2e99493fe..7c432ed131 100644
--- a/meta/classes/rust-common.bbclass
+++ b/meta/classes/rust-common.bbclass
@@ -63,7 +63,7 @@ def rust_base_triple(d, thing):
63 ''' 63 '''
64 64
65 # The llvm-target for armv7 is armv7-unknown-linux-gnueabihf 65 # The llvm-target for armv7 is armv7-unknown-linux-gnueabihf
66 if thing == "TARGET" and target_is_armv7(d): 66 if d.getVar('{}_ARCH'.format(thing)) == d.getVar('TARGET_ARCH') and target_is_armv7(d):
67 arch = "armv7" 67 arch = "armv7"
68 else: 68 else:
69 arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing))) 69 arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing)))