summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch')
-rw-r--r--recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch65
1 files changed, 22 insertions, 43 deletions
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 522afcd1..af85fe9d 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 cabe9683b82493e2547e87ae0057f44f71efe519 Mon Sep 17 00:00:00 2001 1From 79f881eaa0a4a980963ce4ea1bc4c5e26c640c9a 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
@@ -47,19 +47,19 @@ Upstream-Status: Inappropriate [embedded specific]
47Change-Id: I0591ed5da0d61d7cf1509d420e6b293582f1863c 47Change-Id: I0591ed5da0d61d7cf1509d420e6b293582f1863c
48Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 48Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
49--- 49---
50 configure | 71 ++++++++++++++++--------- 50 configure | 55 ++++++++++++-------
51 mkspecs/features/configure.prf | 4 +- 51 mkspecs/features/configure.prf | 4 +-
52 mkspecs/linux-oe-g++/qmake.conf | 42 +++++++++++++++ 52 mkspecs/linux-oe-g++/qmake.conf | 42 +++++++++++++++
53 mkspecs/linux-oe-g++/qplatformdefs.h | 100 +++++++++++++++++++++++++++++++++++ 53 mkspecs/linux-oe-g++/qplatformdefs.h | 100 +++++++++++++++++++++++++++++++++++
54 4 files changed, 189 insertions(+), 28 deletions(-) 54 4 files changed, 181 insertions(+), 20 deletions(-)
55 create mode 100644 mkspecs/linux-oe-g++/qmake.conf 55 create mode 100644 mkspecs/linux-oe-g++/qmake.conf
56 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h 56 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h
57 57
58diff --git a/configure b/configure 58diff --git a/configure b/configure
59index 3e97c98..88a308d 100755 59index b65c564..ffe6931 100755
60--- a/configure 60--- a/configure
61+++ b/configure 61+++ b/configure
62@@ -342,6 +342,16 @@ getQMakeConf() 62@@ -339,6 +339,16 @@ getQMakeConf()
63 getSingleQMakeVariable "$1" "$specvals" 63 getSingleQMakeVariable "$1" "$specvals"
64 } 64 }
65 65
@@ -76,7 +76,7 @@ index 3e97c98..88a308d 100755
76 getXQMakeConf() 76 getXQMakeConf()
77 { 77 {
78 if [ -z "$xspecvals" ]; then 78 if [ -z "$xspecvals" ]; then
79@@ -351,6 +361,16 @@ getXQMakeConf() 79@@ -348,6 +358,16 @@ getXQMakeConf()
80 getSingleQMakeVariable "$1" "$xspecvals" 80 getSingleQMakeVariable "$1" "$xspecvals"
81 } 81 }
82 82
@@ -93,7 +93,7 @@ index 3e97c98..88a308d 100755
93 compilerSupportsFlag() 93 compilerSupportsFlag()
94 { 94 {
95 cat >conftest.cpp <<EOF 95 cat >conftest.cpp <<EOF
96@@ -557,24 +577,14 @@ fi 96@@ -569,24 +589,14 @@ fi
97 # initalize variables 97 # initalize variables
98 #------------------------------------------------------------------------------- 98 #-------------------------------------------------------------------------------
99 99
@@ -124,8 +124,8 @@ index 3e97c98..88a308d 100755
124 fi'` 124 fi'`
125 eval "$cmd" 125 eval "$cmd"
126 done 126 done
127@@ -3418,7 +3428,7 @@ if [ "$XPLATFORM_MAC" = "yes" ]; then 127@@ -3428,7 +3438,7 @@ if [ "$XPLATFORM_MAC" = "yes" ]; then
128 [ "$CFG_QGTKSTYLE" = "auto" ] && CFG_QGTKSTYLE=no 128 [ "$CFG_GTK" = "auto" ] && CFG_GTK=no
129 fi 129 fi
130 130
131-QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX` 131-QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX`
@@ -133,16 +133,16 @@ index 3e97c98..88a308d 100755
133 133
134 TEST_COMPILER=$QMAKE_CONF_COMPILER 134 TEST_COMPILER=$QMAKE_CONF_COMPILER
135 135
136@@ -3475,7 +3485,7 @@ if [ "$XPLATFORM_SYMBIAN_SBSV2" = "no" ]; then 136@@ -3479,7 +3489,7 @@ if [ "$XPLATFORM_ANDROID" = "yes" ] ; then
137 exit 1
138 fi 137 fi
139 fi 138 fi
139
140-TEST_COMPILER_CXXFLAGS=`getXQMakeConf QMAKE_CXXFLAGS` 140-TEST_COMPILER_CXXFLAGS=`getXQMakeConf QMAKE_CXXFLAGS`
141+TEST_COMPILER_CXXFLAGS=`getXQEvalMakeConf QMAKE_CXXFLAGS` 141+TEST_COMPILER_CXXFLAGS=`getXQEvalMakeConf QMAKE_CXXFLAGS`
142 142
143 GCC_MACHINE_DUMP= 143 GCC_MACHINE_DUMP=
144 case "$TEST_COMPILER" in *g++) GCC_MACHINE_DUMP=$($TEST_COMPILER -dumpmachine);; esac 144 case "$TEST_COMPILER" in *g++) GCC_MACHINE_DUMP=$($TEST_COMPILER -dumpmachine);; esac
145@@ -3976,6 +3986,14 @@ setBootstrapVariable() 145@@ -3878,6 +3888,14 @@ setBootstrapVariable()
146 getQMakeConf "$1" | echo ${2-$1} = `if [ -n "$3" ]; then sed "$3"; else cat; fi` >> "$mkfile" 146 getQMakeConf "$1" | echo ${2-$1} = `if [ -n "$3" ]; then sed "$3"; else cat; fi` >> "$mkfile"
147 } 147 }
148 148
@@ -157,42 +157,19 @@ index 3e97c98..88a308d 100755
157 # build qmake 157 # build qmake
158 if true; then ###[ '!' -f "$outpath/bin/qmake" ]; 158 if true; then ###[ '!' -f "$outpath/bin/qmake" ];
159 echo "Creating qmake..." 159 echo "Creating qmake..."
160@@ -4014,14 +4032,14 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ]; 160@@ -3977,6 +3995,7 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
161 fi
162
163 [ "$CFG_SILENT" = "yes" ] && CC_TRANSFORM='s,^,\@,' || CC_TRANSFORM=
164- setBootstrapVariable QMAKE_CC CC "$CC_TRANSFORM"
165- setBootstrapVariable QMAKE_CXX CXX "$CC_TRANSFORM"
166- setBootstrapVariable QMAKE_CFLAGS
167- setBootstrapVariable QMAKE_CFLAGS_SPLIT_SECTIONS
168- setBootstrapVariable QMAKE_CXXFLAGS
169- setBootstrapVariable QMAKE_CXXFLAGS_SPLIT_SECTIONS
170- setBootstrapVariable QMAKE_LFLAGS
171- setBootstrapVariable QMAKE_LFLAGS_GCSECTIONS
172+ setBootstrapEvalVariable QMAKE_CC CC "$CC_TRANSFORM"
173+ setBootstrapEvalVariable QMAKE_CXX CXX "$CC_TRANSFORM"
174+ setBootstrapEvalVariable QMAKE_CFLAGS
175+ setBootstrapEvalVariable QMAKE_CFLAGS_SPLIT_SECTIONS
176+ setBootstrapEvalVariable QMAKE_CXXFLAGS
177+ setBootstrapEvalVariable QMAKE_CXXFLAGS_SPLIT_SECTIONS
178+ setBootstrapEvalVariable QMAKE_LFLAGS
179+ setBootstrapEvalVariable QMAKE_LFLAGS_GCSECTIONS
180
181 if [ "$CFG_RELEASE_TOOLS" = "yes" ]; then
182 setBootstrapVariable QMAKE_CFLAGS_RELEASE
183@@ -4070,6 +4088,7 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
184 \"\$(SOURCE_PATH)/src/corelib/io/qfsfileengine_unix.cpp\" \
185 \"\$(SOURCE_PATH)/src/corelib/tools/qlocale_unix.cpp\""
186 EXEEXT= 161 EXEEXT=
187+ [ "$QT_CROSS_COMPILE" = "yes" ] && EXEEXT=-target 162 ;;
188 fi 163 esac
164+ [ "$QT_CROSS_COMPILE" = "yes" ] && EXEEXT=-target
189 if [ "$BUILD_ON_MAC" = "yes" ]; then 165 if [ "$BUILD_ON_MAC" = "yes" ]; then
190 echo "COCOA_LFLAGS =-framework Foundation -framework CoreServices" >>"$mkfile" 166 echo "COCOA_LFLAGS =-framework Foundation -framework CoreServices" >>"$mkfile"
167 echo "CARBON_LFLAGS =-framework ApplicationServices" >>"$mkfile"
191diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf 168diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf
192index 6b37a04..dcf6025 100644 169index 92c288c..f3019e0 100644
193--- a/mkspecs/features/configure.prf 170--- a/mkspecs/features/configure.prf
194+++ b/mkspecs/features/configure.prf 171+++ b/mkspecs/features/configure.prf
195@@ -63,12 +63,12 @@ defineTest(qtCompileTest) { 172@@ -63,14 +63,14 @@ defineTest(qtCompileTest) {
196 } 173 }
197 174
198 # Clean up after previous run 175 # Clean up after previous run
@@ -201,7 +178,9 @@ index 6b37a04..dcf6025 100644
201 178
202 mkpath($$test_out_dir)|error("Aborting.") 179 mkpath($$test_out_dir)|error("Aborting.")
203 180
204 qtRunLoggedCommand("$$test_cmd_base $$system_quote($$system_path($$QMAKE_QMAKE)) -spec $$QMAKESPEC $$qmake_configs $$shell_quote($$test_dir)") { 181 !isEmpty (QMAKE_QTCONF): qtconfarg = -qtconf $$QMAKE_QTCONF
182
183 qtRunLoggedCommand("$$test_cmd_base $$system_quote($$system_path($$QMAKE_QMAKE)) $$qtconfarg -spec $$QMAKESPEC $$qmake_configs $$shell_quote($$test_dir)") {
205- qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE") { 184- qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE") {
206+ qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE $$(QMAKE_MAKE_ARGS)") { 185+ qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE $$(QMAKE_MAKE_ARGS)") {
207 log("yes$$escape_expand(\\n)") 186 log("yes$$escape_expand(\\n)")