diff options
| -rw-r--r-- | recipes-qt/qt5/nativesdk-qtbase_git.bb | 4 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase-native_git.bb | 5 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase/0008-configure-paths-for-target-qmake-properly.patch | 76 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase/0009-Always-build-uic.patch (renamed from recipes-qt/qt5/qtbase/0008-Always-build-uic.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase/0010-Add-external-hostbindir-option-for-native-sdk.patch (renamed from recipes-qt/qt5/qtbase/0009-Add-external-hostbindir-option-for-native-sdk.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 1 |
6 files changed, 82 insertions, 4 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb index f712af72..3d4900eb 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb | |||
| @@ -33,8 +33,8 @@ SRC_URI += "\ | |||
| 33 | 33 | ||
| 34 | # common for qtbase-native and nativesdk-qtbase | 34 | # common for qtbase-native and nativesdk-qtbase |
| 35 | SRC_URI += " \ | 35 | SRC_URI += " \ |
| 36 | file://0008-Always-build-uic.patch \ | 36 | file://0009-Always-build-uic.patch \ |
| 37 | file://0009-Add-external-hostbindir-option-for-native-sdk.patch \ | 37 | file://0010-Add-external-hostbindir-option-for-native-sdk.patch \ |
| 38 | " | 38 | " |
| 39 | 39 | ||
| 40 | # CMake's toolchain configuration of nativesdk-qtbase | 40 | # CMake's toolchain configuration of nativesdk-qtbase |
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb index e27d34bf..14e85165 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb | |||
| @@ -23,12 +23,13 @@ SRC_URI += "\ | |||
| 23 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 23 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 24 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 24 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ |
| 25 | file://0007-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch \ | 25 | file://0007-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch \ |
| 26 | file://0008-configure-paths-for-target-qmake-properly.patch \ | ||
| 26 | " | 27 | " |
| 27 | 28 | ||
| 28 | # common for qtbase-native and nativesdk-qtbase | 29 | # common for qtbase-native and nativesdk-qtbase |
| 29 | SRC_URI += " \ | 30 | SRC_URI += " \ |
| 30 | file://0008-Always-build-uic.patch \ | 31 | file://0009-Always-build-uic.patch \ |
| 31 | file://0009-Add-external-hostbindir-option-for-native-sdk.patch \ | 32 | file://0010-Add-external-hostbindir-option-for-native-sdk.patch \ |
| 32 | " | 33 | " |
| 33 | 34 | ||
| 34 | CLEANBROKEN = "1" | 35 | CLEANBROKEN = "1" |
diff --git a/recipes-qt/qt5/qtbase/0008-configure-paths-for-target-qmake-properly.patch b/recipes-qt/qt5/qtbase/0008-configure-paths-for-target-qmake-properly.patch new file mode 100644 index 00000000..efd27a55 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0008-configure-paths-for-target-qmake-properly.patch | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | From fb519b08f564a8a640b1b2f2b6a3bd54a83e19e8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
| 3 | Date: Fri, 13 Nov 2015 12:36:11 +0100 | ||
| 4 | Subject: [PATCH] configure paths/mkspecs for target qmake properly | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | to use this patch in all qtbase/qtbase-native(sdk) changes ore made | ||
| 10 | conditionally based on QT_CROSS_COMPILE | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [OE specific] | ||
| 13 | |||
| 14 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
| 15 | --- | ||
| 16 | configure | 23 +++++++++++++++++++---- | ||
| 17 | 1 file changed, 19 insertions(+), 4 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/configure b/configure | ||
| 20 | index 6edfffd..de74a29 100755 | ||
| 21 | --- a/configure | ||
| 22 | +++ b/configure | ||
| 23 | @@ -3857,8 +3857,13 @@ if [ "$CFG_COMPILE_EXAMPLES" = "yes" ]; then | ||
| 24 | QMAKE_CONFIG="$QMAKE_CONFIG compile_examples" | ||
| 25 | fi | ||
| 26 | |||
| 27 | -shortxspec=`echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` | ||
| 28 | -shortspec=`echo $QMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` | ||
| 29 | +if [ "$QT_CROSS_COMPILE" = "yes" ] ; then | ||
| 30 | + shortxspec=linux-g++ | ||
| 31 | + shortspec=linux-g++ | ||
| 32 | +else | ||
| 33 | + shortxspec=`echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` | ||
| 34 | + shortspec=`echo $QMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` | ||
| 35 | +fi | ||
| 36 | |||
| 37 | QT_CONFIGURE_STR_OFF=0 | ||
| 38 | |||
| 39 | @@ -3891,7 +3896,11 @@ QT_CONFIGURE_STRS_ALL=$QT_CONFIGURE_STRS | ||
| 40 | |||
| 41 | QT_CONFIGURE_STR_OFFSETS= | ||
| 42 | QT_CONFIGURE_STRS= | ||
| 43 | -addConfStr "$CFG_SYSROOT" | ||
| 44 | +if [ "$QT_CROSS_COMPILE" = "yes" ] ; then | ||
| 45 | + addConfStr "" | ||
| 46 | +else | ||
| 47 | + addConfStr "$CFG_SYSROOT" | ||
| 48 | +fi | ||
| 49 | addConfStr "$QT_REL_HOST_BINS" | ||
| 50 | addConfStr "$QT_REL_HOST_LIBS" | ||
| 51 | addConfStr "$QT_REL_HOST_DATA" | ||
| 52 | @@ -3903,6 +3912,12 @@ addConfStr "$shortspec" | ||
| 53 | #------------------------------------------------------------------------------- | ||
| 54 | [ -d "$outpath/src/corelib/global" ] || mkdir -p "$outpath/src/corelib/global" | ||
| 55 | |||
| 56 | +if [ "$QT_CROSS_COMPILE" = "yes" ] ; then | ||
| 57 | + QT_TARGET_PREFIX=$QT_EXT_PREFIX | ||
| 58 | +else | ||
| 59 | + QT_TARGET_PREFIX=$QT_HOST_PREFIX | ||
| 60 | +fi | ||
| 61 | + | ||
| 62 | cat > "$outpath/src/corelib/global/qconfig.cpp.new" <<EOF | ||
| 63 | /* License Info */ | ||
| 64 | static const char qt_configure_licensee_str [256 + 12] = "qt_lcnsuser=$Licensee"; | ||
| 65 | @@ -3915,7 +3930,7 @@ static const char qt_configure_installation [12+11] = "qt_instdate=2 | ||
| 66 | static const char qt_configure_prefix_path_str [512 + 12] = "qt_prfxpath=$QT_INSTALL_PREFIX"; | ||
| 67 | #ifdef QT_BUILD_QMAKE | ||
| 68 | static const char qt_configure_ext_prefix_path_str [512 + 12] = "qt_epfxpath=$QT_EXT_PREFIX"; | ||
| 69 | -static const char qt_configure_host_prefix_path_str [512 + 12] = "qt_hpfxpath=$QT_HOST_PREFIX"; | ||
| 70 | +static const char qt_configure_host_prefix_path_str [512 + 12] = "qt_hpfxpath=$QT_TARGET_PREFIX"; | ||
| 71 | #endif | ||
| 72 | |||
| 73 | static const short qt_configure_str_offsets[] = { | ||
| 74 | -- | ||
| 75 | 2.1.0 | ||
| 76 | |||
diff --git a/recipes-qt/qt5/qtbase/0008-Always-build-uic.patch b/recipes-qt/qt5/qtbase/0009-Always-build-uic.patch index 359be5fb..359be5fb 100644 --- a/recipes-qt/qt5/qtbase/0008-Always-build-uic.patch +++ b/recipes-qt/qt5/qtbase/0009-Always-build-uic.patch | |||
diff --git a/recipes-qt/qt5/qtbase/0009-Add-external-hostbindir-option-for-native-sdk.patch b/recipes-qt/qt5/qtbase/0010-Add-external-hostbindir-option-for-native-sdk.patch index 4d654a44..4d654a44 100644 --- a/recipes-qt/qt5/qtbase/0009-Add-external-hostbindir-option-for-native-sdk.patch +++ b/recipes-qt/qt5/qtbase/0010-Add-external-hostbindir-option-for-native-sdk.patch | |||
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index e504ab7f..7ee5f562 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
| @@ -19,6 +19,7 @@ SRC_URI += "\ | |||
| 19 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 19 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 20 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 20 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ |
| 21 | file://0007-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch \ | 21 | file://0007-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch \ |
| 22 | file://0008-configure-paths-for-target-qmake-properly.patch \ | ||
| 22 | " | 23 | " |
| 23 | 24 | ||
| 24 | DEPENDS += "qtbase-native" | 25 | DEPENDS += "qtbase-native" |
