diff options
-rw-r--r-- | classes/qmake5_base.bbclass | 2 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch | 21 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch | 15 |
3 files changed, 16 insertions, 22 deletions
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass index b3a4826a..48da05e8 100644 --- a/classes/qmake5_base.bbclass +++ b/classes/qmake5_base.bbclass | |||
@@ -20,7 +20,6 @@ SSTATE_SCAN_FILES += "*.pri *.prl *.prf" | |||
20 | # then OE_QMAKE_CFLAGS are exported and used correctly, but then whole CFLAGS is overwritten from env (and -fPIC lost and build fails) | 20 | # then OE_QMAKE_CFLAGS are exported and used correctly, but then whole CFLAGS is overwritten from env (and -fPIC lost and build fails) |
21 | EXTRA_OEMAKE = " \ | 21 | EXTRA_OEMAKE = " \ |
22 | MAKEFLAGS='${PARALLEL_MAKE}' \ | 22 | MAKEFLAGS='${PARALLEL_MAKE}' \ |
23 | OE_QMAKE_COMPILER='${OE_QMAKE_COMPILER}' \ | ||
24 | OE_QMAKE_CC='${OE_QMAKE_CC}' \ | 23 | OE_QMAKE_CC='${OE_QMAKE_CC}' \ |
25 | OE_QMAKE_CXX='${OE_QMAKE_CXX}' \ | 24 | OE_QMAKE_CXX='${OE_QMAKE_CXX}' \ |
26 | OE_QMAKE_CFLAGS='${OE_QMAKE_CFLAGS}' \ | 25 | OE_QMAKE_CFLAGS='${OE_QMAKE_CFLAGS}' \ |
@@ -33,7 +32,6 @@ EXTRA_OEMAKE = " \ | |||
33 | " | 32 | " |
34 | 33 | ||
35 | OE_QMAKE_QMAKE = "${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake" | 34 | OE_QMAKE_QMAKE = "${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake" |
36 | export OE_QMAKE_COMPILER = "${CC}" | ||
37 | export OE_QMAKE_CC = "${CC}" | 35 | export OE_QMAKE_CC = "${CC}" |
38 | export OE_QMAKE_CFLAGS = "${CFLAGS}" | 36 | export OE_QMAKE_CFLAGS = "${CFLAGS}" |
39 | export OE_QMAKE_CXX = "${CXX}" | 37 | export OE_QMAKE_CXX = "${CXX}" |
diff --git a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch index 0a3cbf92..3f35e7dd 100644 --- a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch +++ b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 3701cce26ce6f90e4b5e4c71c73d333d43b5ac08 Mon Sep 17 00:00:00 2001 | 1 | From 5a9a1e8da67d2bf1672982f087995c8e0e8b3577 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Mon, 15 Apr 2013 04:29:32 +0200 | 3 | Date: Mon, 15 Apr 2013 04:29:32 +0200 |
4 | Subject: [PATCH] Add linux-oe-g++ platform | 4 | Subject: [PATCH] Add linux-oe-g++ platform |
@@ -24,14 +24,14 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | |||
24 | mkspecs/features/configure.prf | 4 +-- | 24 | mkspecs/features/configure.prf | 4 +-- |
25 | mkspecs/features/qt.prf | 6 ++--- | 25 | mkspecs/features/qt.prf | 6 ++--- |
26 | mkspecs/features/qt_functions.prf | 2 +- | 26 | mkspecs/features/qt_functions.prf | 2 +- |
27 | mkspecs/linux-oe-g++/qmake.conf | 40 ++++++++++++++++++++++++++++ | 27 | mkspecs/linux-oe-g++/qmake.conf | 39 ++++++++++++++++++++++++++++ |
28 | mkspecs/linux-oe-g++/qplatformdefs.h | 1 + | 28 | mkspecs/linux-oe-g++/qplatformdefs.h | 1 + |
29 | 6 files changed, 48 insertions(+), 7 deletions(-) | 29 | 6 files changed, 47 insertions(+), 7 deletions(-) |
30 | create mode 100644 mkspecs/linux-oe-g++/qmake.conf | 30 | create mode 100644 mkspecs/linux-oe-g++/qmake.conf |
31 | create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h | 31 | create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h |
32 | 32 | ||
33 | diff --git a/configure b/configure | 33 | diff --git a/configure b/configure |
34 | index ef7bad1bfc..dcca0f9135 100755 | 34 | index ef7bad1bfce..dcca0f91359 100755 |
35 | --- a/configure | 35 | --- a/configure |
36 | +++ b/configure | 36 | +++ b/configure |
37 | @@ -712,7 +712,7 @@ fi | 37 | @@ -712,7 +712,7 @@ fi |
@@ -44,7 +44,7 @@ index ef7bad1bfc..dcca0f9135 100755 | |||
44 | 44 | ||
45 | # build qmake | 45 | # build qmake |
46 | diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf | 46 | diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf |
47 | index 934a18a924..0f5b1b6333 100644 | 47 | index 934a18a9249..0f5b1b63334 100644 |
48 | --- a/mkspecs/features/configure.prf | 48 | --- a/mkspecs/features/configure.prf |
49 | +++ b/mkspecs/features/configure.prf | 49 | +++ b/mkspecs/features/configure.prf |
50 | @@ -46,14 +46,14 @@ defineTest(qtCompileTest) { | 50 | @@ -46,14 +46,14 @@ defineTest(qtCompileTest) { |
@@ -65,7 +65,7 @@ index 934a18a924..0f5b1b6333 100644 | |||
65 | msg = "test $$1 succeeded" | 65 | msg = "test $$1 succeeded" |
66 | write_file($$QMAKE_CONFIG_LOG, msg, append) | 66 | write_file($$QMAKE_CONFIG_LOG, msg, append) |
67 | diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf | 67 | diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf |
68 | index d16b3cf1be..df219ce34c 100644 | 68 | index 90e318e2a48..3e8568ed675 100644 |
69 | --- a/mkspecs/features/qt.prf | 69 | --- a/mkspecs/features/qt.prf |
70 | +++ b/mkspecs/features/qt.prf | 70 | +++ b/mkspecs/features/qt.prf |
71 | @@ -147,7 +147,7 @@ import_plugins:qtConfig(static) { | 71 | @@ -147,7 +147,7 @@ import_plugins:qtConfig(static) { |
@@ -89,7 +89,7 @@ index d16b3cf1be..df219ce34c 100644 | |||
89 | # run qmlimportscanner | 89 | # run qmlimportscanner |
90 | qtPrepareTool(QMLIMPORTSCANNER, qmlimportscanner, , system) | 90 | qtPrepareTool(QMLIMPORTSCANNER, qmlimportscanner, , system) |
91 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf | 91 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf |
92 | index 1903e509c8..c093dd4592 100644 | 92 | index 1903e509c8e..c093dd4592d 100644 |
93 | --- a/mkspecs/features/qt_functions.prf | 93 | --- a/mkspecs/features/qt_functions.prf |
94 | +++ b/mkspecs/features/qt_functions.prf | 94 | +++ b/mkspecs/features/qt_functions.prf |
95 | @@ -69,7 +69,7 @@ defineTest(qtHaveModule) { | 95 | @@ -69,7 +69,7 @@ defineTest(qtHaveModule) { |
@@ -103,10 +103,10 @@ index 1903e509c8..c093dd4592 100644 | |||
103 | cmd = perl -w $$system_path($${cmd}.pl) | 103 | cmd = perl -w $$system_path($${cmd}.pl) |
104 | diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf | 104 | diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf |
105 | new file mode 100644 | 105 | new file mode 100644 |
106 | index 0000000000..f34a66599a | 106 | index 00000000000..c202c47fa15 |
107 | --- /dev/null | 107 | --- /dev/null |
108 | +++ b/mkspecs/linux-oe-g++/qmake.conf | 108 | +++ b/mkspecs/linux-oe-g++/qmake.conf |
109 | @@ -0,0 +1,40 @@ | 109 | @@ -0,0 +1,39 @@ |
110 | +# | 110 | +# |
111 | +# qmake configuration for linux-g++ with modifications for building with OpenEmbedded | 111 | +# qmake configuration for linux-g++ with modifications for building with OpenEmbedded |
112 | +# | 112 | +# |
@@ -131,7 +131,6 @@ index 0000000000..f34a66599a | |||
131 | +include(../common/g++-unix.conf) | 131 | +include(../common/g++-unix.conf) |
132 | + | 132 | + |
133 | +# tc settings from g++-base.conf | 133 | +# tc settings from g++-base.conf |
134 | +QMAKE_COMPILER = $$(OE_QMAKE_COMPILER) gcc | ||
135 | +QMAKE_CC = $$(OE_QMAKE_CC) | 134 | +QMAKE_CC = $$(OE_QMAKE_CC) |
136 | +QMAKE_CXX = $$(OE_QMAKE_CXX) | 135 | +QMAKE_CXX = $$(OE_QMAKE_CXX) |
137 | + | 136 | + |
@@ -149,7 +148,7 @@ index 0000000000..f34a66599a | |||
149 | +load(qt_config) | 148 | +load(qt_config) |
150 | diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h | 149 | diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h |
151 | new file mode 100644 | 150 | new file mode 100644 |
152 | index 0000000000..5d22fb4101 | 151 | index 00000000000..5d22fb41013 |
153 | --- /dev/null | 152 | --- /dev/null |
154 | +++ b/mkspecs/linux-oe-g++/qplatformdefs.h | 153 | +++ b/mkspecs/linux-oe-g++/qplatformdefs.h |
155 | @@ -0,0 +1 @@ | 154 | @@ -0,0 +1 @@ |
diff --git a/recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch b/recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch index 664767dd..5a9eb404 100644 --- a/recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch +++ b/recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch | |||
@@ -1,22 +1,22 @@ | |||
1 | From 12d00d903a16dba6f7aad0f4652addbd395765fe Mon Sep 17 00:00:00 2001 | 1 | From 289f366363eeca03c27fd718c8b3ae53dcc28586 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 3 Sep 2017 09:11:44 -0700 | 3 | Date: Sun, 3 Sep 2017 09:11:44 -0700 |
4 | Subject: [PATCH] Add OE specific specs for clang compiler | 4 | Subject: [PATCH] Add OE specific specs for clang compiler |
5 | 5 | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
7 | --- | 7 | --- |
8 | mkspecs/linux-oe-clang/qmake.conf | 42 ++++++++++++++++++++++++++ | 8 | mkspecs/linux-oe-clang/qmake.conf | 39 ++++++++++++++++++++++++++ |
9 | mkspecs/linux-oe-clang/qplatformdefs.h | 1 + | 9 | mkspecs/linux-oe-clang/qplatformdefs.h | 1 + |
10 | 2 files changed, 43 insertions(+) | 10 | 2 files changed, 40 insertions(+) |
11 | create mode 100644 mkspecs/linux-oe-clang/qmake.conf | 11 | create mode 100644 mkspecs/linux-oe-clang/qmake.conf |
12 | create mode 100644 mkspecs/linux-oe-clang/qplatformdefs.h | 12 | create mode 100644 mkspecs/linux-oe-clang/qplatformdefs.h |
13 | 13 | ||
14 | diff --git a/mkspecs/linux-oe-clang/qmake.conf b/mkspecs/linux-oe-clang/qmake.conf | 14 | diff --git a/mkspecs/linux-oe-clang/qmake.conf b/mkspecs/linux-oe-clang/qmake.conf |
15 | new file mode 100644 | 15 | new file mode 100644 |
16 | index 0000000000..443d4b0dff | 16 | index 00000000000..db02ab5215f |
17 | --- /dev/null | 17 | --- /dev/null |
18 | +++ b/mkspecs/linux-oe-clang/qmake.conf | 18 | +++ b/mkspecs/linux-oe-clang/qmake.conf |
19 | @@ -0,0 +1,42 @@ | 19 | @@ -0,0 +1,39 @@ |
20 | +# | 20 | +# |
21 | +# qmake configuration for linux-g++ with modifications for building with OpenEmbedded | 21 | +# qmake configuration for linux-g++ with modifications for building with OpenEmbedded |
22 | +# | 22 | +# |
@@ -41,12 +41,9 @@ index 0000000000..443d4b0dff | |||
41 | +include(../common/clang.conf) | 41 | +include(../common/clang.conf) |
42 | + | 42 | + |
43 | +# tc settings from g++-base.conf | 43 | +# tc settings from g++-base.conf |
44 | +QMAKE_COMPILER = $$(OE_QMAKE_COMPILER) clang | ||
45 | +QMAKE_CC = $$(OE_QMAKE_CC) | 44 | +QMAKE_CC = $$(OE_QMAKE_CC) |
46 | +QMAKE_CXX = $$(OE_QMAKE_CXX) | 45 | +QMAKE_CXX = $$(OE_QMAKE_CXX) |
47 | + | 46 | + |
48 | +QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$(OE_QMAKE_CFLAGS) | ||
49 | + | ||
50 | +QMAKE_LINK = $$(OE_QMAKE_LINK) | 47 | +QMAKE_LINK = $$(OE_QMAKE_LINK) |
51 | +QMAKE_LINK_SHLIB = $$(OE_QMAKE_LINK) | 48 | +QMAKE_LINK_SHLIB = $$(OE_QMAKE_LINK) |
52 | +QMAKE_LINK_C = $$(OE_QMAKE_LINK) | 49 | +QMAKE_LINK_C = $$(OE_QMAKE_LINK) |
@@ -61,7 +58,7 @@ index 0000000000..443d4b0dff | |||
61 | +load(qt_config) | 58 | +load(qt_config) |
62 | diff --git a/mkspecs/linux-oe-clang/qplatformdefs.h b/mkspecs/linux-oe-clang/qplatformdefs.h | 59 | diff --git a/mkspecs/linux-oe-clang/qplatformdefs.h b/mkspecs/linux-oe-clang/qplatformdefs.h |
63 | new file mode 100644 | 60 | new file mode 100644 |
64 | index 0000000000..880c927b21 | 61 | index 00000000000..880c927b218 |
65 | --- /dev/null | 62 | --- /dev/null |
66 | +++ b/mkspecs/linux-oe-clang/qplatformdefs.h | 63 | +++ b/mkspecs/linux-oe-clang/qplatformdefs.h |
67 | @@ -0,0 +1 @@ | 64 | @@ -0,0 +1 @@ |