summaryrefslogtreecommitdiff
path: root/packages/qt/qt4_arch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/qt/qt4_arch.inc')
-rw-r--r--packages/qt/qt4_arch.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/qt/qt4_arch.inc b/packages/qt/qt4_arch.inc
new file mode 100644
index 0000000000..6dcbd2bc4a
--- /dev/null
+++ b/packages/qt/qt4_arch.inc
@@ -0,0 +1,13 @@
+def qt_arch(d):
+ import bb, re
+ arch = bb.data.getVar('TARGET_ARCH', d, 1)
+ if re.match("^i.86$", arch):
+ arch = "i386"
+ elif re.match("^arm.*", arch):
+ arch = "arm"
+ elif arch == "x86_64":
+ arch = "x86"
+ elif arch == "mipsel":
+ arch = "mips"
+ return arch
+