diff options
author | Graeme Gregory <dp@xora.org.uk> | 2008-01-31 10:34:47 +0000 |
---|---|---|
committer | Graeme Gregory <dp@xora.org.uk> | 2008-01-31 10:34:47 +0000 |
commit | d73bf2f660a301245858ff3559844b53e3ed24eb (patch) | |
tree | 9a2dc153b4d466b87b140beb81e490f9486933ef /packages/qtopia-phone/qtopia-phone_arch.inc | |
parent | b3120335c8d5e2fffb643ebefe63a0ccefcdf61f (diff) |
qtopia-phone_4.3.0.bb : import qtopia phone into OM mtn, not for mergeing into
OE yet.
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 |