summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4/qt4_arch.inc
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-05-08 13:28:30 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-08 14:49:14 +0100
commit649782175a1fc48e4207e18bc2244a50293a8034 (patch)
tree51d719010115b6c7b220df6e6fa31e5f7b363324 /meta/recipes-qt/qt4/qt4_arch.inc
parent38da655788361e949d605bebfab45cf5830df613 (diff)
downloadpoky-649782175a1fc48e4207e18bc2244a50293a8034.tar.gz
qt4: move functions from python to shell style
In qt4's do_configure operation, it will refer to some variables that are derived from 'd', however these variable values may be not correct in multilib case since the extraction of these variables happens before the multilib handler. The fix is to move these python style functions back to shell style. This fixes [YOCTO #2355] [RP: Fix whitepace] (From OE-Core rev: 977ba301a1063a84b865ddf7367c35827fbffc86) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt/qt4/qt4_arch.inc')
-rw-r--r--meta/recipes-qt/qt4/qt4_arch.inc36
1 files changed, 16 insertions, 20 deletions
diff --git a/meta/recipes-qt/qt4/qt4_arch.inc b/meta/recipes-qt/qt4/qt4_arch.inc
index bde68dc2e0..c1d35ab726 100644
--- a/meta/recipes-qt/qt4/qt4_arch.inc
+++ b/meta/recipes-qt/qt4/qt4_arch.inc
@@ -2,24 +2,20 @@ inherit siteinfo
2 2
3ARM_INSTRUCTION_SET = "arm" 3ARM_INSTRUCTION_SET = "arm"
4 4
5def qt_arch(d): 5set_arch() {
6 import bb, re 6 case ${TARGET_ARCH} in
7 arch = d.getVar('TARGET_ARCH', True) 7 arm*) QT_ARCH=arm ;;
8 if re.match("^i.86$", arch): 8 i*86*) QT_ARCH=i386 ;;
9 arch = "i386" 9 mips*) QT_ARCH=mips ;;
10 elif re.match("^arm.*", arch): 10 powerpc*) QT_ARCH=powerpc ;;
11 arch = "arm" 11 x86_64*) QT_ARCH=x86_64 ;;
12 elif arch == "x86_64": 12 esac
13 arch = "x86" 13}
14 elif arch == "mipsel":
15 arch = "mips"
16 return arch
17 14
18def qt_endian(d): 15set_endian() {
19 import bb 16 if [ ${SITEINFO_ENDIANNESS} = "le" ] ; then
20 if d.getVar('SITEINFO_ENDIANNESS', True) == "le": 17 QT_ENDIAN="-little-endian"
21 return "-little-endian" 18 elif [ ${SITEINFO_ENDIANNESS} = "be" ] ; then
22 elif d.getVar('SITEINFO_ENDIANNESS', True) == "be": 19 QT_ENDIAN="-big-endian"
23 return "-big-endian" 20 fi
24 else: 21}
25 assert False