summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-10-16 15:44:05 +1100
committerMartin Jansa <Martin.Jansa@gmail.com>2014-10-30 14:15:41 +0100
commit264f20883cae2c5e5222538b3f76e2145e72b1ab (patch)
tree6cfe17e35b1ad27aa344a81df1eaa82aedf13236
parent01f1ab8ee8ca31b39d097a913f9f6f8de89f5fb5 (diff)
downloadmeta-qt5-264f20883cae2c5e5222538b3f76e2145e72b1ab.tar.gz
qtwebengine: backport patches to fix ARM build failures
Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--recipes-qt/qt5/qtwebengine/0001-Use-ninja-supplied-by-environment-variable-NINJA_PAT.patch4
-rw-r--r--recipes-qt/qt5/qtwebengine/0002-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch4
-rw-r--r--recipes-qt/qt5/qtwebengine/0003-functions.prf-Try-to-add-_moc-suffix.patch4
-rw-r--r--recipes-qt/qt5/qtwebengine/0004-Set-arm_tune-to-empty-string-if-mtune-flag-is-not-se.patch34
-rw-r--r--recipes-qt/qt5/qtwebengine/0005-Fix-ARM-NEON-detection-for-mfpu-neon-vfpv4.patch30
-rw-r--r--recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch34
-rw-r--r--recipes-qt/qt5/qtwebengine_5.3.2+git.bb3
7 files changed, 107 insertions, 6 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0001-Use-ninja-supplied-by-environment-variable-NINJA_PAT.patch b/recipes-qt/qt5/qtwebengine/0001-Use-ninja-supplied-by-environment-variable-NINJA_PAT.patch
index bd4e8679..915d3e82 100644
--- a/recipes-qt/qt5/qtwebengine/0001-Use-ninja-supplied-by-environment-variable-NINJA_PAT.patch
+++ b/recipes-qt/qt5/qtwebengine/0001-Use-ninja-supplied-by-environment-variable-NINJA_PAT.patch
@@ -1,7 +1,7 @@
1From c2defbfe5946a6c483e3f9df37fb16bdffeffc31 Mon Sep 17 00:00:00 2001 1From a6802bc4528205a9d3839a1f22d4fca32154f5f0 Mon Sep 17 00:00:00 2001
2From: Simon Busch <morphis@gravedo.de> 2From: Simon Busch <morphis@gravedo.de>
3Date: Fri, 20 Jun 2014 09:09:12 +0200 3Date: Fri, 20 Jun 2014 09:09:12 +0200
4Subject: [PATCH 1/3] Use ninja supplied by environment variable NINJA_PATH 4Subject: [PATCH 1/6] Use ninja supplied by environment variable NINJA_PATH
5 5
6Signed-off-by: Simon Busch <morphis@gravedo.de> 6Signed-off-by: Simon Busch <morphis@gravedo.de>
7--- 7---
diff --git a/recipes-qt/qt5/qtwebengine/0002-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch b/recipes-qt/qt5/qtwebengine/0002-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch
index b5fc71dd..d0437147 100644
--- a/recipes-qt/qt5/qtwebengine/0002-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch
+++ b/recipes-qt/qt5/qtwebengine/0002-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch
@@ -1,7 +1,7 @@
1From 32f3b53d0b5861ac3e277552b04a579d8bd16558 Mon Sep 17 00:00:00 2001 1From 7266e333c6568fec1e2ebbf0c2d68c4025397b2d Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 30 Jun 2014 20:08:17 +0200 3Date: Mon, 30 Jun 2014 20:08:17 +0200
4Subject: [PATCH 2/3] functions.prf: Don't match QMAKE_EXT_CPP or QMAKE_EXT_H 4Subject: [PATCH 2/6] functions.prf: Don't match QMAKE_EXT_CPP or QMAKE_EXT_H
5 anywhere in patch, but at the end 5 anywhere in patch, but at the end
6 6
7Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 7Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
diff --git a/recipes-qt/qt5/qtwebengine/0003-functions.prf-Try-to-add-_moc-suffix.patch b/recipes-qt/qt5/qtwebengine/0003-functions.prf-Try-to-add-_moc-suffix.patch
index 173f7f73..2e2c177e 100644
--- a/recipes-qt/qt5/qtwebengine/0003-functions.prf-Try-to-add-_moc-suffix.patch
+++ b/recipes-qt/qt5/qtwebengine/0003-functions.prf-Try-to-add-_moc-suffix.patch
@@ -1,7 +1,7 @@
1From b0e844967728edf814d611bb1c69d320a8a6c64d Mon Sep 17 00:00:00 2001 1From 8e540a678a796d78ff9a98986d747afbca7f63be Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Tue, 1 Jul 2014 15:58:16 +0200 3Date: Tue, 1 Jul 2014 15:58:16 +0200
4Subject: [PATCH 3/3] functions.prf: Try to add _moc suffix 4Subject: [PATCH 3/6] functions.prf: Try to add _moc suffix
5 5
6* otherwise moc generated files have the same basename and do_configure fails with: 6* otherwise moc generated files have the same basename and do_configure fails with:
7 core_generated.gyp:QtWebEngineCore#target has several files with the same basename: 7 core_generated.gyp:QtWebEngineCore#target has several files with the same basename:
diff --git a/recipes-qt/qt5/qtwebengine/0004-Set-arm_tune-to-empty-string-if-mtune-flag-is-not-se.patch b/recipes-qt/qt5/qtwebengine/0004-Set-arm_tune-to-empty-string-if-mtune-flag-is-not-se.patch
new file mode 100644
index 00000000..a3842ecd
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0004-Set-arm_tune-to-empty-string-if-mtune-flag-is-not-se.patch
@@ -0,0 +1,34 @@
1From c99aed6ef28c4ac9c00024a40222331c0e682d28 Mon Sep 17 00:00:00 2001
2From: Andras Becsi <andras.becsi@digia.com>
3Date: Thu, 18 Sep 2014 18:22:37 +0200
4Subject: [PATCH 4/6] Set arm_tune to empty string if mtune flag is not set by
5 toolchain
6
7Since the default arm_tune option applied by chromium is not
8recognized by our gcc toolchain set arm_tune to empty string
9to prevent chromium from setting a default. Our toolchains
10set the arm version which already implies the corresponding
11mtune option anyway.
12
13Change-Id: I0291bd4f0e5706597d37f914e4eeefbd75397bbf
14Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
15---
16 src/core/gyp_run.pro | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/core/gyp_run.pro b/src/core/gyp_run.pro
20index ed592e1..4845af2 100644
21--- a/src/core/gyp_run.pro
22+++ b/src/core/gyp_run.pro
23@@ -47,7 +47,7 @@ cross_compile {
24 !isEmpty(MARCH): GYP_ARGS += "-D arm_arch=\"$$MARCH\""
25
26 MTUNE = $$extractCFlag("-mtune=.*")
27- !isEmpty(MTUNE): GYP_ARGS += "-D arm_tune=\"$$MTUNE\""
28+ GYP_ARGS += "-D arm_tune=\"$$MTUNE\""
29
30 MFLOAT = $$extractCFlag("-mfloat-abi=.*")
31 !isEmpty(MFLOAT): GYP_ARGS += "-D arm_float_abi=\"$$MFLOAT\""
32--
332.1.1
34
diff --git a/recipes-qt/qt5/qtwebengine/0005-Fix-ARM-NEON-detection-for-mfpu-neon-vfpv4.patch b/recipes-qt/qt5/qtwebengine/0005-Fix-ARM-NEON-detection-for-mfpu-neon-vfpv4.patch
new file mode 100644
index 00000000..943f6715
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0005-Fix-ARM-NEON-detection-for-mfpu-neon-vfpv4.patch
@@ -0,0 +1,30 @@
1From 1331c66c937f1c3e10e193932db2037dc38434e9 Mon Sep 17 00:00:00 2001
2From: Jonathan Liu <net147@gmail.com>
3Date: Wed, 15 Oct 2014 17:02:16 +1100
4Subject: [PATCH 5/6] Fix ARM NEON detection for -mfpu=neon-vfpv4
5
6Upstream-Status: Backport
7
8Change-Id: I972d3560d6aa2640a2702f219cf802d2476b1c6e
9Reviewed-by: Andras Becsi <andras.becsi@digia.com>
10Signed-off-by: Jonathan Liu <net147@gmail.com>
11---
12 src/core/gyp_run.pro | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/core/gyp_run.pro b/src/core/gyp_run.pro
16index 4845af2..66e97f4 100644
17--- a/src/core/gyp_run.pro
18+++ b/src/core/gyp_run.pro
19@@ -64,7 +64,7 @@ cross_compile {
20 # If the toolchain does not explicitly specify to use NEON instructions
21 # we use arm_neon_optional for ARMv7 and newer and let chromium decide
22 # about the mfpu option.
23- contains(MFPU, "neon"): GYP_ARGS += "-D arm_fpu=\"$$MFPU\" -D arm_neon=1"
24+ contains(MFPU, "neon")|contains(MFPU, "neon-vfpv4"): GYP_ARGS += "-D arm_fpu=\"$$MFPU\" -D arm_neon=1"
25 else:!lessThan(MARMV, 7): GYP_ARGS += "-D arm_neon=0 -D arm_neon_optional=1"
26 else: GYP_ARGS += "-D arm_fpu=\"$$MFPU\" -D arm_neon=0 -D arm_neon_optional=0"
27 }
28--
292.1.1
30
diff --git a/recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch b/recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch
new file mode 100644
index 00000000..920dd91b
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch
@@ -0,0 +1,34 @@
1From d242c15eb961fbdee69c0a0989cd100d174a25db Mon Sep 17 00:00:00 2001
2From: Jonathan Liu <net147@gmail.com>
3Date: Wed, 15 Oct 2014 17:01:06 +1100
4Subject: [PATCH 6/6] Include QMAKE_CC when extracting C compiler flags
5
6This fixes cross-compile settings detection for cross-compilation
7environments where the C compiler cross-compilation flags are set in
8CC/QMAKE_CC instead of CFLAGS/QMAKE_CFLAGS (e.g. OpenEmbedded).
9
10Upstream-Status: Backport
11
12Change-Id: I0a7b0f6c47a00775ec18073a16359c8351363285
13Reviewed-by: Andras Becsi <andras.becsi@digia.com>
14Signed-off-by: Jonathan Liu <net147@gmail.com>
15---
16 tools/qmake/mkspecs/features/functions.prf | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf
20index 78b1190..37dd615 100644
21--- a/tools/qmake/mkspecs/features/functions.prf
22+++ b/tools/qmake/mkspecs/features/functions.prf
23@@ -14,7 +14,7 @@ defineReplace(getConfigDir) {
24 }
25
26 defineReplace(extractCFlag) {
27- CFLAGS = $$QMAKE_CFLAGS
28+ CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS
29 !isEmpty(ANDROID_TARGET_CFLAGS): CFLAGS = $$ANDROID_TARGET_CFLAGS
30 OPTION = $$find(CFLAGS, $$1)
31 OPTION = $$split(OPTION, =)
32--
332.1.1
34
diff --git a/recipes-qt/qt5/qtwebengine_5.3.2+git.bb b/recipes-qt/qt5/qtwebengine_5.3.2+git.bb
index 9c65d7ad..99150e01 100644
--- a/recipes-qt/qt5/qtwebengine_5.3.2+git.bb
+++ b/recipes-qt/qt5/qtwebengine_5.3.2+git.bb
@@ -14,6 +14,9 @@ SRC_URI += " \
14 file://0001-Use-ninja-supplied-by-environment-variable-NINJA_PAT.patch \ 14 file://0001-Use-ninja-supplied-by-environment-variable-NINJA_PAT.patch \
15 file://0002-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch \ 15 file://0002-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch \
16 file://0003-functions.prf-Try-to-add-_moc-suffix.patch \ 16 file://0003-functions.prf-Try-to-add-_moc-suffix.patch \
17 file://0004-Set-arm_tune-to-empty-string-if-mtune-flag-is-not-se.patch \
18 file://0005-Fix-ARM-NEON-detection-for-mfpu-neon-vfpv4.patch \
19 file://0006-Include-QMAKE_CC-when-extracting-C-compiler-flags.patch \
17 file://0001-chromium-Drop-build-time-only-dependency-on-x11-libr.patch \ 20 file://0001-chromium-Drop-build-time-only-dependency-on-x11-libr.patch \
18 file://0002-chromium-Strip-unwanted-echo-compiling-prefix-from-C.patch \ 21 file://0002-chromium-Strip-unwanted-echo-compiling-prefix-from-C.patch \
19 file://0003-chromium-base.gypi-include-atomicops_internals_x86_gcc.cc-whe.patch \ 22 file://0003-chromium-base.gypi-include-atomicops_internals_x86_gcc.cc-whe.patch \