diff options
author | Holger Freyther <zecke@selfish.org> | 2008-04-25 15:03:16 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2008-04-25 15:03:16 +0000 |
commit | b2a22aee1c2b8ad06911c95d58e342dc2f321e0a (patch) | |
tree | 5704c97648277b7751a2b9bfefd98238eaed960f /packages/qtopia-phone/qtopia-phone_arch.inc | |
parent | bc6c83c99478242cb39add67e0dbec66b64f2455 (diff) | |
parent | df3bf31812adfe853cdb582058f9209a17c7af84 (diff) |
merge of '3e22c6ee5af012d09e9027c2ade50920300fb0f2'
and 'f360c05bdca8536435cf09d573b42b34d69224ff'
Diffstat (limited to 'packages/qtopia-phone/qtopia-phone_arch.inc')
-rw-r--r-- | packages/qtopia-phone/qtopia-phone_arch.inc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/qtopia-phone/qtopia-phone_arch.inc b/packages/qtopia-phone/qtopia-phone_arch.inc new file mode 100644 index 0000000000..84f0e51d01 --- /dev/null +++ b/packages/qtopia-phone/qtopia-phone_arch.inc @@ -0,0 +1,23 @@ +inherit siteinfo + +def qtopia_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 + +def qtopia_endian(d): + import bb + if bb.data.getVar('SITEINFO_ENDIANESS', d, True) == "le": + return "-little-endian" + elif bb.data.getVar('SITEINFO_ENDIANESS', d, True) == "be": + return "-big-endian" + else: + assert False |