diff mbox

[20/20] Support for an override of the VENDOR

Message ID 1407352611-7652-20-git-send-email-diorcet.yann@gmail.com
State New
Delegated to: Esben Haabendal
Headers show

Commit Message

Yann Diorcet Aug. 6, 2014, 7:16 p.m. UTC
---
 lib/oelite/arch.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/lib/oelite/arch.py b/lib/oelite/arch.py
index 654f610..32d1808 100644
--- a/lib/oelite/arch.py
+++ b/lib/oelite/arch.py
@@ -541,8 +541,14 @@  def arch_set_build_arch(d, gcc_version):
 
 
 def arch_set_cross_arch(d, prefix, gcc_version):
-    cross_arch = '%s-%s'%(d.get(prefix+'_CPU', True),
-                          d.get(prefix+'_OS', True))
+    vendor = d.get(prefix+'_VENDOR', True)
+    if vendor:
+        cross_arch = '%s-%s-%s'%(d.get(prefix+'_CPU', True),
+                                vendor,
+                                d.get(prefix+'_OS', True))
+    else:
+        cross_arch = '%s-%s'%(d.get(prefix+'_CPU', True),
+                              d.get(prefix+'_OS', True))
     cross_arch = arch_config_sub(d, cross_arch)
     abis = (d.get(prefix+'_ABI', True) or "").split()
     if prefix == "MACHINE":