diff options
-rw-r--r-- | recipes-qt/qt5/qtbase.inc | 25 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch | 27 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0015-Set-paths-for-target-properly.patch | 72 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 1 |
4 files changed, 106 insertions, 19 deletions
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc index a8748ef5..cbb8e4f2 100644 --- a/recipes-qt/qt5/qtbase.inc +++ b/recipes-qt/qt5/qtbase.inc | |||
@@ -16,6 +16,7 @@ SRC_URI += "\ | |||
16 | # specific for qtbase | 16 | # specific for qtbase |
17 | SRC_URI += "\ | 17 | SRC_URI += "\ |
18 | file://0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch \ | 18 | file://0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch \ |
19 | file://0015-Set-paths-for-target-properly.patch \ | ||
19 | " | 20 | " |
20 | 21 | ||
21 | DEPENDS += "qtbase-native" | 22 | DEPENDS += "qtbase-native" |
@@ -196,23 +197,23 @@ do_configure() { | |||
196 | } | 197 | } |
197 | 198 | ||
198 | do_compile_append() { | 199 | do_compile_append() { |
199 | # Build qmake for the target arch | 200 | # copy corelib/3rdparty/qmake sources required by qmake -> ${B} |
200 | # Disable for now, because doesn't work well with separate ${B} | 201 | cp -ra ${S}/src/corelib ${B}/src |
201 | # cp -ra ${S}/qmake ${B} | 202 | cp -ra ${S}/src/3rdparty ${B}/src |
202 | # cd ${B}/qmake | 203 | cp -ra ${S}/qmake ${B} |
203 | # ${OE_QMAKE_QMAKE} | 204 | cp ${S}/.qmake.conf ${B}/qmake |
204 | # Fix to use headers in ${B} | 205 | cd ${B}/qmake |
205 | # sed '/INCPATH/s#${S}#${B}#g' -i Makefile | 206 | # align qt5 tools source path to ${S} |
206 | # oe_runmake CC="${CC}" CXX="${CXX}" | 207 | sed -i 's:\.\./tools:${S}/tools:g' qmake.pro |
207 | # cd ${B} | 208 | ../${OE_QMAKE_QMAKE} |
209 | oe_runmake CC="${CC}" CXX="${CXX}" | ||
208 | } | 210 | } |
209 | 211 | ||
210 | do_install_append() { | 212 | do_install_append() { |
213 | install -m 0755 ${B}/qmake/bin/qmake ${D}/${bindir}/${QT_DIR_NAME} | ||
214 | |||
211 | ### Fix up the binaries to the right location | 215 | ### Fix up the binaries to the right location |
212 | ### TODO: FIX | 216 | ### TODO: FIX |
213 | # qemu built on host breaks do_package, remove it here (will be replaces with right qemu when do_compile is fixed | ||
214 | # ERROR: objcopy failed with exit code 1 (cmd was 'arm-oe-linux-gnueabi-objcopy' --only-keep-debug '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/qmake' '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/.debug/qmake') | ||
215 | rm -f ${D}/${bindir}/${QT_DIR_NAME}/qmake | ||
216 | # install fonts manually if they are missing | 217 | # install fonts manually if they are missing |
217 | if [ ! -d ${D}/${OE_QMAKE_PATH_LIBS}/fonts ]; then | 218 | if [ ! -d ${D}/${OE_QMAKE_PATH_LIBS}/fonts ]; then |
218 | cp -a ${S}/lib/fonts ${D}/${OE_QMAKE_PATH_LIBS} | 219 | cp -a ${S}/lib/fonts ${D}/${OE_QMAKE_PATH_LIBS} |
diff --git a/recipes-qt/qt5/qtbase/0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch b/recipes-qt/qt5/qtbase/0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch index 21e0987b..4d4291cf 100644 --- a/recipes-qt/qt5/qtbase/0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch +++ b/recipes-qt/qt5/qtbase/0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch | |||
@@ -14,17 +14,17 @@ Signed-off-by: Yu Ke <ke.yu@intel.com> | |||
14 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | 14 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> |
15 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@gmail.com> | 15 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@gmail.com> |
16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
17 | --- | ||
18 | configure | 2 +- | 17 | configure | 2 +- |
18 | qmake/qmake.pri | 3 ++- | ||
19 | qmake/qmake.pro | 2 ++ | 19 | qmake/qmake.pro | 2 ++ |
20 | 2 files changed, 3 insertions(+), 1 deletion(-) | 20 | 3 files changed, 5 insertions(+), 2 deletions(-) |
21 | 21 | ||
22 | diff --git a/configure b/configure | 22 | diff --git a/configure b/configure |
23 | index bd43281..5d1b3aa 100755 | 23 | index 43be722..39516d2 100755 |
24 | --- a/configure | 24 | --- a/configure |
25 | +++ b/configure | 25 | +++ b/configure |
26 | @@ -3724,7 +3724,7 @@ setBootstrapEvalVariable() | 26 | @@ -3759,7 +3759,7 @@ setBootstrapVariable() |
27 | 27 | } | |
28 | 28 | ||
29 | # build qmake | 29 | # build qmake |
30 | -if true; then ###[ '!' -f "$outpath/bin/qmake" ]; | 30 | -if true; then ###[ '!' -f "$outpath/bin/qmake" ]; |
@@ -32,15 +32,28 @@ index bd43281..5d1b3aa 100755 | |||
32 | echo "Creating qmake..." | 32 | echo "Creating qmake..." |
33 | 33 | ||
34 | mkdir -p "$outpath/qmake" || exit | 34 | mkdir -p "$outpath/qmake" || exit |
35 | diff --git a/qmake/qmake.pri b/qmake/qmake.pri | ||
36 | index 57dcbb0..e2c5845 100644 | ||
37 | --- a/qmake/qmake.pri | ||
38 | +++ b/qmake/qmake.pri | ||
39 | @@ -82,7 +82,8 @@ bootstrap { #Qt code | ||
40 | qjsonparser.cpp \ | ||
41 | qjsonarray.cpp \ | ||
42 | qjsonobject.cpp \ | ||
43 | - qjsonvalue.cpp | ||
44 | + qjsonvalue.cpp \ | ||
45 | + qdebug.cpp | ||
46 | |||
47 | HEADERS+= \ | ||
48 | qbitarray.h \ | ||
35 | diff --git a/qmake/qmake.pro b/qmake/qmake.pro | 49 | diff --git a/qmake/qmake.pro b/qmake/qmake.pro |
36 | index 89d6ea5..7c605b9 100644 | 50 | index 89d6ea5..7c605b9 100644 |
37 | --- a/qmake/qmake.pro | 51 | --- a/qmake/qmake.pro |
38 | +++ b/qmake/qmake.pro | 52 | +++ b/qmake/qmake.pro |
39 | @@ -8,6 +8,8 @@ CONFIG -= qt | 53 | @@ -8,6 +8,7 @@ CONFIG -= qt |
40 | DEFINES += \ | 54 | DEFINES += \ |
41 | QT_BUILD_QMAKE \ | 55 | QT_BUILD_QMAKE \ |
42 | PROEVALUATOR_FULL | 56 | PROEVALUATOR_FULL |
43 | +DESTDIR = ../bin/ | ||
44 | +TARGET = qmake | 57 | +TARGET = qmake |
45 | 58 | ||
46 | VPATH += \ | 59 | VPATH += \ |
diff --git a/recipes-qt/qt5/qtbase/0015-Set-paths-for-target-properly.patch b/recipes-qt/qt5/qtbase/0015-Set-paths-for-target-properly.patch new file mode 100644 index 00000000..28512f0b --- /dev/null +++ b/recipes-qt/qt5/qtbase/0015-Set-paths-for-target-properly.patch | |||
@@ -0,0 +1,72 @@ | |||
1 | From d84b7386902e024a0cfe5a6689930e5548a60480 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Thu, 22 Jan 2015 16:09:35 +0100 | ||
4 | Subject: [PATCH] Set paths for target properly | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Inappropriate [OE specific] | ||
10 | |||
11 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
12 | --- | ||
13 | configure | 42 +++++++++++++++++++++--------------------- | ||
14 | 1 file changed, 21 insertions(+), 21 deletions(-) | ||
15 | |||
16 | diff --git a/configure b/configure | ||
17 | index 43be722..0e1a64a 100755 | ||
18 | --- a/configure | ||
19 | +++ b/configure | ||
20 | @@ -3634,28 +3634,27 @@ static const char qt_configure_prefix_path_strs[][512 + 12] = { | ||
21 | "qt_xmplpath=$QT_SYSROOT_EXAMPLES", | ||
22 | "qt_tstspath=$QT_SYSROOT_TESTS", | ||
23 | #else | ||
24 | - "qt_prfxpath=$QT_INSTALL_PREFIX", | ||
25 | - "qt_docspath=$QT_INSTALL_DOCS", | ||
26 | - "qt_hdrspath=$QT_INSTALL_HEADERS", | ||
27 | - "qt_libspath=$QT_INSTALL_LIBS", | ||
28 | - "qt_lbexpath=$QT_INSTALL_LIBEXECS", | ||
29 | - "qt_binspath=$QT_INSTALL_BINS", | ||
30 | - "qt_plugpath=$QT_INSTALL_PLUGINS", | ||
31 | - "qt_impspath=$QT_INSTALL_IMPORTS", | ||
32 | - "qt_qml2path=$QT_INSTALL_QML", | ||
33 | - "qt_adatpath=$QT_INSTALL_ARCHDATA", | ||
34 | - "qt_datapath=$QT_INSTALL_DATA", | ||
35 | - "qt_trnspath=$QT_INSTALL_TRANSLATIONS", | ||
36 | - "qt_xmplpath=$QT_INSTALL_EXAMPLES", | ||
37 | - "qt_tstspath=$QT_INSTALL_TESTS", | ||
38 | - "qt_ssrtpath=$CFG_SYSROOT", | ||
39 | - "qt_hpfxpath=$QT_HOST_PREFIX", | ||
40 | - "qt_hbinpath=$QT_HOST_BINS", | ||
41 | - "qt_hlibpath=$QT_HOST_LIBS", | ||
42 | - "qt_hdatpath=$QT_HOST_DATA", | ||
43 | - "qt_ebinpath=$QT_EXTERNAL_HOST_BINS", | ||
44 | - "qt_targspec=$shortxspec", | ||
45 | - "qt_hostspec=$shortspec", | ||
46 | + "qt_prfxpath=$QT_SYSROOT_PREFIX", | ||
47 | + "qt_docspath=$QT_SYSROOT_DOCS", | ||
48 | + "qt_hdrspath=$QT_SYSROOT_HEADERS", | ||
49 | + "qt_libspath=$QT_SYSROOT_LIBS", | ||
50 | + "qt_lbexpath=$QT_SYSROOT_LIBEXECS", | ||
51 | + "qt_binspath=$QT_SYSROOT_BINS", | ||
52 | + "qt_plugpath=$QT_SYSROOT_PLUGINS", | ||
53 | + "qt_impspath=$QT_SYSROOT_IMPORTS", | ||
54 | + "qt_qml2path=$QT_SYSROOT_QML", | ||
55 | + "qt_adatpath=$QT_SYSROOT_ARCHDATA", | ||
56 | + "qt_datapath=$QT_SYSROOT_DATA", | ||
57 | + "qt_trnspath=$QT_SYSROOT_TRANSLATIONS", | ||
58 | + "qt_xmplpath=$QT_SYSROOT_EXAMPLES", | ||
59 | + "qt_tstspath=$QT_SYSROOT_TESTS", | ||
60 | + "qt_ssrtpath=", | ||
61 | + "qt_hpfxpath=$QT_SYSROOT_PREFIX", | ||
62 | + "qt_hbinpath=$QT_SYSROOT_BINS", | ||
63 | + "qt_hlibpath=$QT_SYSROOT_LIBS", | ||
64 | + "qt_hdatpath=$QT_SYSROOT_LIBS/qt5", | ||
65 | + "qt_targspec=linux-g++", | ||
66 | + "qt_hostspec=linux-g++", | ||
67 | #endif | ||
68 | }; | ||
69 | static const char qt_configure_settings_path_str[256 + 12] = "qt_stngpath=$QT_INSTALL_SETTINGS"; | ||
70 | -- | ||
71 | 1.8.3.1 | ||
72 | |||
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 611e19a8..0424bc24 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
@@ -20,6 +20,7 @@ SRC_URI += "\ | |||
20 | # specific for qtbase | 20 | # specific for qtbase |
21 | SRC_URI += "\ | 21 | SRC_URI += "\ |
22 | file://0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch \ | 22 | file://0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch \ |
23 | file://0015-Set-paths-for-target-properly.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | SRCREV = "47326b9c5c38fea39f8539f50f32667d2c391b70" | 26 | SRCREV = "47326b9c5c38fea39f8539f50f32667d2c391b70" |