summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase_git.bb')
-rw-r--r--recipes-qt/qt5/qtbase_git.bb32
1 files changed, 16 insertions, 16 deletions
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index e845dfe0..310aa761 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -42,7 +42,7 @@ SRC_URI += "\
42LTO = "" 42LTO = ""
43 43
44# for syncqt 44# for syncqt
45RDEPENDS_${PN}-tools += "perl" 45RDEPENDS:${PN}-tools += "perl"
46 46
47# separate some parts of PACKAGECONFIG which are often changed 47# separate some parts of PACKAGECONFIG which are often changed
48PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', 'no-opengl', d)}" 48PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', 'no-opengl', d)}"
@@ -165,8 +165,8 @@ QT_CONFIG_FLAGS_GOLD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-
165# OE @ ~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype $ i586-oe-linux-g++ -m32 -march=i586 --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -fuse-ld=bfd -Wl,--enable-new-dtags -o tst_qmetatype .obj/tst_qmetatype.o -L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib -lQt5Test -lQt5Core -lpthread 165# OE @ ~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype $ i586-oe-linux-g++ -m32 -march=i586 --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -fuse-ld=bfd -Wl,--enable-new-dtags -o tst_qmetatype .obj/tst_qmetatype.o -L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib -lQt5Test -lQt5Core -lpthread
166# 166#
167# http://errors.yoctoproject.org/Errors/Details/150329/ 167# http://errors.yoctoproject.org/Errors/Details/150329/
168# QT_CONFIG_FLAGS_GOLD_x86 = "-no-use-gold-linker" 168# QT_CONFIG_FLAGS_GOLD:x86 = "-no-use-gold-linker"
169# LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" 169# LDFLAGS:append:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
170 170
171# since the upgrade to 5.12.2 this got worse, with gold enabled configure will no longer pass the test for xlib 171# since the upgrade to 5.12.2 this got worse, with gold enabled configure will no longer pass the test for xlib
172# because with full paths to libraries since qtbase commit 521a85395 it fails to link with 172# because with full paths to libraries since qtbase commit 521a85395 it fails to link with
@@ -176,9 +176,9 @@ QT_CONFIG_FLAGS_GOLD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-
176# resulting in do_configure failure: 176# resulting in do_configure failure:
177# http://errors.yoctoproject.org/Errors/Details/237856/ 177# http://errors.yoctoproject.org/Errors/Details/237856/
178QT_CONFIG_FLAGS_GOLD = "-no-use-gold-linker" 178QT_CONFIG_FLAGS_GOLD = "-no-use-gold-linker"
179LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" 179LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
180 180
181LDFLAGS_append_riscv64 = " -pthread" 181LDFLAGS:append:riscv64 = " -pthread"
182 182
183QT_CONFIG_FLAGS += " \ 183QT_CONFIG_FLAGS += " \
184 ${QT_CONFIG_FLAGS_GOLD} \ 184 ${QT_CONFIG_FLAGS_GOLD} \
@@ -189,9 +189,9 @@ QT_CONFIG_FLAGS += " \
189 ${PACKAGECONFIG_CONFARGS} \ 189 ${PACKAGECONFIG_CONFARGS} \
190" 190"
191 191
192export CC_host_toolchain-clang = "clang" 192export CC_host:toolchain-clang = "clang"
193export CXX_host_toolchain-clang = "clang++" 193export CXX_host:toolchain-clang = "clang++"
194export LD_host_toolchain-clang = "clang++" 194export LD_host:toolchain-clang = "clang++"
195export CC_host ?= "gcc" 195export CC_host ?= "gcc"
196export CXX_host ?= "g++" 196export CXX_host ?= "g++"
197export LD_host ?= "g++" 197export LD_host ?= "g++"
@@ -200,13 +200,13 @@ export LD_host ?= "g++"
200# since we cannot set empty set filename to a not existent file 200# since we cannot set empty set filename to a not existent file
201deltask generate_qt_config_file 201deltask generate_qt_config_file
202 202
203XPLATFORM_toolchain-clang = "linux-oe-clang" 203XPLATFORM:toolchain-clang = "linux-oe-clang"
204XPLATFORM ?= "linux-oe-g++" 204XPLATFORM ?= "linux-oe-g++"
205 205
206# Causes qdrawhelper.s: Error: unaligned opcodes detected in executable segment 206# Causes qdrawhelper.s: Error: unaligned opcodes detected in executable segment
207# when building qtbase/5.6.3+gitAUTOINC+e6f8b072d2-r0/git/src/gui/painting/qdrawhelper.cpp 207# when building qtbase/5.6.3+gitAUTOINC+e6f8b072d2-r0/git/src/gui/painting/qdrawhelper.cpp
208ARM_INSTRUCTION_SET_armv4 = "arm" 208ARM_INSTRUCTION_SET:armv4 = "arm"
209ARM_INSTRUCTION_SET_armv5 = "arm" 209ARM_INSTRUCTION_SET:armv5 = "arm"
210 210
211do_configure() { 211do_configure() {
212 # Regenerate header files when they are included in source tarball 212 # Regenerate header files when they are included in source tarball
@@ -244,7 +244,7 @@ do_configure() {
244 ${QT_CONFIG_FLAGS} 244 ${QT_CONFIG_FLAGS}
245} 245}
246 246
247do_install_append() { 247do_install:append() {
248 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" 248 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory"
249 touch ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/oe-device-extra.pri 249 touch ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/oe-device-extra.pri
250 250
@@ -283,21 +283,21 @@ do_install_append() {
283} 283}
284 284
285# mkspecs have mac specific scripts that depend on perl and bash 285# mkspecs have mac specific scripts that depend on perl and bash
286INSANE_SKIP_${PN}-mkspecs += "file-rdeps" 286INSANE_SKIP:${PN}-mkspecs += "file-rdeps"
287 287
288RRECOMMENDS_${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}" 288RRECOMMENDS:${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}"
289 289
290TARGET_MKSPEC ?= "linux-g++" 290TARGET_MKSPEC ?= "linux-g++"
291 291
292# use clean mkspecs on target 292# use clean mkspecs on target
293pkg_postinst_${PN}-tools () { 293pkg_postinst:${PN}-tools () {
294sed -i \ 294sed -i \
295 -e 's:HostSpec =.*:HostSpec = ${TARGET_MKSPEC}:g' \ 295 -e 's:HostSpec =.*:HostSpec = ${TARGET_MKSPEC}:g' \
296 -e 's:TargetSpec =.*:TargetSpec = ${TARGET_MKSPEC}:g' \ 296 -e 's:TargetSpec =.*:TargetSpec = ${TARGET_MKSPEC}:g' \
297 $D${OE_QMAKE_PATH_BINS}/qt.conf 297 $D${OE_QMAKE_PATH_BINS}/qt.conf
298} 298}
299 299
300pkg_postinst_${PN}-mkspecs () { 300pkg_postinst:${PN}-mkspecs () {
301sed -i 's: cross_compile : :g' $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qconfig.pri 301sed -i 's: cross_compile : :g' $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qconfig.pri
302sed -i \ 302sed -i \
303 -e 's: cross_compile : :g' \ 303 -e 's: cross_compile : :g' \