summaryrefslogtreecommitdiff
path: root/packages/qte/qte-functions.inc
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-10-20 12:14:06 +0000
committerMichael Lauer <mickey@vanille-media.de>2006-10-20 12:14:06 +0000
commitee27ee9edbf4d28d4b895b6e16a8573de054dea1 (patch)
tree19b0626591c45258c019dc770ac19146275dd92e /packages/qte/qte-functions.inc
parent44099bcf4d3890beea9fcafa498fbeeea9bad7f7 (diff)
qte/qtopia-core: factor out qte_arch function into qte-functions.inc, use this from qtopia-core to get QT_ARCH
Diffstat (limited to 'packages/qte/qte-functions.inc')
-rw-r--r--packages/qte/qte-functions.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/qte/qte-functions.inc b/packages/qte/qte-functions.inc
new file mode 100644
index 0000000000..f0ffb0e612
--- /dev/null
+++ b/packages/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
+