diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-09-26 21:18:02 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-02 17:19:28 +0100 |
commit | 42b3fc6dd3c8a1c608306aa85ca5e5a77d94ee1d (patch) | |
tree | d04aaf16c9e9492586937186d48eb9f0dfa2631e /meta | |
parent | 89386fde895a585c6322fc94b594c35a355555e7 (diff) | |
download | poky-42b3fc6dd3c8a1c608306aa85ca5e5a77d94ee1d.tar.gz |
qt4: add 4.8.3 version with negative D_P
* rebased patches, 3 patches are resolved upstream:
0019-javascriptcore-Fix-compile-error-when-using-toolchai.patch
resolved in upstream commit 7ac8d8597db1f58b11338f91fb27f6ad8696b34b
0022-webkit-fix-conflicting-types.patch
resolved in upstream commit929b4443d53fcf3a7ad1cb9f3af5569e41ef56f1
(From OE-Core rev: b9fc4928bb93ad720c47920db3869d860c531d0a)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
28 files changed, 1309 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/nativesdk-qt4-tools_4.8.3.bb b/meta/recipes-qt/qt4/nativesdk-qt4-tools_4.8.3.bb new file mode 100644 index 0000000000..ad5d8815c5 --- /dev/null +++ b/meta/recipes-qt/qt4/nativesdk-qt4-tools_4.8.3.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require nativesdk-qt4-tools.inc | ||
2 | |||
3 | DEFAULT_PREFERENCE = "-1" | ||
4 | |||
5 | PR = "${INC_PR}.0" | ||
6 | |||
7 | SRC_URI += "file://0009-qmake-fix-source-file-references-in-qmake.pri.patch" | ||
8 | |||
9 | SRC_URI[md5sum] = "a663b6c875f8d7caa8ac9c30e4a4ec3b" | ||
10 | SRC_URI[sha256sum] = "f1f72974f924861be04019f49f07cd43ab3c95056db2ba8f34b283487cccc728" | ||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3.inc b/meta/recipes-qt/qt4/qt4-4.8.3.inc new file mode 100644 index 0000000000..e473dc6917 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3.inc | |||
@@ -0,0 +1,60 @@ | |||
1 | LICENSE = "LGPLv2.1 | GPLv3" | ||
2 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
3 | file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \ | ||
4 | file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354" | ||
5 | |||
6 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt4-${PV}:" | ||
7 | |||
8 | DEFAULT_PREFERENCE = "-1" | ||
9 | |||
10 | SRC_URI = "http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-${PV}.tar.gz \ | ||
11 | file://0003-webkit2-set-OUTPUT_DIR-value-if-empty.patch \ | ||
12 | file://0004-configure-qmake-is-already-built-in-qt4-tools-native.patch \ | ||
13 | file://0008-qmake.pro-Allow-building-a-separate-qmake-for-the-ta.patch \ | ||
14 | file://0009-qmake-fix-source-file-references-in-qmake.pri.patch \ | ||
15 | file://0010-configure-Hack-to-not-use-the-pg_config-of-the-host-.patch \ | ||
16 | file://0011-freetype-host-includes.patch \ | ||
17 | file://0012-Add-2bpp-support.patch \ | ||
18 | file://0013-configure-add-crossarch-option.patch \ | ||
19 | file://0014-translations-fix-phony-translation-linking-error.patch \ | ||
20 | file://0015-configure-add-nostrip-for-debug-packages.patch \ | ||
21 | file://0016-configure-eval-QMAKE_CXX.patch \ | ||
22 | file://0017-configure-ensure-we-identify-the-compiler-as-g-in-co.patch \ | ||
23 | file://0018-configure-make-pulseaudio-a-configurable-option.patch \ | ||
24 | file://0019-Fixes-for-gcc-4.7.0-particularly-on-qemux86.patch \ | ||
25 | file://0020-webkit-disable-the-fuse-ld-gold-flag.patch \ | ||
26 | file://g++.conf \ | ||
27 | file://linux.conf \ | ||
28 | " | ||
29 | |||
30 | SRC_URI[md5sum] = "a663b6c875f8d7caa8ac9c30e4a4ec3b" | ||
31 | SRC_URI[sha256sum] = "f1f72974f924861be04019f49f07cd43ab3c95056db2ba8f34b283487cccc728" | ||
32 | |||
33 | S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" | ||
34 | |||
35 | FILES_${QT_BASE_NAME}-tools_append = " ${bindir}/qml ${bindir}/qmlplugindump" | ||
36 | FILES_${QT_BASE_NAME}-tools-dbg_append = " ${bindir}/.debug/qml ${bindir}/.debug/qmlplugindump" | ||
37 | |||
38 | PACKAGES_append = " ${QT_BASE_NAME}-tests-dbg ${QT_BASE_NAME}-tests" | ||
39 | FILES_${QT_BASE_NAME}-tests-dbg = "/usr/tests/qt4/*/.debug" | ||
40 | FILES_${QT_BASE_NAME}-tests = "/usr/tests/qt4/*" | ||
41 | |||
42 | do_configure_prepend() { | ||
43 | for pro in $(find ${S} -name "*.pro") ; do | ||
44 | sed -i \ | ||
45 | -e 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' \ | ||
46 | -e 's:qtPrepareTool(LRELEASE, lrelease):LRELEASE = ${OE_QMAKE_LRELEASE}:g' $pro | ||
47 | done | ||
48 | |||
49 | sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf | ||
50 | sed -i \ | ||
51 | -e /QMAKE_MOC\ /d \ | ||
52 | -e /QMAKE_UIC\ /d \ | ||
53 | -e /QMAKE_UIC3\ /d \ | ||
54 | -e /QMAKE_RCC\ /d \ | ||
55 | ${S}/configure | ||
56 | |||
57 | # Avoid problems with Qt 4.8.0 configure setting QMAKE_LINK from LD (since we want the linker to be g++) | ||
58 | unset LD | ||
59 | } | ||
60 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch new file mode 100644 index 0000000000..e7eb52c8ea --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 89349d565cf03f3a2c09fe235ac6c75e415859bd Mon Sep 17 00:00:00 2001 | ||
2 | From: Holger Freyther <zecke@selfish.org> | ||
3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 | ||
4 | Subject: [PATCH 01/20] qlibraryinfo: allow to set qt.conf from the outside | ||
5 | using the environment | ||
6 | |||
7 | Allow to set a qt.conf from the outside using the environment. This allows | ||
8 | to inject new prefixes and other paths into qmake. This is needed when using | ||
9 | the same qmake binary to build qt/x11 and qt/embedded | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
14 | --- | ||
15 | src/corelib/global/qlibraryinfo.cpp | 5 +++++ | ||
16 | 1 file changed, 5 insertions(+) | ||
17 | |||
18 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
19 | index 91d2dfc..41045b3 100644 | ||
20 | --- a/src/corelib/global/qlibraryinfo.cpp | ||
21 | +++ b/src/corelib/global/qlibraryinfo.cpp | ||
22 | @@ -54,6 +54,7 @@ | ||
23 | QT_BEGIN_NAMESPACE | ||
24 | extern QString qmake_libraryInfoFile(); | ||
25 | QT_END_NAMESPACE | ||
26 | +#include <stdlib.h> | ||
27 | #else | ||
28 | # include "qcoreapplication.h" | ||
29 | #endif | ||
30 | @@ -112,6 +113,10 @@ QSettings *QLibraryInfoPrivate::findConfiguration() | ||
31 | #ifdef BOOTSTRAPPING | ||
32 | if(!QFile::exists(qtconfig)) | ||
33 | qtconfig = qmake_libraryInfoFile(); | ||
34 | + if (!QFile::exists(qtconfig)) { | ||
35 | + QByteArray config = getenv("QT_CONF_PATH"); | ||
36 | + qtconfig = QFile::decodeName(config); | ||
37 | + } | ||
38 | #else | ||
39 | if (!QFile::exists(qtconfig) && QCoreApplication::instance()) { | ||
40 | #ifdef Q_OS_MAC | ||
41 | -- | ||
42 | 1.7.12 | ||
43 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0002-qkbdtty_qws-fix-build-with-old-kernel-headers.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0002-qkbdtty_qws-fix-build-with-old-kernel-headers.patch new file mode 100644 index 0000000000..fbda9c4f16 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0002-qkbdtty_qws-fix-build-with-old-kernel-headers.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From fe15b966616cc2d2f2f071474a3414fd03ee473e Mon Sep 17 00:00:00 2001 | ||
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
3 | Date: Wed, 26 Sep 2012 20:18:08 +0200 | ||
4 | Subject: [PATCH 02/20] qkbdtty_qws: fix build with old kernel headers | ||
5 | |||
6 | This issue is that with C++ compiler process an old version of kernel | ||
7 | header file, coincidently that file has a variable named 'new': | ||
8 | |||
9 | * 'embedded/qkbdtty_qws.cpp' include 'linux/vt.h'; | ||
10 | * '/usr/include/linux/vt.h' has below code on SLED-11.x: | ||
11 | + unsigned int new; | ||
12 | |||
13 | On mostly hosts it has been changed to: new -> newev. | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | |||
17 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
18 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
19 | --- | ||
20 | src/gui/embedded/qkbdtty_qws.cpp | 12 ++++++++++++ | ||
21 | 1 file changed, 12 insertions(+) | ||
22 | |||
23 | diff --git a/src/gui/embedded/qkbdtty_qws.cpp b/src/gui/embedded/qkbdtty_qws.cpp | ||
24 | index c629fa3..47fd3f7 100644 | ||
25 | --- a/src/gui/embedded/qkbdtty_qws.cpp | ||
26 | +++ b/src/gui/embedded/qkbdtty_qws.cpp | ||
27 | @@ -54,8 +54,20 @@ | ||
28 | |||
29 | #if defined Q_OS_LINUX | ||
30 | # include <linux/kd.h> | ||
31 | + | ||
32 | +/* Workaround kernel headers using "new" as variable name. The problem | ||
33 | + is specific to SLED-11, other distros use "newev" rather than "new" */ | ||
34 | +#ifdef __cplusplus | ||
35 | +#warning "workaround kernel headers using new as variable name on SLED 11" | ||
36 | +#define new newev | ||
37 | +#endif | ||
38 | + | ||
39 | # include <linux/vt.h> //TODO: move vt handling somewhere else (QLinuxFbScreen?) | ||
40 | |||
41 | +#ifdef __cplusplus | ||
42 | +#undef new | ||
43 | +#endif | ||
44 | + | ||
45 | # include "qscreen_qws.h" | ||
46 | # include "qwindowsystem_qws.h" | ||
47 | # include "qapplication.h" | ||
48 | -- | ||
49 | 1.7.12 | ||
50 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0003-webkit2-set-OUTPUT_DIR-value-if-empty.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0003-webkit2-set-OUTPUT_DIR-value-if-empty.patch new file mode 100644 index 0000000000..66a7db1dd2 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0003-webkit2-set-OUTPUT_DIR-value-if-empty.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From f7eb6d336d30da7b8193f1d1ab6142293e3966da Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Tue, 1 May 2012 07:48:15 +0200 | ||
4 | Subject: [PATCH 03/20] webkit2: set OUTPUT_DIR value if empty | ||
5 | |||
6 | Without this do_configure was trying to create /include/WebCore/libdummy.prl in root of build host filesystem | ||
7 | now it's in proper place ${WORKDIR}/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/include/WebCore/libdummy.prl | ||
8 | |||
9 | First reported here: | ||
10 | http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg24436.html | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
15 | --- | ||
16 | src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro | 2 ++ | ||
17 | 1 file changed, 2 insertions(+) | ||
18 | |||
19 | diff --git a/src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro b/src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro | ||
20 | index 006a88c..5e17193 100644 | ||
21 | --- a/src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro | ||
22 | +++ b/src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro | ||
23 | @@ -3,6 +3,8 @@ TARGET = dummy | ||
24 | |||
25 | CONFIG -= debug_and_release | ||
26 | |||
27 | +isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../.. | ||
28 | + | ||
29 | CONFIG(standalone_package) { | ||
30 | isEmpty(WEBKIT2_GENERATED_SOURCES_DIR):WEBKIT2_GENERATED_SOURCES_DIR = $$PWD/generated | ||
31 | isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = $$PWD/../WebCore/generated | ||
32 | -- | ||
33 | 1.7.12 | ||
34 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0004-configure-qmake-is-already-built-in-qt4-tools-native.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0004-configure-qmake-is-already-built-in-qt4-tools-native.patch new file mode 100644 index 0000000000..56bb8c37e0 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0004-configure-qmake-is-already-built-in-qt4-tools-native.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 53a20e5f7f790d047b67b1631e1d4acc9a86906a Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Wed, 26 Sep 2012 20:24:20 +0200 | ||
4 | Subject: [PATCH 04/20] configure: qmake is already built in qt4-tools-native, | ||
5 | so disable it | ||
6 | |||
7 | Upstream-Status: Inappropriate [configuration] | ||
8 | |||
9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
10 | --- | ||
11 | configure | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/configure b/configure | ||
15 | index d19f443..59bdb63 100755 | ||
16 | --- a/configure | ||
17 | +++ b/configure | ||
18 | @@ -4899,7 +4899,7 @@ setBootstrapVariable() | ||
19 | } | ||
20 | |||
21 | # build qmake | ||
22 | -if true; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
23 | +if false; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
24 | echo "Creating qmake. Please wait..." | ||
25 | |||
26 | OLD_QCONFIG_H= | ||
27 | -- | ||
28 | 1.7.12 | ||
29 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0005-configure-set-LFLAGS-to-pick-up-zlib-from-staging.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0005-configure-set-LFLAGS-to-pick-up-zlib-from-staging.patch new file mode 100644 index 0000000000..4e310c2c61 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0005-configure-set-LFLAGS-to-pick-up-zlib-from-staging.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 5641d763180e7f848f5d39588417292b6b8df88e Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= <jeremy.laine@m4x.org> | ||
3 | Date: Wed, 26 Sep 2012 20:27:44 +0200 | ||
4 | Subject: [PATCH 05/20] configure: set LFLAGS to pick up zlib from staging | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | configure | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/configure b/configure | ||
14 | index 59bdb63..cc08b71 100755 | ||
15 | --- a/configure | ||
16 | +++ b/configure | ||
17 | @@ -690,7 +690,7 @@ fi | ||
18 | # initalize variables | ||
19 | #------------------------------------------------------------------------------- | ||
20 | |||
21 | -SYSTEM_VARIABLES="RANLIB STRIP OBJDUMP LD CC CXX CFLAGS CXXFLAGS LDFLAGS" | ||
22 | +SYSTEM_VARIABLES="RANLIB STRIP OBJDUMP LD CC CXX CFLAGS CXXFLAGS LDFLAGS LFLAGS" | ||
23 | for varname in $SYSTEM_VARIABLES; do | ||
24 | qmakevarname="${varname}" | ||
25 | # use LDFLAGS for autoconf compat, but qmake uses QMAKE_LFLAGS | ||
26 | -- | ||
27 | 1.7.12 | ||
28 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0006-configure-Use-OE_QMAKE_-values-to-specify-Qt-utility.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0006-configure-Use-OE_QMAKE_-values-to-specify-Qt-utility.patch new file mode 100644 index 0000000000..21d5b4da19 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0006-configure-Use-OE_QMAKE_-values-to-specify-Qt-utility.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From fa9e376ff72f488608c8fc635ec669fc00c3c1ea Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Wed, 26 Sep 2012 20:29:09 +0200 | ||
4 | Subject: [PATCH 06/20] configure: Use OE_QMAKE_* values to specify Qt utility | ||
5 | paths | ||
6 | |||
7 | Upstream-Status: Inappropriate [configuration] | ||
8 | |||
9 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | --- | ||
12 | configure | 10 +++++----- | ||
13 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
14 | |||
15 | diff --git a/configure b/configure | ||
16 | index cc08b71..958b884 100755 | ||
17 | --- a/configure | ||
18 | +++ b/configure | ||
19 | @@ -8612,11 +8612,11 @@ QMAKE_ABSOLUTE_SOURCE_ROOT = \$\$QT_SOURCE_TREE | ||
20 | QMAKE_MOC_SRC = \$\$QT_BUILD_TREE/src/moc | ||
21 | |||
22 | #local paths that cannot be queried from the QT_INSTALL_* properties while building QTDIR | ||
23 | -QMAKE_MOC = \$\$QT_BUILD_TREE/bin/moc | ||
24 | -QMAKE_UIC = \$\$QT_BUILD_TREE/bin/uic | ||
25 | -QMAKE_UIC3 = \$\$QT_BUILD_TREE/bin/uic3 | ||
26 | -QMAKE_RCC = \$\$QT_BUILD_TREE/bin/rcc | ||
27 | -QMAKE_QDBUSXML2CPP = \$\$QT_BUILD_TREE/bin/qdbusxml2cpp | ||
28 | +QMAKE_MOC = \${OE_QMAKE_MOC} | ||
29 | +QMAKE_UIC = \${OE_QMAKE_UIC} | ||
30 | +QMAKE_UIC3 = \${OE_QMAKE_UIC3} | ||
31 | +QMAKE_RCC = \${OE_QMAKE_RCC} | ||
32 | +QMAKE_QDBUSXML2CPP = \${OE_QMAKE_QDBUSXML2CPP} | ||
33 | QMAKE_INCDIR_QT = \$\$QT_BUILD_TREE/include | ||
34 | QMAKE_LIBDIR_QT = \$\$QT_BUILD_TREE/lib | ||
35 | |||
36 | -- | ||
37 | 1.7.12 | ||
38 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0007-dbus-Remove-const-usage-that-causes-compile-failure-.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0007-dbus-Remove-const-usage-that-causes-compile-failure-.patch new file mode 100644 index 0000000000..1ce3dbb913 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0007-dbus-Remove-const-usage-that-causes-compile-failure-.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From db3c7b5710ee14280b51c355487dabe21eff60b4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Pavel Heimlich <tropikhajma@gmail.com> | ||
3 | Date: Wed, 26 Sep 2012 20:31:10 +0200 | ||
4 | Subject: [PATCH 07/20] dbus: Remove "const" usage that causes compile failure | ||
5 | building nativesdk-qt4-tools | ||
6 | |||
7 | Patch has apparently been rejected upstream, not because it is invalid | ||
8 | but because the submitter did not submit a merge request for it, so the | ||
9 | validity of the patch upstream is uncertain. For further details see: | ||
10 | http://bugreports.qt.nokia.com/browse/QTBUG-17962 | ||
11 | |||
12 | Upstream-Status: Denied [possible retry] | ||
13 | |||
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
15 | --- | ||
16 | src/dbus/qdbusintegrator.cpp | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp | ||
20 | index 0bf62de..e53620f 100644 | ||
21 | --- a/src/dbus/qdbusintegrator.cpp | ||
22 | +++ b/src/dbus/qdbusintegrator.cpp | ||
23 | @@ -72,7 +72,7 @@ QT_BEGIN_NAMESPACE | ||
24 | static bool isDebugging; | ||
25 | #define qDBusDebug if (!::isDebugging); else qDebug | ||
26 | |||
27 | -Q_GLOBAL_STATIC_WITH_ARGS(const QString, orgFreedesktopDBusString, (QLatin1String(DBUS_SERVICE_DBUS))) | ||
28 | +Q_GLOBAL_STATIC_WITH_ARGS(QString, orgFreedesktopDBusString, (QLatin1String(DBUS_SERVICE_DBUS))) | ||
29 | |||
30 | static inline QString dbusServiceString() | ||
31 | { return *orgFreedesktopDBusString(); } | ||
32 | -- | ||
33 | 1.7.12 | ||
34 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0008-qmake.pro-Allow-building-a-separate-qmake-for-the-ta.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0008-qmake.pro-Allow-building-a-separate-qmake-for-the-ta.patch new file mode 100644 index 0000000000..d945025eba --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0008-qmake.pro-Allow-building-a-separate-qmake-for-the-ta.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From dacee47b11fc7cf89cdb8ddeeac9e6b64320ec8b Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Wed, 26 Sep 2012 20:32:41 +0200 | ||
4 | Subject: [PATCH 08/20] qmake.pro: Allow building a separate qmake for the | ||
5 | target | ||
6 | |||
7 | Upstream-Status: Inappropriate [config] | ||
8 | |||
9 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | --- | ||
12 | qmake/qmake.pro | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/qmake/qmake.pro b/qmake/qmake.pro | ||
16 | index 38e0fce..53b1ffb 100644 | ||
17 | --- a/qmake/qmake.pro | ||
18 | +++ b/qmake/qmake.pro | ||
19 | @@ -7,6 +7,7 @@ CONFIG += console bootstrap | ||
20 | CONFIG -= qt shared app_bundle uic | ||
21 | DEFINES += QT_BUILD_QMAKE QT_BOOTSTRAPPED | ||
22 | DESTDIR = ../bin/ | ||
23 | +TARGET = qmake2 | ||
24 | |||
25 | OBJECTS_DIR = . | ||
26 | MOC_DIR = . | ||
27 | -- | ||
28 | 1.7.12 | ||
29 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0009-qmake-fix-source-file-references-in-qmake.pri.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0009-qmake-fix-source-file-references-in-qmake.pri.patch new file mode 100644 index 0000000000..9616a5b2f8 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0009-qmake-fix-source-file-references-in-qmake.pri.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From 08ec0f7ac7438e6f5b506b23fb52fe086078308b Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Wed, 26 Sep 2012 20:33:49 +0200 | ||
4 | Subject: [PATCH 09/20] qmake: fix source file references in qmake.pri | ||
5 | |||
6 | Fix duplicate entries in SOURCES and HEADERS, and fix the source file | ||
7 | list for the split of qlocale.cpp. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
13 | --- | ||
14 | qmake/qmake.pri | 8 ++++---- | ||
15 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
16 | |||
17 | diff --git a/qmake/qmake.pri b/qmake/qmake.pri | ||
18 | index 31f67f4..9081669 100644 | ||
19 | --- a/qmake/qmake.pri | ||
20 | +++ b/qmake/qmake.pri | ||
21 | @@ -22,8 +22,7 @@ SOURCES += project.cpp property.cpp main.cpp generators/makefile.cpp \ | ||
22 | generators/symbian/initprojectdeploy_symbian.cpp \ | ||
23 | generators/integrity/gbuild.cpp \ | ||
24 | windows/registry.cpp \ | ||
25 | - symbian/epocroot.cpp \ | ||
26 | - generators/integrity/gbuild.cpp | ||
27 | + symbian/epocroot.cpp | ||
28 | |||
29 | HEADERS += project.h property.h generators/makefile.h \ | ||
30 | generators/unix/unixmake.h meta.h option.h cachekeys.h \ | ||
31 | @@ -40,8 +39,7 @@ HEADERS += project.h property.h generators/makefile.h \ | ||
32 | generators/symbian/initprojectdeploy_symbian.h \ | ||
33 | generators/integrity/gbuild.h \ | ||
34 | windows/registry_p.h \ | ||
35 | - symbian/epocroot_p.h \ | ||
36 | - generators/integrity/gbuild.h | ||
37 | + symbian/epocroot_p.h | ||
38 | |||
39 | contains(QT_EDITION, OpenSource) { | ||
40 | DEFINES += QMAKE_OPENSOURCE_EDITION | ||
41 | @@ -72,6 +70,8 @@ bootstrap { #Qt code | ||
42 | qlist.cpp \ | ||
43 | qlinkedlist.cpp \ | ||
44 | qlocale.cpp \ | ||
45 | + qlocale_tools.cpp \ | ||
46 | + qlocale_unix.cpp \ | ||
47 | qmalloc.cpp \ | ||
48 | qmap.cpp \ | ||
49 | qmetatype.cpp \ | ||
50 | -- | ||
51 | 1.7.12 | ||
52 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0010-configure-Hack-to-not-use-the-pg_config-of-the-host-.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0010-configure-Hack-to-not-use-the-pg_config-of-the-host-.patch new file mode 100644 index 0000000000..f3674e8108 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0010-configure-Hack-to-not-use-the-pg_config-of-the-host-.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From d9544b4a079f3c66d15f973c5d1526df2fe49d40 Mon Sep 17 00:00:00 2001 | ||
2 | From: Holger Freyther <zecke@selfish.org> | ||
3 | Date: Wed, 26 Sep 2012 20:36:38 +0200 | ||
4 | Subject: [PATCH 10/20] configure: Hack to not use the pg_config of the host | ||
5 | system which will add /usr/include | ||
6 | |||
7 | pg_config is a native binary so using that when cross compiling | ||
8 | will always fail. The commented out fix would do, but for OE | ||
9 | our -platform and -xplatform is the same so we are actually not | ||
10 | really cross compiling. Just comment out the test, we are passing | ||
11 | the location to the postgres headers and if they are okay we | ||
12 | will pad. | ||
13 | |||
14 | Upstream-Status: Inappropriate [configuration] | ||
15 | |||
16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
17 | --- | ||
18 | configure | 8 ++++---- | ||
19 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
20 | |||
21 | diff --git a/configure b/configure | ||
22 | index 958b884..24cbb2a 100755 | ||
23 | --- a/configure | ||
24 | +++ b/configure | ||
25 | @@ -5441,10 +5441,10 @@ for _SQLDR in $CFG_SQL_AVAILABLE; do | ||
26 | psql) | ||
27 | if [ "$CFG_SQL_psql" != "no" ]; then | ||
28 | # Be careful not to use native pg_config when cross building. | ||
29 | - if [ "$XPLATFORM_MINGW" != "yes" ] && "$WHICH" pg_config >/dev/null 2>&1; then | ||
30 | - QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` | ||
31 | - QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` | ||
32 | - fi | ||
33 | +# if [ "$XPLATFORM_MINGW" != "yes" ] && "$WHICH" pg_config >/dev/null 2>&1; then | ||
34 | +# QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` | ||
35 | +# QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` | ||
36 | +# fi | ||
37 | [ -z "$QT_CFLAGS_PSQL" ] || QT_CFLAGS_PSQL="-I$QT_CFLAGS_PSQL" | ||
38 | [ -z "$QT_LFLAGS_PSQL" ] || QT_LFLAGS_PSQL="-L$QT_LFLAGS_PSQL" | ||
39 | # But, respect PSQL_LIBS if set | ||
40 | -- | ||
41 | 1.7.12 | ||
42 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0011-freetype-host-includes.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0011-freetype-host-includes.patch new file mode 100644 index 0000000000..60acb803a4 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0011-freetype-host-includes.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 95cbbdaaf543bb5747b535b5e4b02114f3d821d6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Mon, 4 Jun 2007 14:48:50 +0200 | ||
4 | Subject: [PATCH 11/20] freetype host includes | ||
5 | |||
6 | Host include path should not be used in cross compiling case. | ||
7 | |||
8 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | config.tests/unix/freetype/freetype.pri | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/config.tests/unix/freetype/freetype.pri b/config.tests/unix/freetype/freetype.pri | ||
17 | index 7ef1cf9..b362fcd 100644 | ||
18 | --- a/config.tests/unix/freetype/freetype.pri | ||
19 | +++ b/config.tests/unix/freetype/freetype.pri | ||
20 | @@ -1,5 +1,5 @@ | ||
21 | !cross_compile { | ||
22 | - TRY_INCLUDEPATHS = /include /usr/include $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
23 | + TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
24 | # LSB doesn't allow using headers from /include or /usr/include | ||
25 | linux-lsb-g++:TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
26 | for(p, TRY_INCLUDEPATHS) { | ||
27 | -- | ||
28 | 1.7.12 | ||
29 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0012-Add-2bpp-support.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0012-Add-2bpp-support.patch new file mode 100644 index 0000000000..019b9f4be7 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0012-Add-2bpp-support.patch | |||
@@ -0,0 +1,318 @@ | |||
1 | From a8233fddb36592361910d967664e5b546ac4cc3e Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= <jeremy.laine@m4x.org> | ||
3 | Date: Wed, 26 Sep 2012 20:39:21 +0200 | ||
4 | Subject: [PATCH 12/20] Add 2bpp support | ||
5 | |||
6 | Submitted upstream but rejected as being "out of scope": | ||
7 | http://bugreports.qt.nokia.com/browse/QTBUG-3468 | ||
8 | |||
9 | Upstream-Status: Denied | ||
10 | |||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | configure | 5 +- | ||
14 | src/gui/embedded/qscreen_qws.cpp | 211 ++++++++++++++++++++++++++++++++ | ||
15 | src/gui/embedded/qscreenlinuxfb_qws.cpp | 4 +- | ||
16 | 3 files changed, 216 insertions(+), 4 deletions(-) | ||
17 | |||
18 | diff --git a/configure b/configure | ||
19 | index 24cbb2a..cd66d05 100755 | ||
20 | --- a/configure | ||
21 | +++ b/configure | ||
22 | @@ -6999,6 +6999,7 @@ if [ "$CFG_QWS_DEPTHS" = "prompted" -a "$PROMPT_FOR_DEPTHS" = "yes" ]; then | ||
23 | echo "Choose pixel-depths to support:" | ||
24 | echo | ||
25 | echo " 1. 1bpp, black/white" | ||
26 | + echo " 2. 2bpp, grayscale" | ||
27 | echo " 4. 4bpp, grayscale" | ||
28 | echo " 8. 8bpp, paletted" | ||
29 | echo " 12. 12bpp, rgb 4-4-4" | ||
30 | @@ -7017,11 +7018,11 @@ if [ "$CFG_QWS_DEPTHS" = "prompted" -a "$PROMPT_FOR_DEPTHS" = "yes" ]; then | ||
31 | fi | ||
32 | if [ -n "$CFG_QWS_DEPTHS" -a "$PLATFORM_QWS" = "yes" ]; then | ||
33 | if [ "$CFG_QWS_DEPTHS" = "all" ]; then | ||
34 | - CFG_QWS_DEPTHS="1 4 8 12 15 16 18 24 32 generic" | ||
35 | + CFG_QWS_DEPTHS="1 2 4 8 12 15 16 18 24 32 generic" | ||
36 | fi | ||
37 | for D in `echo "$CFG_QWS_DEPTHS" | sed -e 's/,/ /g'`; do | ||
38 | case $D in | ||
39 | - 1|4|8|12|15|16|18|24|32) QCONFIG_FLAGS="$QCONFIG_FLAGS QT_QWS_DEPTH_$D";; | ||
40 | + 1|2|4|8|12|15|16|18|24|32) QCONFIG_FLAGS="$QCONFIG_FLAGS QT_QWS_DEPTH_$D";; | ||
41 | generic) QCONFIG_FLAGS="$QCONFIG_FLAGS QT_QWS_DEPTH_GENERIC";; | ||
42 | esac | ||
43 | done | ||
44 | diff --git a/src/gui/embedded/qscreen_qws.cpp b/src/gui/embedded/qscreen_qws.cpp | ||
45 | index d2ad851..d25fc87 100644 | ||
46 | --- a/src/gui/embedded/qscreen_qws.cpp | ||
47 | +++ b/src/gui/embedded/qscreen_qws.cpp | ||
48 | @@ -469,6 +469,58 @@ static void solidFill_gray4(QScreen *screen, const QColor &color, | ||
49 | } | ||
50 | #endif // QT_QWS_DEPTH_4 | ||
51 | |||
52 | +#ifdef QT_QWS_DEPTH_2 | ||
53 | +static inline void qt_rectfill_gray2(quint8 *dest, quint8 value, | ||
54 | + int x, int y, int width, int height, | ||
55 | + int stride) | ||
56 | +{ | ||
57 | + const int pixelsPerByte = 4; | ||
58 | + const int alignWidth = qMin(width, (4 - (x & 3)) & 3); | ||
59 | + const int doAlign = (alignWidth > 0 ? 1 : 0); | ||
60 | + const int alignStart = pixelsPerByte - 1 - (x & 3); | ||
61 | + const int alignStop = alignStart - (alignWidth - 1); | ||
62 | + const quint8 alignMask = ((1 << (2 * alignWidth)) - 1) << (2 * alignStop); | ||
63 | + const int tailWidth = (width - alignWidth) & 3; | ||
64 | + const int doTail = (tailWidth > 0 ? 1 : 0); | ||
65 | + const quint8 tailMask = (1 << (2 * (pixelsPerByte - tailWidth))) - 1; | ||
66 | + const int width8 = (width - alignWidth) / pixelsPerByte; | ||
67 | + | ||
68 | + dest += y * stride + x / pixelsPerByte; | ||
69 | + stride -= (doAlign + width8); | ||
70 | + | ||
71 | + for (int j = 0; j < height; ++j) { | ||
72 | + if (doAlign) { | ||
73 | + *dest = (*dest & ~alignMask) | (value & alignMask); | ||
74 | + ++dest; | ||
75 | + } | ||
76 | + if (width8) { | ||
77 | + qt_memfill<quint8>(dest, value, width8); | ||
78 | + dest += width8; | ||
79 | + } | ||
80 | + if (doTail) | ||
81 | + *dest = (*dest & tailMask) | (value & ~tailMask); | ||
82 | + dest += stride; | ||
83 | + } | ||
84 | +} | ||
85 | + | ||
86 | +static void solidFill_gray2(QScreen *screen, const QColor &color, | ||
87 | + const QRegion ®ion) | ||
88 | +{ | ||
89 | + quint8 *dest = reinterpret_cast<quint8*>(screen->base()); | ||
90 | + const quint8 c = qGray(color.rgba()) >> 6; | ||
91 | + const quint8 c8 = (c << 6) | (c << 4) | (c << 2) | c; | ||
92 | + | ||
93 | + const int stride = screen->linestep(); | ||
94 | + const QVector<QRect> rects = region.rects(); | ||
95 | + | ||
96 | + for (int i = 0; i < rects.size(); ++i) { | ||
97 | + const QRect r = rects.at(i); | ||
98 | + qt_rectfill_gray2(dest, c8, r.x(), r.y(), r.width(), r.height(), | ||
99 | + stride); | ||
100 | + } | ||
101 | +} | ||
102 | +#endif // QT_QWS_DEPTH_2 | ||
103 | + | ||
104 | #ifdef QT_QWS_DEPTH_1 | ||
105 | static inline void qt_rectfill_mono(quint8 *dest, quint8 value, | ||
106 | int x, int y, int width, int height, | ||
107 | @@ -576,6 +628,11 @@ void qt_solidFill_setup(QScreen *screen, const QColor &color, | ||
108 | screen->d_ptr->solidFill = solidFill_gray4; | ||
109 | break; | ||
110 | #endif | ||
111 | +#ifdef QT_QWS_DEPTH_2 | ||
112 | + case 2: | ||
113 | + screen->d_ptr->solidFill = solidFill_gray2; | ||
114 | + break; | ||
115 | +#endif | ||
116 | #ifdef QT_QWS_DEPTH_1 | ||
117 | case 1: | ||
118 | screen->d_ptr->solidFill = solidFill_mono; | ||
119 | @@ -1006,6 +1063,149 @@ static void blit_4(QScreen *screen, const QImage &image, | ||
120 | } | ||
121 | #endif // QT_QWS_DEPTH_4 | ||
122 | |||
123 | +#ifdef QT_QWS_DEPTH_2 | ||
124 | + | ||
125 | +struct qgray2 { quint8 dummy; } Q_PACKED; | ||
126 | + | ||
127 | +template <typename SRC> | ||
128 | +static inline quint8 qt_convertToGray2(SRC color); | ||
129 | + | ||
130 | +template <> | ||
131 | +inline quint8 qt_convertToGray2(quint32 color) | ||
132 | +{ | ||
133 | + return qGray(color) >> 6; | ||
134 | +} | ||
135 | + | ||
136 | +template <> | ||
137 | +inline quint8 qt_convertToGray2(quint16 color) | ||
138 | +{ | ||
139 | + const int r = (color & 0xf800) >> 11; | ||
140 | + const int g = (color & 0x07e0) >> 6; // only keep 5 bit | ||
141 | + const int b = (color & 0x001f); | ||
142 | + return (r * 11 + g * 16 + b * 5) >> 8; | ||
143 | +} | ||
144 | + | ||
145 | +template <> | ||
146 | +inline quint8 qt_convertToGray2(qrgb444 color) | ||
147 | +{ | ||
148 | + return qt_convertToGray2(quint32(color)); | ||
149 | +} | ||
150 | + | ||
151 | +template <> | ||
152 | +inline quint8 qt_convertToGray2(qargb4444 color) | ||
153 | +{ | ||
154 | + return qt_convertToGray2(quint32(color)); | ||
155 | +} | ||
156 | + | ||
157 | +template <typename SRC> | ||
158 | +static inline void qt_rectconvert_gray2(qgray2 *dest2, const SRC *src, | ||
159 | + int x, int y, int width, int height, | ||
160 | + int dstStride, int srcStride) | ||
161 | +{ | ||
162 | + const int pixelsPerByte = 4; | ||
163 | + quint8 *dest8 = reinterpret_cast<quint8*>(dest2) | ||
164 | + + y * dstStride + x / pixelsPerByte; | ||
165 | + const int alignWidth = qMin(width, (4 - (x & 3)) & 3); | ||
166 | + const int doAlign = (alignWidth > 0 ? 1 : 0); | ||
167 | + const int alignStart = pixelsPerByte - 1 - (x & 3); | ||
168 | + const int alignStop = alignStart - (alignWidth - 1); | ||
169 | + const quint8 alignMask = ((1 << (2 * alignWidth)) - 1) << (2 * alignStop); | ||
170 | + const int tailWidth = (width - alignWidth) & 3; | ||
171 | + const int doTail = (tailWidth > 0 ? 1 : 0); | ||
172 | + const quint8 tailMask = (1 << (2 * (pixelsPerByte - tailWidth))) - 1; | ||
173 | + const int width8 = (width - alignWidth) / pixelsPerByte; | ||
174 | + | ||
175 | + srcStride = srcStride / sizeof(SRC) - (width8 * pixelsPerByte + alignWidth); | ||
176 | + dstStride -= (width8 + doAlign); | ||
177 | + | ||
178 | + for (int j = 0; j < height; ++j) { | ||
179 | + if (doAlign) { | ||
180 | + quint8 d = *dest8 & ~alignMask; | ||
181 | + for (int i = alignStart; i >= alignStop; --i) | ||
182 | + d |= qt_convertToGray2<SRC>(*src++) << (2 * i); | ||
183 | + *dest8++ = d; | ||
184 | + } | ||
185 | + for (int i = 0; i < width8; ++i) { | ||
186 | + *dest8 = (qt_convertToGray2<SRC>(src[0]) << 6) | ||
187 | + | (qt_convertToGray2<SRC>(src[1]) << 4) | ||
188 | + | (qt_convertToGray2<SRC>(src[2]) << 2) | ||
189 | + | (qt_convertToGray2<SRC>(src[3])); | ||
190 | + src += 4; | ||
191 | + ++dest8; | ||
192 | + } | ||
193 | + if (doTail) { | ||
194 | + quint8 d = *dest8 & tailMask; | ||
195 | + switch (tailWidth) { | ||
196 | + case 3: d |= qt_convertToGray2<SRC>(src[2]) << 2; | ||
197 | + case 2: d |= qt_convertToGray2<SRC>(src[1]) << 4; | ||
198 | + case 1: d |= qt_convertToGray2<SRC>(src[0]) << 6; | ||
199 | + } | ||
200 | + *dest8 = d; | ||
201 | + } | ||
202 | + | ||
203 | + dest8 += dstStride; | ||
204 | + src += srcStride; | ||
205 | + } | ||
206 | +} | ||
207 | + | ||
208 | +template <> | ||
209 | +void qt_rectconvert(qgray2 *dest, const quint32 *src, | ||
210 | + int x, int y, int width, int height, | ||
211 | + int dstStride, int srcStride) | ||
212 | +{ | ||
213 | + qt_rectconvert_gray2<quint32>(dest, src, x, y, width, height, | ||
214 | + dstStride, srcStride); | ||
215 | +} | ||
216 | + | ||
217 | +template <> | ||
218 | +void qt_rectconvert(qgray2 *dest, const quint16 *src, | ||
219 | + int x, int y, int width, int height, | ||
220 | + int dstStride, int srcStride) | ||
221 | +{ | ||
222 | + qt_rectconvert_gray2<quint16>(dest, src, x, y, width, height, | ||
223 | + dstStride, srcStride); | ||
224 | +} | ||
225 | + | ||
226 | +template <> | ||
227 | +void qt_rectconvert(qgray2 *dest, const qrgb444 *src, | ||
228 | + int x, int y, int width, int height, | ||
229 | + int dstStride, int srcStride) | ||
230 | +{ | ||
231 | + qt_rectconvert_gray2<qrgb444>(dest, src, x, y, width, height, | ||
232 | + dstStride, srcStride); | ||
233 | +} | ||
234 | + | ||
235 | +template <> | ||
236 | +void qt_rectconvert(qgray2 *dest, const qargb4444 *src, | ||
237 | + int x, int y, int width, int height, | ||
238 | + int dstStride, int srcStride) | ||
239 | +{ | ||
240 | + qt_rectconvert_gray2<qargb4444>(dest, src, x, y, width, height, | ||
241 | + dstStride, srcStride); | ||
242 | +} | ||
243 | + | ||
244 | +static void blit_2(QScreen *screen, const QImage &image, | ||
245 | + const QPoint &topLeft, const QRegion ®ion) | ||
246 | +{ | ||
247 | + switch (image.format()) { | ||
248 | + case QImage::Format_ARGB32_Premultiplied: | ||
249 | + blit_template<qgray2, quint32>(screen, image, topLeft, region); | ||
250 | + return; | ||
251 | + case QImage::Format_RGB16: | ||
252 | + blit_template<qgray2, quint16>(screen, image, topLeft, region); | ||
253 | + return; | ||
254 | + case QImage::Format_RGB444: | ||
255 | + blit_template<qgray2, qrgb444>(screen, image, topLeft, region); | ||
256 | + return; | ||
257 | + case QImage::Format_ARGB4444_Premultiplied: | ||
258 | + blit_template<qgray2, qargb4444>(screen, image, topLeft, region); | ||
259 | + return; | ||
260 | + default: | ||
261 | + qCritical("blit_2(): Image format %d not supported!", image.format()); | ||
262 | + } | ||
263 | +} | ||
264 | +#endif // QT_QWS_DEPTH_2 | ||
265 | + | ||
266 | #ifdef QT_QWS_DEPTH_1 | ||
267 | |||
268 | struct qmono { quint8 dummy; } Q_PACKED; | ||
269 | @@ -1259,6 +1459,11 @@ void qt_blit_setup(QScreen *screen, const QImage &image, | ||
270 | screen->d_ptr->blit = blit_4; | ||
271 | break; | ||
272 | #endif | ||
273 | +#ifdef QT_QWS_DEPTH_2 | ||
274 | + case 2: | ||
275 | + screen->d_ptr->blit = blit_2; | ||
276 | + break; | ||
277 | +#endif | ||
278 | #ifdef QT_QWS_DEPTH_1 | ||
279 | case 1: | ||
280 | screen->d_ptr->blit = blit_1; | ||
281 | @@ -2146,6 +2351,8 @@ int QScreen::alloc(unsigned int r,unsigned int g,unsigned int b) | ||
282 | } | ||
283 | } else if (d == 4) { | ||
284 | ret = qGray(r, g, b) >> 4; | ||
285 | + } else if (d == 2) { | ||
286 | + ret = qGray(r, g, b) >> 6; | ||
287 | } else if (d == 1) { | ||
288 | ret = qGray(r, g, b) >= 128; | ||
289 | } else { | ||
290 | @@ -2216,6 +2423,10 @@ bool QScreen::supportsDepth(int d) const | ||
291 | } else if(d==1) { | ||
292 | return true; | ||
293 | #endif | ||
294 | +#ifdef QT_QWS_DEPTH_2 | ||
295 | + } else if(d==2) { | ||
296 | + return true; | ||
297 | +#endif | ||
298 | #ifdef QT_QWS_DEPTH_4 | ||
299 | } else if(d==4) { | ||
300 | return true; | ||
301 | diff --git a/src/gui/embedded/qscreenlinuxfb_qws.cpp b/src/gui/embedded/qscreenlinuxfb_qws.cpp | ||
302 | index 04abcd4..06dea6d 100644 | ||
303 | --- a/src/gui/embedded/qscreenlinuxfb_qws.cpp | ||
304 | +++ b/src/gui/embedded/qscreenlinuxfb_qws.cpp | ||
305 | @@ -466,8 +466,8 @@ bool QLinuxFbScreen::connect(const QString &displaySpec) | ||
306 | setupOffScreen(); | ||
307 | |||
308 | // Now read in palette | ||
309 | - if((vinfo.bits_per_pixel==8) || (vinfo.bits_per_pixel==4)) { | ||
310 | - screencols= (vinfo.bits_per_pixel==8) ? 256 : 16; | ||
311 | + if((vinfo.bits_per_pixel==8) || (vinfo.bits_per_pixel==4) || (vinfo.bits_per_pixel==2)) { | ||
312 | + screencols= 1 << vinfo.bits_per_pixel; | ||
313 | int loopc; | ||
314 | ::fb_cmap startcmap; | ||
315 | startcmap.start=0; | ||
316 | -- | ||
317 | 1.7.12 | ||
318 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0013-configure-add-crossarch-option.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0013-configure-add-crossarch-option.patch new file mode 100644 index 0000000000..c216c8586e --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0013-configure-add-crossarch-option.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 8785f376533ffdcf4c32b53274e8c40f567d7fd5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Lauer <mickey@vanille-media.de> | ||
3 | Date: Wed, 26 Sep 2012 20:41:32 +0200 | ||
4 | Subject: [PATCH 13/20] configure: add "-crossarch" option | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | configure | 7 ++++++- | ||
11 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/configure b/configure | ||
14 | index cd66d05..f2c0725 100755 | ||
15 | --- a/configure | ||
16 | +++ b/configure | ||
17 | @@ -1141,7 +1141,7 @@ while [ "$#" -gt 0 ]; do | ||
18 | shift | ||
19 | VAL=$1 | ||
20 | ;; | ||
21 | - -prefix|-docdir|-headerdir|-plugindir|-importdir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-device-option|-buildkey|-sdk|-arch|-host-arch|-mysql_config|-sysroot) | ||
22 | + -prefix|-docdir|-headerdir|-plugindir|-importdir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-device-option|-buildkey|-sdk|-arch|-host-arch|-mysql_config|-sysroot|-crossarch) | ||
23 | VAR=`echo $1 | sed "s,^-\(.*\),\1,"` | ||
24 | shift | ||
25 | VAL="$1" | ||
26 | @@ -1697,6 +1697,9 @@ while [ "$#" -gt 0 ]; do | ||
27 | DEV_VAL=`echo $VAL | sed "s,^.*=\(.*\),\1,"` | ||
28 | DeviceVar set $DEV_VAR $DEV_VAL | ||
29 | ;; | ||
30 | + crossarch) | ||
31 | + CROSSARCH="$VAL" | ||
32 | + ;; | ||
33 | debug-and-release) | ||
34 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
35 | CFG_DEBUG_RELEASE="$VAL" | ||
36 | @@ -3297,6 +3300,8 @@ arm*) | ||
37 | ;; | ||
38 | esac | ||
39 | |||
40 | +CFG_ARCH="$CROSSARCH" | ||
41 | + | ||
42 | if [ -d "$relpath/src/corelib/arch/$CFG_ARCH" ]; then | ||
43 | if [ "$OPT_VERBOSE" = "yes" ]; then | ||
44 | echo " '$CFG_ARCH' is supported" | ||
45 | -- | ||
46 | 1.7.12 | ||
47 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0014-translations-fix-phony-translation-linking-error.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0014-translations-fix-phony-translation-linking-error.patch new file mode 100644 index 0000000000..0874c8442d --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0014-translations-fix-phony-translation-linking-error.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 851eb73f7c2d3fa8dc017c3fb4f448b522cd9873 Mon Sep 17 00:00:00 2001 | ||
2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | Date: Wed, 26 Sep 2012 20:45:10 +0200 | ||
4 | Subject: [PATCH 14/20] translations: fix phony translation linking error | ||
5 | |||
6 | | .../usr/lib/crt1.o: In function `_start': | ||
7 | | .../../sysdeps/i386/elf/start.S:115: undefined reference to `main' | ||
8 | | collect2: ld returned 1 exit status | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
13 | --- | ||
14 | translations/translations.pro | 4 ++-- | ||
15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/translations/translations.pro b/translations/translations.pro | ||
18 | index dc99beb..0d98829 100644 | ||
19 | --- a/translations/translations.pro | ||
20 | +++ b/translations/translations.pro | ||
21 | @@ -101,7 +101,7 @@ updateqm.name = LRELEASE ${QMAKE_FILE_IN} | ||
22 | updateqm.CONFIG += no_link | ||
23 | QMAKE_EXTRA_COMPILERS += updateqm | ||
24 | |||
25 | -isEmpty(vcproj) { | ||
26 | +!isEmpty(vcproj) { | ||
27 | QMAKE_LINK = @: IGNORE THIS LINE | ||
28 | OBJECTS_DIR = | ||
29 | win32:CONFIG -= embed_manifest_exe | ||
30 | @@ -111,7 +111,7 @@ isEmpty(vcproj) { | ||
31 | phony_src.input = PHONY_DEPS | ||
32 | phony_src.output = phony.c | ||
33 | phony_src.variable_out = GENERATED_SOURCES | ||
34 | - phony_src.commands = echo int main() { return 0; } > phony.c | ||
35 | + phony_src.commands = echo \"int main() { return 0; }\" > phony.c | ||
36 | phony_src.name = CREATE phony.c | ||
37 | phony_src.CONFIG += combine | ||
38 | QMAKE_EXTRA_COMPILERS += phony_src | ||
39 | -- | ||
40 | 1.7.12 | ||
41 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0015-configure-add-nostrip-for-debug-packages.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0015-configure-add-nostrip-for-debug-packages.patch new file mode 100644 index 0000000000..fc13b08854 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0015-configure-add-nostrip-for-debug-packages.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 1c42c9c5f02845ea4c5b82638b7b2ed4d3dca0ff Mon Sep 17 00:00:00 2001 | ||
2 | From: Fathi Boudra <fabo@debian.org> | ||
3 | Date: Wed, 26 Sep 2012 20:46:14 +0200 | ||
4 | Subject: [PATCH 15/20] configure: add nostrip for debug packages | ||
5 | |||
6 | Qt is built in release mode and strip files by default. | ||
7 | Set CONFIG+=nostrip to avoid the stripping and | ||
8 | let dh_strip do it to generate debug packages. | ||
9 | |||
10 | Upstream-Status: Inappropriate [Configuration] | ||
11 | |||
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
13 | --- | ||
14 | configure | 2 ++ | ||
15 | 1 file changed, 2 insertions(+) | ||
16 | |||
17 | diff --git a/configure b/configure | ||
18 | index f2c0725..d1a0dfd 100755 | ||
19 | --- a/configure | ||
20 | +++ b/configure | ||
21 | @@ -710,6 +710,8 @@ mkdir -p "$outpath/config.tests" | ||
22 | rm -f "$outpath/config.tests/.qmake.cache" | ||
23 | cp "$QMAKE_VARS_FILE" "$outpath/config.tests/.qmake.cache" | ||
24 | |||
25 | +QMakeVar add CONFIG nostrip | ||
26 | + | ||
27 | QMakeVar add styles "cde mac motif plastique cleanlooks windows" | ||
28 | QMakeVar add decorations "default windows styled" | ||
29 | QMakeVar add mouse-drivers "pc" | ||
30 | -- | ||
31 | 1.7.12 | ||
32 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0016-configure-eval-QMAKE_CXX.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0016-configure-eval-QMAKE_CXX.patch new file mode 100644 index 0000000000..87966be879 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0016-configure-eval-QMAKE_CXX.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From ec9d722e08c636e0c672b0adc3b54569367c6502 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Wed, 26 Sep 2012 20:47:08 +0200 | ||
4 | Subject: [PATCH 16/20] configure: eval QMAKE_CXX | ||
5 | |||
6 | Allow expansion of $(...) references in QMAKE_CXX (currently its value | ||
7 | is $(OE_QMAKE_CXX)) in order to allow compiler version check to succeed | ||
8 | which allows WebKit to be enabled. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
14 | |||
15 | Conflicts: | ||
16 | configure | ||
17 | --- | ||
18 | configure | 2 ++ | ||
19 | 1 file changed, 2 insertions(+) | ||
20 | |||
21 | diff --git a/configure b/configure | ||
22 | index d1a0dfd..9f59e1a 100755 | ||
23 | --- a/configure | ||
24 | +++ b/configure | ||
25 | @@ -3438,6 +3438,7 @@ else | ||
26 | fi | ||
27 | |||
28 | -QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX` | ||
29 | +QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX | sed -n 's/$[(]\([0-9a-zA-Z_]*\)[)]/$\1/pg'` | ||
30 | +QMAKE_CONF_COMPILER=`eval "echo $QMAKE_CONF_COMPILER"` | ||
31 | TEST_COMPILER="$CXX" | ||
32 | |||
33 | [ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER | ||
34 | -- | ||
35 | 1.7.12 | ||
36 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0017-configure-ensure-we-identify-the-compiler-as-g-in-co.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0017-configure-ensure-we-identify-the-compiler-as-g-in-co.patch new file mode 100644 index 0000000000..ef32932eef --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0017-configure-ensure-we-identify-the-compiler-as-g-in-co.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 5945025c96fd25880565819881b8ef48e1baa3ce Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Wed, 26 Sep 2012 20:48:37 +0200 | ||
4 | Subject: [PATCH 17/20] configure: ensure we identify the compiler as g++ in | ||
5 | configure | ||
6 | |||
7 | Our PLATFORM in OE is ${TARGET_OS}-oe-g++, and previously the configure | ||
8 | script was interpreting from this that the compiler was "oe-g++" and | ||
9 | thus | ||
10 | g++ specific checks were not being run since this string did not match; | ||
11 | among other things this resulted in a compiler version check in the | ||
12 | QtWebKit build code not working, and hence the following error at build | ||
13 | time: | ||
14 | |||
15 | ./wtf/NullPtr.h:48:1: error: identifier 'nullptr' will become a keyword | ||
16 | in C++0x [-Werror=c++0x-compat] | ||
17 | |||
18 | The easiest thing since our PLATFORM is entirely artificial is to just | ||
19 | force COMPILER to "g++" in the configure script if it is detected as | ||
20 | "oe-g++". | ||
21 | |||
22 | Upstream-Status: Inappropriate [configuration] | ||
23 | |||
24 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
25 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
26 | --- | ||
27 | configure | 3 +++ | ||
28 | 1 file changed, 3 insertions(+) | ||
29 | |||
30 | diff --git a/configure b/configure | ||
31 | index 9f59e1a..6989962 100755 | ||
32 | --- a/configure | ||
33 | +++ b/configure | ||
34 | @@ -7527,6 +7527,9 @@ elif [ "$XPLATFORM" != "$PLATFORM" ]; then | ||
35 | else | ||
36 | COMPILER=`echo $PLATFORM | cut -f 2- -d-` | ||
37 | fi | ||
38 | +case $COMPILER in | ||
39 | + *oe-g++) COMPILER="g++" ;; | ||
40 | +esac | ||
41 | if [ "$CFG_EXCEPTIONS" = "unspecified" -a "$PLATFORM_QWS" = "yes" ]; then | ||
42 | CFG_EXCEPTIONS=no | ||
43 | fi | ||
44 | -- | ||
45 | 1.7.12 | ||
46 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0018-configure-make-pulseaudio-a-configurable-option.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0018-configure-make-pulseaudio-a-configurable-option.patch new file mode 100644 index 0000000000..f3c17a583b --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0018-configure-make-pulseaudio-a-configurable-option.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 5da434f2a61ca819ff9a9b0a84de8c2307f9d41b Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Tue, 28 Feb 2012 15:10:24 +0000 | ||
4 | Subject: [PATCH 18/20] configure: make pulseaudio a configurable option | ||
5 | |||
6 | Allows disabling pulseaudio support within phonon at configure time. | ||
7 | (This is the Qt 4.8.0 version.) | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
13 | --- | ||
14 | configure | 9 ++++++++- | ||
15 | 1 file changed, 8 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/configure b/configure | ||
18 | index 6989962..58fcedd 100755 | ||
19 | --- a/configure | ||
20 | +++ b/configure | ||
21 | @@ -1127,7 +1127,7 @@ while [ "$#" -gt 0 ]; do | ||
22 | VAL=no | ||
23 | ;; | ||
24 | #Qt style yes options | ||
25 | - -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-carbon|-universal|-harfbuzz|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-declarative-debug|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles|-icu) | ||
26 | + -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-pulseaudio|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-carbon|-universal|-harfbuzz|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-declarative-debug|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles|-icu) | ||
27 | VAR=`echo $1 | sed "s,^-\(.*\),\1,"` | ||
28 | VAL=yes | ||
29 | ;; | ||
30 | @@ -2101,6 +2101,13 @@ while [ "$#" -gt 0 ]; do | ||
31 | UNKNOWN_OPT=yes | ||
32 | fi | ||
33 | ;; | ||
34 | + pulseaudio) | ||
35 | + if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
36 | + CFG_PULSEAUDIO="$VAL" | ||
37 | + else | ||
38 | + UNKNOWN_OPT=yes | ||
39 | + fi | ||
40 | + ;; | ||
41 | gtkstyle) | ||
42 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
43 | CFG_QGTKSTYLE="$VAL" | ||
44 | -- | ||
45 | 1.7.12 | ||
46 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0019-Fixes-for-gcc-4.7.0-particularly-on-qemux86.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0019-Fixes-for-gcc-4.7.0-particularly-on-qemux86.patch new file mode 100644 index 0000000000..9f4adabd4f --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0019-Fixes-for-gcc-4.7.0-particularly-on-qemux86.patch | |||
@@ -0,0 +1,63 @@ | |||
1 | From 915ea240e03f04c6ae788cf369b13afe5d9bfc45 Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Wed, 26 Sep 2012 20:54:38 +0200 | ||
4 | Subject: [PATCH 19/20] Fixes for gcc 4.7.0, particularly on qemux86 | ||
5 | |||
6 | Origin: upstream, http://trac.webkit.org/changeset/93631 | ||
7 | Origin: upstream, http://trac.webkit.org/changeset/113848 | ||
8 | |||
9 | Bug: https://bugs.webkit.org/show_bug.cgi?id=62168 | ||
10 | Bug: https://bugs.webkit.org/show_bug.cgi?id=83584 | ||
11 | |||
12 | RP 2012/04/30 | ||
13 | |||
14 | Upstream-Status: Backport | ||
15 | |||
16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
17 | --- | ||
18 | src/3rdparty/webkit/Source/WebCore/dom/Element.cpp | 2 +- | ||
19 | src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp | 2 +- | ||
20 | .../webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h | 1 + | ||
21 | 3 files changed, 3 insertions(+), 2 deletions(-) | ||
22 | |||
23 | diff --git a/src/3rdparty/webkit/Source/WebCore/dom/Element.cpp b/src/3rdparty/webkit/Source/WebCore/dom/Element.cpp | ||
24 | index 32e47ca..b8e7389 100644 | ||
25 | --- a/src/3rdparty/webkit/Source/WebCore/dom/Element.cpp | ||
26 | +++ b/src/3rdparty/webkit/Source/WebCore/dom/Element.cpp | ||
27 | @@ -1080,7 +1080,7 @@ void Element::recalcStyle(StyleChange change) | ||
28 | { | ||
29 | // Ref currentStyle in case it would otherwise be deleted when setRenderStyle() is called. | ||
30 | RefPtr<RenderStyle> currentStyle(renderStyle()); | ||
31 | - bool hasParentStyle = parentNodeForRenderingAndStyle() ? parentNodeForRenderingAndStyle()->renderStyle() : false; | ||
32 | + bool hasParentStyle = parentNodeForRenderingAndStyle() ? static_cast<bool>(parentNodeForRenderingAndStyle()->renderStyle()) : false; | ||
33 | bool hasDirectAdjacentRules = currentStyle && currentStyle->childrenAffectedByDirectAdjacentRules(); | ||
34 | bool hasIndirectAdjacentRules = currentStyle && currentStyle->childrenAffectedByForwardPositionalRules(); | ||
35 | |||
36 | diff --git a/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp b/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp | ||
37 | index d66075e..ab8f111 100644 | ||
38 | --- a/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp | ||
39 | +++ b/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp | ||
40 | @@ -74,7 +74,7 @@ PassRefPtr<HTMLImageElement> HTMLImageElement::createForJSConstructor(Document* | ||
41 | RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(imgTag, document)); | ||
42 | if (optionalWidth) | ||
43 | image->setWidth(*optionalWidth); | ||
44 | - if (optionalHeight > 0) | ||
45 | + if (optionalHeight) | ||
46 | image->setHeight(*optionalHeight); | ||
47 | return image.release(); | ||
48 | } | ||
49 | diff --git a/src/3rdparty/webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h b/src/3rdparty/webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h | ||
50 | index 6087ec3..6d748f6 100644 | ||
51 | --- a/src/3rdparty/webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h | ||
52 | +++ b/src/3rdparty/webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h | ||
53 | @@ -25,6 +25,7 @@ namespace WebCore { | ||
54 | #if ENABLE(TILED_BACKING_STORE) | ||
55 | class TiledBackingStoreClient { | ||
56 | public: | ||
57 | + virtual ~TiledBackingStoreClient() { } | ||
58 | virtual void tiledBackingStorePaintBegin() = 0; | ||
59 | virtual void tiledBackingStorePaint(GraphicsContext*, const IntRect&) = 0; | ||
60 | virtual void tiledBackingStorePaintEnd(const Vector<IntRect>& paintedArea) = 0; | ||
61 | -- | ||
62 | 1.7.12 | ||
63 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/0020-webkit-disable-the-fuse-ld-gold-flag.patch b/meta/recipes-qt/qt4/qt4-4.8.3/0020-webkit-disable-the-fuse-ld-gold-flag.patch new file mode 100644 index 0000000000..1e07a54290 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/0020-webkit-disable-the-fuse-ld-gold-flag.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From a10ba547001f4a4ba0ae313a4e9c2c0b5bb36a09 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ken Werner <ken.werner@linaro.org> | ||
3 | Date: Wed, 26 Sep 2012 20:55:21 +0200 | ||
4 | Subject: [PATCH 20/20] webkit: disable the -fuse-ld=gold flag | ||
5 | |||
6 | This option is a Debian/Ubuntu specific extension to the g++ and causes upstream GCC to throw an error. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Ken Werner <ken.werner@linaro.org> | ||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | src/3rdparty/webkit/Source/common.pri | 12 ++++++------ | ||
14 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
15 | |||
16 | diff --git a/src/3rdparty/webkit/Source/common.pri b/src/3rdparty/webkit/Source/common.pri | ||
17 | index 0f62e14..d81a1f0 100644 | ||
18 | --- a/src/3rdparty/webkit/Source/common.pri | ||
19 | +++ b/src/3rdparty/webkit/Source/common.pri | ||
20 | @@ -3,12 +3,12 @@ | ||
21 | contains(JAVASCRIPTCORE_JIT,yes): DEFINES+=ENABLE_JIT=1 | ||
22 | contains(JAVASCRIPTCORE_JIT,no): DEFINES+=ENABLE_JIT=0 | ||
23 | |||
24 | -linux-g++ { | ||
25 | -isEmpty($$(SBOX_DPKG_INST_ARCH)):exists(/usr/bin/ld.gold) { | ||
26 | - message(Using gold linker) | ||
27 | - QMAKE_LFLAGS+=-fuse-ld=gold | ||
28 | -} | ||
29 | -} | ||
30 | +#linux-g++ { | ||
31 | +#isEmpty($$(SBOX_DPKG_INST_ARCH)):exists(/usr/bin/ld.gold) { | ||
32 | +# message(Using gold linker) | ||
33 | +# QMAKE_LFLAGS+=-fuse-ld=gold | ||
34 | +#} | ||
35 | +#} | ||
36 | |||
37 | # We use this flag on production branches | ||
38 | # See https://bugs.webkit.org/show_bug.cgi?id=60824 | ||
39 | -- | ||
40 | 1.7.12 | ||
41 | |||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/g++.conf b/meta/recipes-qt/qt4/qt4-4.8.3/g++.conf new file mode 100644 index 0000000000..e58fb15718 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/g++.conf | |||
@@ -0,0 +1,56 @@ | |||
1 | # | ||
2 | # qmake configuration for common gcc | ||
3 | # | ||
4 | |||
5 | QMAKE_CC = $(OE_QMAKE_CC) | ||
6 | QMAKE_CFLAGS += -pipe $(OE_QMAKE_CFLAGS) | ||
7 | QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $(OE_QMAKE_CFLAGS) | ||
8 | QMAKE_CFLAGS_DEPS += -M | ||
9 | QMAKE_CFLAGS_WARN_ON += -Wall -W | ||
10 | QMAKE_CFLAGS_WARN_OFF += -w | ||
11 | QMAKE_CFLAGS_RELEASE += | ||
12 | QMAKE_CFLAGS_DEBUG += -g | ||
13 | QMAKE_CFLAGS_SHLIB += -fPIC | ||
14 | QMAKE_CFLAGS_STATIC_LIB += -fPIC | ||
15 | QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses | ||
16 | QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden | ||
17 | QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} | ||
18 | QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE} | ||
19 | |||
20 | QMAKE_CXX = $(OE_QMAKE_CXX) | ||
21 | QMAKE_CXXFLAGS += $$QMAKE_CFLAGS $(OE_QMAKE_CXXFLAGS) | ||
22 | QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS | ||
23 | QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON | ||
24 | QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF | ||
25 | QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE | ||
26 | QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO | ||
27 | QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG | ||
28 | QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB | ||
29 | QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB | ||
30 | QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC | ||
31 | QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden | ||
32 | QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} | ||
33 | QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE | ||
34 | |||
35 | QMAKE_LINK = $(OE_QMAKE_LINK) | ||
36 | QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK) | ||
37 | QMAKE_LINK_C = $(OE_QMAKE_LINK) | ||
38 | QMAKE_LINK_C_SHLIB = $(OE_QMAKE_LINK) | ||
39 | QMAKE_LFLAGS += $(OE_QMAKE_LDFLAGS) | ||
40 | QMAKE_LFLAGS_RELEASE += | ||
41 | QMAKE_LFLAGS_DEBUG += | ||
42 | QMAKE_LFLAGS_APP += | ||
43 | QMAKE_LFLAGS_NOUNDEF += -Wl,--no-undefined | ||
44 | QMAKE_LFLAGS_RPATH = -Wl,-rpath-link, | ||
45 | |||
46 | QMAKE_PCH_OUTPUT_EXT = .gch | ||
47 | |||
48 | # -Bsymbolic-functions (ld) support | ||
49 | QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions | ||
50 | QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list, | ||
51 | |||
52 | # some linking helper... | ||
53 | CONFIG += rpath_libdirs | ||
54 | |||
55 | # for the SDK | ||
56 | isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG) | ||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/linux.conf b/meta/recipes-qt/qt4/qt4-4.8.3/linux.conf new file mode 100644 index 0000000000..a54135513b --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/linux.conf | |||
@@ -0,0 +1,66 @@ | |||
1 | # | ||
2 | # qmake configuration for common linux | ||
3 | # | ||
4 | |||
5 | QMAKE_CFLAGS_THREAD += -D_REENTRANT | ||
6 | QMAKE_CXXFLAGS_THREAD += $$QMAKE_CFLAGS_THREAD | ||
7 | |||
8 | QMAKE_INCDIR = | ||
9 | QMAKE_LIBDIR = | ||
10 | QMAKE_INCDIR_X11 = | ||
11 | QMAKE_LIBDIR_X11 = | ||
12 | QMAKE_INCDIR_QT = $(OE_QMAKE_INCDIR_QT) | ||
13 | QMAKE_LIBDIR_QT = $(OE_QMAKE_LIBDIR_QT) | ||
14 | QMAKE_INCDIR_OPENGL = | ||
15 | QMAKE_LIBDIR_OPENGL = | ||
16 | QMAKE_INCDIR_OPENGL_ES1 = $$QMAKE_INCDIR_OPENGL | ||
17 | QMAKE_LIBDIR_OPENGL_ES1 = $$QMAKE_LIBDIR_OPENGL | ||
18 | QMAKE_INCDIR_OPENGL_ES2 = $$QMAKE_INCDIR_OPENGL | ||
19 | QMAKE_LIBDIR_OPENGL_ES2 = $$QMAKE_LIBDIR_OPENGL | ||
20 | QMAKE_INCDIR_EGL = | ||
21 | QMAKE_LIBDIR_EGL = | ||
22 | QMAKE_INCDIR_OPENVG = | ||
23 | QMAKE_LIBDIR_OPENVG = | ||
24 | |||
25 | |||
26 | QMAKE_LIBS = | ||
27 | QMAKE_LIBS_DYNLOAD = -ldl | ||
28 | QMAKE_LIBS_X11 = $(OE_QMAKE_LIBS_X11) | ||
29 | QMAKE_LIBS_X11SM = $(OE_QMAKE_LIBS_X11SM) | ||
30 | QMAKE_LIBS_NIS = -lnsl | ||
31 | QMAKE_LIBS_EGL = -lEGL | ||
32 | QMAKE_LIBS_OPENGL = -lGLU -lGL | ||
33 | QMAKE_LIBS_OPENGL_QT = -lGL | ||
34 | QMAKE_LIBS_OPENGL_ES1 = -lGLES_CM | ||
35 | QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 | ||
36 | QMAKE_LIBS_OPENVG = -lOpenVG | ||
37 | QMAKE_LIBS_THREAD = -lpthread | ||
38 | |||
39 | QMAKE_MOC = $(OE_QMAKE_MOC) | ||
40 | QMAKE_UIC = $(OE_QMAKE_UIC) | ||
41 | QMAKE_UIC3 = $(OE_QMAKE_UIC3) | ||
42 | QMAKE_RCC = $(OE_QMAKE_RCC) | ||
43 | QMAKE_QDBUSCPP2XML = $(OE_QMAKE_QDBUSCPP2XML) | ||
44 | QMAKE_QDBUSXML2CPP = $(OE_QMAKE_QDBUSXML2CPP) | ||
45 | |||
46 | QMAKE_AR = $(OE_QMAKE_AR) cqs | ||
47 | QMAKE_OBJCOPY = objcopy | ||
48 | QMAKE_RANLIB = | ||
49 | |||
50 | QMAKE_TAR = tar -cf | ||
51 | QMAKE_GZIP = gzip -9f | ||
52 | |||
53 | QMAKE_COPY = cp -f | ||
54 | QMAKE_COPY_FILE = $(COPY) | ||
55 | QMAKE_COPY_DIR = $(COPY) -r | ||
56 | QMAKE_MOVE = mv -f | ||
57 | QMAKE_DEL_FILE = rm -f | ||
58 | QMAKE_DEL_DIR = rmdir | ||
59 | QMAKE_STRIP = $(OE_QMAKE_STRIP) | ||
60 | QMAKE_STRIPFLAGS_LIB += --strip-unneeded | ||
61 | QMAKE_CHK_DIR_EXISTS = test -d | ||
62 | QMAKE_MKDIR = mkdir -p | ||
63 | QMAKE_INSTALL_FILE = install -m 644 -p | ||
64 | QMAKE_INSTALL_PROGRAM = install -m 755 -p | ||
65 | |||
66 | include(unix.conf) | ||
diff --git a/meta/recipes-qt/qt4/qt4-4.8.3/qte.sh b/meta/recipes-qt/qt4/qt4-4.8.3/qte.sh new file mode 100644 index 0000000000..21d6ecbd6a --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-4.8.3/qte.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -e /dev/input/touchscreen0 ] | ||
4 | then | ||
5 | QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0 | ||
6 | export QWS_MOUSE_PROTO | ||
7 | fi | ||
diff --git a/meta/recipes-qt/qt4/qt4-embedded_4.8.3.bb b/meta/recipes-qt/qt4/qt4-embedded_4.8.3.bb new file mode 100644 index 0000000000..187de7394f --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-embedded_4.8.3.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require qt4-${PV}.inc | ||
2 | require qt4-embedded.inc | ||
3 | |||
4 | PR = "${INC_PR}.0" | ||
5 | |||
6 | QT_CONFIG_FLAGS_append_armv6 = " -no-neon " | ||
7 | |||
8 | QT_CONFIG_FLAGS += " \ | ||
9 | -exceptions \ | ||
10 | " | ||
11 | |||
diff --git a/meta/recipes-qt/qt4/qt4-native_4.8.3.bb b/meta/recipes-qt/qt4/qt4-native_4.8.3.bb new file mode 100644 index 0000000000..0f93187e17 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-native_4.8.3.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require qt4-native.inc | ||
2 | |||
3 | DEFAULT_PREFERENCE = "-1" | ||
4 | |||
5 | PR = "${INC_PR}.0" | ||
6 | |||
7 | TOBUILD := "src/tools/bootstrap ${TOBUILD}" | ||
8 | |||
9 | SRC_URI[md5sum] = "a663b6c875f8d7caa8ac9c30e4a4ec3b" | ||
10 | SRC_URI[sha256sum] = "f1f72974f924861be04019f49f07cd43ab3c95056db2ba8f34b283487cccc728" | ||
diff --git a/meta/recipes-qt/qt4/qt4-x11-free_4.8.3.bb b/meta/recipes-qt/qt4/qt4-x11-free_4.8.3.bb new file mode 100644 index 0000000000..bedd201350 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-x11-free_4.8.3.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require qt4-x11-free.inc | ||
2 | require qt4-${PV}.inc | ||
3 | |||
4 | PR = "${INC_PR}.0" | ||
5 | |||
6 | QT_CONFIG_FLAGS_append_armv6 = " -no-neon " | ||
7 | |||
8 | QT_CONFIG_FLAGS += " \ | ||
9 | -no-embedded \ | ||
10 | -xrandr \ | ||
11 | -x11" | ||