From ee27ee9edbf4d28d4b895b6e16a8573de054dea1 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Fri, 20 Oct 2006 12:14:06 +0000 Subject: qte/qtopia-core: factor out qte_arch function into qte-functions.inc, use this from qtopia-core to get QT_ARCH --- packages/qte/qte-common_2.3.10.inc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'packages/qte/qte-common_2.3.10.inc') diff --git a/packages/qte/qte-common_2.3.10.inc b/packages/qte/qte-common_2.3.10.inc index 3ea3c0d02d..b8ed16c6a8 100644 --- a/packages/qte/qte-common_2.3.10.inc +++ b/packages/qte/qte-common_2.3.10.inc @@ -69,17 +69,7 @@ SRC_URI_append_h1910 = "file://ipaq-keyboard.patch;patch=1 file://ipaq_so S = "${WORKDIR}/qt-${PV}" export QTDIR = "${S}" -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 - +require qte-functions.inc QTE_ARCH := "${@qte_arch(d)}" # -- cgit 1.2.3-korg