diff options
| author | Mikko Gronoff <mikko.gronoff@qt.io> | 2017-02-22 11:47:15 +0200 |
|---|---|---|
| committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2017-02-22 11:48:47 +0200 |
| commit | 551f670b681294d15f4f36433c8507d99e240fd0 (patch) | |
| tree | e013fee1fe7d3f22fefbf627953c5aed45361715 | |
| parent | d1ddf0cc4482b8e8e46f3be66870778ba9a42a13 (diff) | |
| parent | ee301d84a763f9a23499533ecd7cef20643b9431 (diff) | |
| download | meta-qt5-551f670b681294d15f4f36433c8507d99e240fd0.tar.gz | |
Merge remote-tracking branch 'qtyocto/upstream/master' into 5.9
* upstream/master:
populate_sdk_qt5: use _append operator
qmake5_base.bbclass: set qt.conf by environment variable again
Conflicts:
recipes-qt/qt5/nativesdk-qtbase_git.bb
recipes-qt/qt5/qtbase-native_git.bb
recipes-qt/qt5/qtbase_git.bb
Change-Id: I8f47b06f1143be1a399ab4e8d2aa9cf32df4ad25
| -rw-r--r-- | classes/populate_sdk_qt5.bbclass | 4 | ||||
| -rw-r--r-- | classes/qmake5_base.bbclass | 9 | ||||
| -rw-r--r-- | recipes-qt/qt5/nativesdk-qtbase_git.bb | 5 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase-native_git.bb | 5 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | 38 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 5 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebengine_git.bb | 2 |
7 files changed, 61 insertions, 7 deletions
diff --git a/classes/populate_sdk_qt5.bbclass b/classes/populate_sdk_qt5.bbclass index bbf137d7..a10341dc 100644 --- a/classes/populate_sdk_qt5.bbclass +++ b/classes/populate_sdk_qt5.bbclass | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | inherit populate_sdk_qt5_base | 3 | inherit populate_sdk_qt5_base |
| 4 | 4 | ||
| 5 | TOOLCHAIN_HOST_TASK += "nativesdk-packagegroup-qt5-toolchain-host" | 5 | TOOLCHAIN_HOST_TASK_append = " nativesdk-packagegroup-qt5-toolchain-host" |
| 6 | TOOLCHAIN_TARGET_TASK += "packagegroup-qt5-toolchain-target" | 6 | TOOLCHAIN_TARGET_TASK_append = " packagegroup-qt5-toolchain-target" |
| 7 | 7 | ||
| 8 | FEATURE_PACKAGES_qtcreator-debug = "packagegroup-qt5-qtcreator-debug" | 8 | FEATURE_PACKAGES_qtcreator-debug = "packagegroup-qt5-qtcreator-debug" |
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass index 3cd124ae..a556f4f9 100644 --- a/classes/qmake5_base.bbclass +++ b/classes/qmake5_base.bbclass | |||
| @@ -41,8 +41,9 @@ export OE_QMAKE_LDFLAGS = "${LDFLAGS}" | |||
| 41 | export OE_QMAKE_AR = "${AR}" | 41 | export OE_QMAKE_AR = "${AR}" |
| 42 | export OE_QMAKE_STRIP = "echo" | 42 | export OE_QMAKE_STRIP = "echo" |
| 43 | export OE_QMAKE_WAYLAND_SCANNER = "${STAGING_BINDIR_NATIVE}/wayland-scanner" | 43 | export OE_QMAKE_WAYLAND_SCANNER = "${STAGING_BINDIR_NATIVE}/wayland-scanner" |
| 44 | OE_QMAKE_QTCONF_PATH = "${WORKDIR}/qt.conf" | 44 | |
| 45 | export OE_QMAKE_QTCONF = "-qtconf ${OE_QMAKE_QTCONF_PATH}" | 45 | # qmake reads if from shell environment |
| 46 | export OE_QMAKE_QTCONF_PATH = "${WORKDIR}/qt.conf" | ||
| 46 | 47 | ||
| 47 | inherit qmake5_paths remove-libtool | 48 | inherit qmake5_paths remove-libtool |
| 48 | 49 | ||
| @@ -170,8 +171,8 @@ qmake5_base_do_configure () { | |||
| 170 | # for config.tests to read this | 171 | # for config.tests to read this |
| 171 | export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" | 172 | export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" |
| 172 | 173 | ||
| 173 | CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_QTCONF} ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST -- $QMAKE_VARSUBST_CONFIGURE" | 174 | CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST -- $QMAKE_VARSUBST_CONFIGURE" |
| 174 | ${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_QTCONF} ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST -- $QMAKE_VARSUBST_CONFIGURE || die "Error calling $CMD" | 175 | ${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST -- $QMAKE_VARSUBST_CONFIGURE || die "Error calling $CMD" |
| 175 | } | 176 | } |
| 176 | 177 | ||
| 177 | qmake5_base_native_do_install() { | 178 | qmake5_base_native_do_install() { |
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb index 25c072d5..2aa392e2 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb | |||
| @@ -28,6 +28,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" | |||
| 28 | SRC_URI += "\ | 28 | SRC_URI += "\ |
| 29 | file://0001-Add-linux-oe-g-platform.patch \ | 29 | file://0001-Add-linux-oe-g-platform.patch \ |
| 30 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ | 30 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ |
| 31 | file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | ||
| 31 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 32 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 32 | file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ | 33 | file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ |
| 33 | file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ | 34 | file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ |
| @@ -90,6 +91,10 @@ QT_CONFIG_FLAGS += " \ | |||
| 90 | OE_QMAKE_PATH_HOST_DATA = "${libdir}${QT_DIR_NAME}" | 91 | OE_QMAKE_PATH_HOST_DATA = "${libdir}${QT_DIR_NAME}" |
| 91 | OE_QMAKE_PATH_HOST_LIBS = "${libdir}" | 92 | OE_QMAKE_PATH_HOST_LIBS = "${libdir}" |
| 92 | 93 | ||
| 94 | # for qtbase configuration we need default settings | ||
| 95 | # since we cannot set empty set filename to a not existent file | ||
| 96 | export OE_QMAKE_QTCONF_PATH = "foodummy" | ||
| 97 | |||
| 93 | do_configure() { | 98 | do_configure() { |
| 94 | ${S}/configure -v \ | 99 | ${S}/configure -v \ |
| 95 | -opensource -confirm-license \ | 100 | -opensource -confirm-license \ |
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb index 972e8eda..80c4da62 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb | |||
| @@ -23,6 +23,7 @@ require qt5-git.inc | |||
| 23 | SRC_URI += "\ | 23 | SRC_URI += "\ |
| 24 | file://0001-Add-linux-oe-g-platform.patch \ | 24 | file://0001-Add-linux-oe-g-platform.patch \ |
| 25 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ | 25 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ |
| 26 | file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | ||
| 26 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 27 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 27 | file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ | 28 | file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ |
| 28 | file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ | 29 | file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ |
| @@ -75,6 +76,10 @@ PACKAGECONFIG_CONFARGS = " \ | |||
| 75 | -platform linux-oe-g++ \ | 76 | -platform linux-oe-g++ \ |
| 76 | " | 77 | " |
| 77 | 78 | ||
| 79 | # for qtbase configuration we need default settings | ||
| 80 | # since we cannot set empty set filename to a not existent file | ||
| 81 | export OE_QMAKE_QTCONF_PATH = "foodummy" | ||
| 82 | |||
| 78 | do_configure_prepend() { | 83 | do_configure_prepend() { |
| 79 | MAKEFLAGS="${PARALLEL_MAKE}" ${S}/configure -opensource -confirm-license ${PACKAGECONFIG_CONFARGS} || die "Configuring qt failed. PACKAGECONFIG_CONFARGS was ${PACKAGECONFIG_CONFARGS}" | 84 | MAKEFLAGS="${PARALLEL_MAKE}" ${S}/configure -opensource -confirm-license ${PACKAGECONFIG_CONFARGS} || die "Configuring qt failed. PACKAGECONFIG_CONFARGS was ${PACKAGECONFIG_CONFARGS}" |
| 80 | } | 85 | } |
diff --git a/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch new file mode 100644 index 00000000..4b72ebf1 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From e5f8607cfa1d2bcc798686cdf7c87ea0c6577d30 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Holger Freyther <zecke@selfish.org> | ||
| 3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 | ||
| 4 | Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the | ||
| 5 | environment | ||
| 6 | |||
| 7 | Allow to set a qt.conf from the outside using the environment. This allows | ||
| 8 | to inject new prefixes and other paths into qmake. This is needed when using | ||
| 9 | the same qmake binary to build qt/x11 and qt/embedded | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [embedded specific] | ||
| 12 | again very OE specific to read everything from environment (reusing the same | ||
| 13 | qmake from sstate and replacing all configured paths in it with qt.conf from | ||
| 14 | environment). | ||
| 15 | |||
| 16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 17 | --- | ||
| 18 | src/corelib/global/qlibraryinfo.cpp | 5 ++++- | ||
| 19 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
| 22 | index 27fe10a..29ffcda 100644 | ||
| 23 | --- a/src/corelib/global/qlibraryinfo.cpp | ||
| 24 | +++ b/src/corelib/global/qlibraryinfo.cpp | ||
| 25 | @@ -164,7 +164,10 @@ void QLibrarySettings::load() | ||
| 26 | QSettings *QLibraryInfoPrivate::findConfiguration() | ||
| 27 | { | ||
| 28 | #ifdef QT_BUILD_QMAKE | ||
| 29 | - QString qtconfig = qmake_libraryInfoFile(); | ||
| 30 | + QByteArray config = getenv("OE_QMAKE_QTCONF_PATH"); | ||
| 31 | + QString qtconfig = QFile::decodeName(config); | ||
| 32 | + if(!QFile::exists(qtconfig)) | ||
| 33 | + qtconfig = qmake_libraryInfoFile(); | ||
| 34 | if (QFile::exists(qtconfig)) | ||
| 35 | return new QSettings(qtconfig, QSettings::IniFormat); | ||
| 36 | #else | ||
| 37 | -- | ||
| 38 | 2.9.3 | ||
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index c0bcd817..30bd9984 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
| @@ -18,6 +18,7 @@ LIC_FILES_CHKSUM = " \ | |||
| 18 | SRC_URI += "\ | 18 | SRC_URI += "\ |
| 19 | file://0001-Add-linux-oe-g-platform.patch \ | 19 | file://0001-Add-linux-oe-g-platform.patch \ |
| 20 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ | 20 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ |
| 21 | file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | ||
| 21 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 22 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 22 | file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ | 23 | file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ |
| 23 | file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ | 24 | file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ |
| @@ -127,6 +128,10 @@ QT_CONFIG_FLAGS += " \ | |||
| 127 | ${PACKAGECONFIG_CONFARGS} \ | 128 | ${PACKAGECONFIG_CONFARGS} \ |
| 128 | " | 129 | " |
| 129 | 130 | ||
| 131 | # for qtbase configuration we need default settings | ||
| 132 | # since we cannot set empty set filename to a not existent file | ||
| 133 | export OE_QMAKE_QTCONF_PATH = "foodummy" | ||
| 134 | |||
| 130 | do_configure() { | 135 | do_configure() { |
| 131 | # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" during configuration | 136 | # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" during configuration |
| 132 | touch ${S}/mkspecs/oe-device-extra.pri | 137 | touch ${S}/mkspecs/oe-device-extra.pri |
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb index 0ee37593..dffb9d3f 100644 --- a/recipes-qt/qt5/qtwebengine_git.bb +++ b/recipes-qt/qt5/qtwebengine_git.bb | |||
| @@ -78,7 +78,7 @@ do_configure() { | |||
| 78 | 78 | ||
| 79 | # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as | 79 | # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as |
| 80 | # arguments here | 80 | # arguments here |
| 81 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_QTCONF} -r ${EXTRA_QMAKEVARS_PRE} ${S} \ | 81 | ${OE_QMAKE_QMAKE} -r ${EXTRA_QMAKEVARS_PRE} ${S} \ |
| 82 | QMAKE_CXX="${OE_QMAKE_CXX}" QMAKE_CC="${OE_QMAKE_CC}" \ | 82 | QMAKE_CXX="${OE_QMAKE_CXX}" QMAKE_CC="${OE_QMAKE_CC}" \ |
| 83 | QMAKE_LINK="${OE_QMAKE_LINK}" \ | 83 | QMAKE_LINK="${OE_QMAKE_LINK}" \ |
| 84 | QMAKE_CFLAGS="${OE_QMAKE_CFLAGS}" \ | 84 | QMAKE_CFLAGS="${OE_QMAKE_CFLAGS}" \ |
