summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/qmake5_base.bbclass2
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase_git.bb1
-rw-r--r--recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch27
-rw-r--r--recipes-qt/qt5/qtbase_git.bb1
4 files changed, 18 insertions, 13 deletions
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass
index 3f1bba23..6266c55c 100644
--- a/classes/qmake5_base.bbclass
+++ b/classes/qmake5_base.bbclass
@@ -27,6 +27,7 @@ EXTRA_OEMAKE = " \
27 OE_QMAKE_LINK='${OE_QMAKE_LINK}' \ 27 OE_QMAKE_LINK='${OE_QMAKE_LINK}' \
28 OE_QMAKE_LDFLAGS='${OE_QMAKE_LDFLAGS}' \ 28 OE_QMAKE_LDFLAGS='${OE_QMAKE_LDFLAGS}' \
29 OE_QMAKE_AR='${OE_QMAKE_AR}' \ 29 OE_QMAKE_AR='${OE_QMAKE_AR}' \
30 OE_QMAKE_OBJCOPY='${OE_QMAKE_OBJCOPY}' \
30 OE_QMAKE_STRIP='${OE_QMAKE_STRIP}' \ 31 OE_QMAKE_STRIP='${OE_QMAKE_STRIP}' \
31 OE_QMAKE_INCDIR_QT='${STAGING_DIR_TARGET}/${OE_QMAKE_PATH_HEADERS}' \ 32 OE_QMAKE_INCDIR_QT='${STAGING_DIR_TARGET}/${OE_QMAKE_PATH_HEADERS}' \
32" 33"
@@ -39,6 +40,7 @@ export OE_QMAKE_CXXFLAGS = "${CXXFLAGS}"
39export OE_QMAKE_LINK = "${CXX}" 40export OE_QMAKE_LINK = "${CXX}"
40export OE_QMAKE_LDFLAGS = "${LDFLAGS}" 41export OE_QMAKE_LDFLAGS = "${LDFLAGS}"
41export OE_QMAKE_AR = "${AR}" 42export OE_QMAKE_AR = "${AR}"
43export OE_QMAKE_OBJCOPY = "${OBJCOPY}"
42export OE_QMAKE_STRIP = "echo" 44export OE_QMAKE_STRIP = "echo"
43 45
44# qmake reads if from shell environment 46# qmake reads if from shell environment
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index 06d237d0..b769c9fa 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -176,6 +176,7 @@ fakeroot do_generate_qt_environment_file() {
176 echo 'export OE_QMAKE_CXX="$CXX"' >> $script 176 echo 'export OE_QMAKE_CXX="$CXX"' >> $script
177 echo 'export OE_QMAKE_LINK="$CXX"' >> $script 177 echo 'export OE_QMAKE_LINK="$CXX"' >> $script
178 echo 'export OE_QMAKE_AR=$AR' >> $script 178 echo 'export OE_QMAKE_AR=$AR' >> $script
179 echo 'export OE_QMAKE_OBJCOPY=$OBJCOPY' >> $script
179 echo 'export OE_QMAKE_STRIP=$STRIP' >> $script 180 echo 'export OE_QMAKE_STRIP=$STRIP' >> $script
180 echo 'export QT_CONF_PATH=${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script 181 echo 'export QT_CONF_PATH=${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script
181 echo 'export OE_QMAKE_LIBDIR_QT=`qmake -query QT_INSTALL_LIBS`' >> $script 182 echo 'export OE_QMAKE_LIBDIR_QT=`qmake -query QT_INSTALL_LIBS`' >> $script
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 37e0a6a9..ccc29043 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 @@
1From c97da220d95091386724e1eadc360ed16ed52dfe Mon Sep 17 00:00:00 2001 1From f7b84519234ff0cecb6495d31f377910dce34b62 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 15 Apr 2013 04:29:32 +0200 3Date: Mon, 15 Apr 2013 04:29:32 +0200
4Subject: [PATCH] Add linux-oe-g++ platform 4Subject: [PATCH] Add linux-oe-g++ platform
@@ -24,17 +24,17 @@ 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 | 39 ++++++++++++++++++++++++++++ 27 mkspecs/linux-oe-g++/qmake.conf | 40 ++++++++++++++++++++++++++++
28 mkspecs/linux-oe-g++/qplatformdefs.h | 1 + 28 mkspecs/linux-oe-g++/qplatformdefs.h | 1 +
29 6 files changed, 47 insertions(+), 7 deletions(-) 29 6 files changed, 48 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
33diff --git a/configure b/configure 33diff --git a/configure b/configure
34index b6c9b462f2..4e3fcd41d1 100755 34index f9407ef587..467f57f960 100755
35--- a/configure 35--- a/configure
36+++ b/configure 36+++ b/configure
37@@ -708,7 +708,7 @@ fi 37@@ -709,7 +709,7 @@ fi
38 # is where the resulting variable is written to 38 # is where the resulting variable is written to
39 setBootstrapVariable() 39 setBootstrapVariable()
40 { 40 {
@@ -65,10 +65,10 @@ 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)
67diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf 67diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
68index 69d1954306..37f7c9c4a2 100644 68index 89f4946c50..97c1b43ccb 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@@ -151,7 +151,7 @@ import_plugins:qtConfig(static) { 71@@ -148,7 +148,7 @@ import_plugins:qtConfig(static) {
72 plug_name = $$QMAKE_PREFIX_STATICLIB$${plug}$$qtPlatformTargetSuffix().$$QMAKE_EXTENSION_STATICLIB 72 plug_name = $$QMAKE_PREFIX_STATICLIB$${plug}$$qtPlatformTargetSuffix().$$QMAKE_EXTENSION_STATICLIB
73 plug_path = $$eval(QT_PLUGIN.$${plug}.PATH) 73 plug_path = $$eval(QT_PLUGIN.$${plug}.PATH)
74 isEmpty(plug_path): \ 74 isEmpty(plug_path): \
@@ -77,7 +77,7 @@ index 69d1954306..37f7c9c4a2 100644
77 LIBS += $$plug_path/$$plug_type/$$plug_name 77 LIBS += $$plug_path/$$plug_type/$$plug_name
78 } else { 78 } else {
79 LIBS += -l$${plug}$$qtPlatformTargetSuffix() 79 LIBS += -l$${plug}$$qtPlatformTargetSuffix()
80@@ -274,8 +274,8 @@ for(ever) { 80@@ -271,8 +271,8 @@ for(ever) {
81 # static builds: link qml import plugins into the target. 81 # static builds: link qml import plugins into the target.
82 contains(all_qt_module_deps, qml): \ 82 contains(all_qt_module_deps, qml): \
83 qtConfig(static):import_plugins:!host_build:!no_import_scan { 83 qtConfig(static):import_plugins:!host_build:!no_import_scan {
@@ -89,10 +89,10 @@ index 69d1954306..37f7c9c4a2 100644
89 # run qmlimportscanner 89 # run qmlimportscanner
90 qtPrepareTool(QMLIMPORTSCANNER, qmlimportscanner, , system) 90 qtPrepareTool(QMLIMPORTSCANNER, qmlimportscanner, , system)
91diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf 91diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
92index 7777e615bd..8d792fa70a 100644 92index 1903e509c8..c093dd4592 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@@ -87,7 +87,7 @@ defineTest(qtHaveModule) { 95@@ -69,7 +69,7 @@ defineTest(qtHaveModule) {
96 defineTest(qtPrepareTool) { 96 defineTest(qtPrepareTool) {
97 cmd = $$eval(QT_TOOL.$${2}.binary) 97 cmd = $$eval(QT_TOOL.$${2}.binary)
98 isEmpty(cmd) { 98 isEmpty(cmd) {
@@ -103,10 +103,10 @@ index 7777e615bd..8d792fa70a 100644
103 cmd = perl -w $$system_path($${cmd}.pl) 103 cmd = perl -w $$system_path($${cmd}.pl)
104diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf 104diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf
105new file mode 100644 105new file mode 100644
106index 0000000000..c202c47fa1 106index 0000000000..9275fc7d74
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,39 @@ 109@@ -0,0 +1,40 @@
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+#
@@ -117,8 +117,9 @@ index 0000000000..c202c47fa1
117+ 117+
118+include(../common/linux.conf) 118+include(../common/linux.conf)
119+ 119+
120+# QMAKE_<TOOL> (moc, uic, rcc) are gone, overwrite only ar and strip 120+# QMAKE_<TOOL> (moc, uic, rcc) are gone, overwrite only ar, objcopy, and strip
121+QMAKE_AR = $$(OE_QMAKE_AR) cqs 121+QMAKE_AR = $$(OE_QMAKE_AR) cqs
122+QMAKE_OBJCOPY = $$(OE_QMAKE_OBJCOPY)
122+QMAKE_STRIP = $$(OE_QMAKE_STRIP) 123+QMAKE_STRIP = $$(OE_QMAKE_STRIP)
123+ 124+
124+include(../common/gcc-base-unix.conf) 125+include(../common/gcc-base-unix.conf)
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 19c22d0a..daaa1dce 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -268,6 +268,7 @@ do_install_append() {
268 echo "isEmpty(QMAKE_LINK_C): QMAKE_LINK_C = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf 268 echo "isEmpty(QMAKE_LINK_C): QMAKE_LINK_C = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf
269 echo "isEmpty(QMAKE_LINK_C_SHLIB): QMAKE_LINK_C_SHLIB = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf 269 echo "isEmpty(QMAKE_LINK_C_SHLIB): QMAKE_LINK_C_SHLIB = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf
270 echo "isEmpty(QMAKE_LFLAGS): QMAKE_LFLAGS = ${OE_QMAKE_LDFLAGS}" >> $conf 270 echo "isEmpty(QMAKE_LFLAGS): QMAKE_LFLAGS = ${OE_QMAKE_LDFLAGS}" >> $conf
271 echo "isEmpty(QMAKE_OBJCOPY): QMAKE_OBJCOPY = ${TARGET_PREFIX}objcopy" >> $conf
271 echo "isEmpty(QMAKE_STRIP): QMAKE_STRIP = ${TARGET_PREFIX}strip" >> $conf 272 echo "isEmpty(QMAKE_STRIP): QMAKE_STRIP = ${TARGET_PREFIX}strip" >> $conf
272 echo "isEmpty(CC_host): CC_host = ${CC_host}" >> $conf 273 echo "isEmpty(CC_host): CC_host = ${CC_host}" >> $conf
273 echo "isEmpty(CXX_host): CXX_host = ${CXX_host}" >> $conf 274 echo "isEmpty(CXX_host): CXX_host = ${CXX_host}" >> $conf