aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qte/qte-functions.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qte/qte-functions.inc')
-rw-r--r--recipes-qt/qte/qte-functions.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-qt/qte/qte-functions.inc b/recipes-qt/qte/qte-functions.inc
new file mode 100644
index 0000000..f0ffb0e
--- /dev/null
+++ b/recipes-qt/qte/qte-functions.inc
@@ -0,0 +1,11 @@
+def qte_arch(d):
+ import bb, re
+ arch = bb.data.getVar('TARGET_ARCH', d, 1)
+ if re.match("^i.86$", arch):
+ arch = "x86"
+ elif arch == "x86_64":
+ arch = "x86"
+ elif arch == "mipsel":
+ arch = "mips"
+ return arch
+