diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase_git.bb')
-rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 32 |
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 += "\ | |||
42 | LTO = "" | 42 | LTO = "" |
43 | 43 | ||
44 | # for syncqt | 44 | # for syncqt |
45 | RDEPENDS_${PN}-tools += "perl" | 45 | RDEPENDS:${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 |
48 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', 'no-opengl', d)}" | 48 | PACKAGECONFIG_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/ |
178 | QT_CONFIG_FLAGS_GOLD = "-no-use-gold-linker" | 178 | QT_CONFIG_FLAGS_GOLD = "-no-use-gold-linker" |
179 | LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | 179 | LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
180 | 180 | ||
181 | LDFLAGS_append_riscv64 = " -pthread" | 181 | LDFLAGS:append:riscv64 = " -pthread" |
182 | 182 | ||
183 | QT_CONFIG_FLAGS += " \ | 183 | QT_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 | ||
192 | export CC_host_toolchain-clang = "clang" | 192 | export CC_host:toolchain-clang = "clang" |
193 | export CXX_host_toolchain-clang = "clang++" | 193 | export CXX_host:toolchain-clang = "clang++" |
194 | export LD_host_toolchain-clang = "clang++" | 194 | export LD_host:toolchain-clang = "clang++" |
195 | export CC_host ?= "gcc" | 195 | export CC_host ?= "gcc" |
196 | export CXX_host ?= "g++" | 196 | export CXX_host ?= "g++" |
197 | export LD_host ?= "g++" | 197 | export 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 |
201 | deltask generate_qt_config_file | 201 | deltask generate_qt_config_file |
202 | 202 | ||
203 | XPLATFORM_toolchain-clang = "linux-oe-clang" | 203 | XPLATFORM:toolchain-clang = "linux-oe-clang" |
204 | XPLATFORM ?= "linux-oe-g++" | 204 | XPLATFORM ?= "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 |
208 | ARM_INSTRUCTION_SET_armv4 = "arm" | 208 | ARM_INSTRUCTION_SET:armv4 = "arm" |
209 | ARM_INSTRUCTION_SET_armv5 = "arm" | 209 | ARM_INSTRUCTION_SET:armv5 = "arm" |
210 | 210 | ||
211 | do_configure() { | 211 | do_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 | ||
247 | do_install_append() { | 247 | do_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 |
286 | INSANE_SKIP_${PN}-mkspecs += "file-rdeps" | 286 | INSANE_SKIP:${PN}-mkspecs += "file-rdeps" |
287 | 287 | ||
288 | RRECOMMENDS_${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}" | 288 | RRECOMMENDS:${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}" |
289 | 289 | ||
290 | TARGET_MKSPEC ?= "linux-g++" | 290 | TARGET_MKSPEC ?= "linux-g++" |
291 | 291 | ||
292 | # use clean mkspecs on target | 292 | # use clean mkspecs on target |
293 | pkg_postinst_${PN}-tools () { | 293 | pkg_postinst:${PN}-tools () { |
294 | sed -i \ | 294 | sed -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 | ||
300 | pkg_postinst_${PN}-mkspecs () { | 300 | pkg_postinst:${PN}-mkspecs () { |
301 | sed -i 's: cross_compile : :g' $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qconfig.pri | 301 | sed -i 's: cross_compile : :g' $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qconfig.pri |
302 | sed -i \ | 302 | sed -i \ |
303 | -e 's: cross_compile : :g' \ | 303 | -e 's: cross_compile : :g' \ |