Commit Graph

369 Commits

Author SHA1 Message Date
Samuli Piippo
554b947ba4 sdk: support cmake builds on Windows
CMake and Ninja combination does not support changing RPATH on Windows hosts,
even when cross-compiling. Add CMake configuration to workaround this.

Pick-to: 6.3 6.2
Change-Id: I5d82c0a7f91cf81a0b3ed7c0f14aeccc36464f91
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-16 08:09:35 +00:00
Samuli Piippo
3d122c668c qtbase: enable scripts for mingw toolchain
Make sure the qt-cmake* helper scripts get correctly created
for mingw toolchains.

Pick-to: 6.3 6.2
Change-Id: I0ec6c4e12abf375677226ea32a6c36066a990f3b
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-16 08:09:30 +00:00
Samuli Piippo
ab0d93e29e Coin: add static test build
Build Qt staticially with examples enabled but tests disabled.
We don't want to remove ptest from DISTRO_FEATURE, because that
would cause rebuild of most system components as well.

Pick-to: 6.3 6.2
Change-Id: Ic1181d09951ee5d50b08182600f0664b8859afcc
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-15 11:19:57 +02:00
Mikko Gronoff
a9011cf6cd qmlcompilerplus: Add pending upstream patch
The latest dev branch submodule update causes
build break in qmlcompilerplus module. Add pending
reviewed upstream patch to fix issue:

"error: invalid initialization of reference of type ‘QQmlJSScope::ConstPtr&’
{aka ‘QDeferredSharedPointer<const QQmlJSScope>&’} from expression of type ‘QQmlJSRegisterContent’"

Change-Id: Id750838347ccd17a2cc6e336375ea6df1e7d14fb
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-03-12 07:50:46 +02:00
Samuli Piippo
a1b6233b65 qtdeclarative: update patch
Change-Id: Ie993de39fa7838c3cec41febaae131fa01b6af0d
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
(cherry picked from commit 2d7b5b5572)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2022-03-12 05:50:32 +00:00
Samuli Piippo
f4cbbfeb8e qtbase: remove merged patches
Change-Id: I455262b28b964d7933ed2883baac07056540ac87
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-12 07:50:17 +02:00
Qt Submodule Update Bot
eb4f03276f Update submodule refs on 'dev' in yocto/meta-qt6
Change-Id: I24df40dc7f0d3681f7fc428b851779e89143170e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2022-03-12 05:49:55 +00:00
Samuli Piippo
a64c978983 Create Conan profile
Generate Conan profiles that can then be used with the SDK.
Task in qtbase generates profile that has all the architecture bits
and configure arguments in place. The profile added in the SDK phase
lets Conan recipes know how to use the SDK with the QT_CONFIGURE_MODULE
environment variable.

Pick-to: 6.3 6.2
Change-Id: I33a9b0f3915417d98ad12559ce7661c92b1cc739
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
2022-03-10 08:10:47 +02:00
Samuli Piippo
f80f96848d licenses: add SPDX license mapping to old license names
The common license files have been renamed to use SPDX names, but we
still support some older yocto branches that use the old names.
Add mapping to allow building with older yocto version after the
recipes are updated to the new license names. This avoid warnings:
No generic license file exists for: GPL-3.0-only in any provider

Pick-to: 6.3 6.2
Change-Id: Ib93baf9027442e69ab5bce294449bd203d9be2aa
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-06 11:12:17 +00:00
Martin Jansa
d26bf4af06 meta: update license names
* openembedded-core/scripts/contrib/convert-spdx-licenses.py .
  ...
  All files processed with version 0.01

Pick-to: 6.3 6.2
Change-Id: Ife671a597eea9e1567d2b37d0aea25cc0b8e9012
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-06 11:12:13 +00:00
Justin Bronder
365807e1ae python3-pytest-qt: add 4.0.2
Add pytest support for PyQt and PySide applications.  This was merged to
meta-qt5 in https://github.com/meta-qt5/meta-qt5/pull/448.

Change-Id: I9e21ad89f0be1b8d2f488ed6ad80c13719fa6fbd
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-03-06 06:12:05 -05:00
Samuli Piippo
d1ffa135a7 ptest: fix packaging of test data
Use correct path for the test sources and data.

Pick-to: 6.3
Change-Id: I90f14130dce7f3b5ef3ae45dbdd60540c795ba9e
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-06 11:11:54 +00:00
Samuli Piippo
6492c16955 srcrev_update: fix update task with latest fetcher
Additional check was added into the bb.fetcher that needs to be
workaround in srcrev_update task. Otherwise task will fail with
error:

Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a
floating tag/branch without a fixed SRCREV yet doesn't call
bb.fetch2.get_srcrev() (use SRCPV in PV for OE).

Pick-to: 6.3 6.2
Change-Id: Ib3c2665257c344c312074519a03d96437866cd8d
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-04 07:06:21 +00:00
Samuli Piippo
0ef2348d49 sdk: resolve absolute paths in toolchain file at runtime
MinGW toolchain doesn't perform relocation during installation,
so all the absolute path point to the temporary sdk paths.
Use the location of the toolchain file to get the absolute
paths at runtime instead instead of using external SDKPATH
env for it.

Change-Id: I699b2178baf5cc855a57186056341b6c6eefbbf5
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-03-04 07:06:13 +00:00
Samuli Piippo
5cbac6cf35 sdk: rewrite cmake toolchain file without environment variables
The default OEToolchainConfig.cmake uses environment variables
to set all the cmake variables in place. The Qt6Toolchain.cmake
chainloaded the same toolchain file after setting everything to env.

Rewrite the Qt6Toolchain.cmake now to set all the cmake variables
directly without using environment variables or chainloading
the origin OEToolchainConfig.cmake.

This allow better integration to QtCreator that might be used
to modify the compiler flags for projects.

Change-Id: I7c7c42ec17c86f53b62ed557d9b61d5d19abc1e0
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-04 07:05:59 +00:00
Samuli Piippo
ba348447dc qtmultimedia: update PACKAGECONFIGs
QtMultimedia is again using plugins for different backends
and they can be enabled at the same time. Add PACKAGECONFIGs
for ffmpeg and vaapi backends. Remove vivante workaround,
it's no longer needed.

Default still to gstreamer only. The ffmpeg integration is done
to v4.4 and does not work with later versions.

Change-Id: Ica8f46ceca0ef61caa300b3e23269de062575efc
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-03 18:53:02 +00:00
Samuli Piippo
ae90e4457e qtbase: fix QHash build for x86
Change-Id: I23453cd41123c02283fc5c2f10e991f0aaa75006
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-03 18:52:50 +00:00
Samuli Piippo
8ff564fb98 qtbase: fix qsimd build for x86
Temporary fix until merged in qtbase.

Change-Id: Ie660b3d19222e48cd3fd2512cc37f51fd07ca475
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-03 18:52:43 +00:00
Mikko Gronoff
20f186a3ce qtwebview: update license & checksums
Change-Id: I061c2c6a2267fea2bb8c613de2da0c33a5059446
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit 89ba83fa7a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2022-03-03 18:52:36 +00:00
Mikko Gronoff
5d2abdfebb qtbase: update license agreement checksum
Change-Id: I76d6a0a4576d3a8430060d42845e4ca4b5fd7219
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit e0436d24f3)
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-03-03 18:52:28 +00:00
Qt Submodule Update Bot
40c87fd58d Update submodule refs on 'dev' in yocto/meta-qt6
Change-Id: Ie4479184b18f0ff67edb32a56b964e6c23e67753
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2022-03-03 18:52:19 +00:00
Samuli Piippo
d36033ca56 layer: use the same priority as the core layer
Some of the python3 recipes we carry are already in meta-python
layer, but not in all the branches that we support. In order to use
the most recent recipe, we need to have same or lower BBFILE_PRIORITY
than meta-python. Depending on the branch, meta-python's priority is
either same or higher than the core layer's priority.

Pick-to: 6.3 6.2 6.2.4
Change-Id: I98c74858c5be69e45a76a45ed10aa1168c614618
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-03-03 10:53:34 +00:00
Samuli Piippo
3ff5acc752 layers: Bump to use kirkstone
Pick-to: 6.3 6.2
Fixes: QTBUG-101142
Change-Id: I85c5dbbfc10184108514dd01a3255018c0dc3db4
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-24 09:36:49 +00:00
Samuli Piippo
2d4825f309 Coin: adapt to variable renaming
In kirkstone, some of the variable have been renamed to
use inclusive language.

Pick-to: 6.3 6.2
Change-Id: Ic03fc3a748ea6a4e3e510040b9cd6b5e038d4662
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-24 09:36:41 +00:00
Samuli Piippo
0708a33ea6 Coin: use include files for configuration
Restructure the Coin build configs so that all configurations
are already in .inc files that can be easily included.

Pick-to: 6.3 6.2
Change-Id: I93d74254804b7d17106a3f08af2973464e669928
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-24 09:36:33 +00:00
Samuli Piippo
28c7a28568 qtbase: update patch
Update patch to apply cleanly again.

Pick-to: 6.3
Change-Id: I235a321bdf05e6d74871f204dd154929478ecc3c
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-15 10:25:52 +02:00
Samuli Piippo
b2ccd0bd60 sdk: workaround failing nativesdk-python3-qface build
meta-openembedded/master has issues building certain python3
modules for nativesdk. For python3-qface, failure is from dependency
chain: nativesdk-python3-qface
 -> nativesdk-python3-watchdog
  -> nativesdk-python3-requests
   -> nativesdk-python3-pyopenssl
    -> nativesdk-python3-cryptography

Don't include qtinterfaceframework to sdk when using master branch
with poky until all modules can be built correctly.

Pick-to: 6.3 6.2
Change-Id: Id2837f1363a22cb28e45c1165631cfa3f37756a7
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-14 07:17:15 +00:00
Samuli Piippo
9471cb966f qtquickdesigner-components: add dependency to native-qtdeclarative
native-qtdeclarative is needed to take advantage of qmlcachegen
and qml script compiler.

Pick-to: 6.3 6.2
Change-Id: Ie78b3401a1f4dfe252970f8c0b1dea70c0c0c954
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-14 07:17:02 +00:00
Qt Submodule Update Bot
96de92b5cb Update submodule refs on 'dev' in yocto/meta-qt6
Change-Id: I832aefbdc0375442cec247eb70e8397084aa1fff
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2022-02-12 11:50:40 +00:00
Samuli Piippo
c537067d9a qtdeclarative: re-enable ptest
This reverts commit fff02af10d.
Auto test build issue has been fixed.

Change-Id: I55ef6f7aec1a5695089b1fb62e5b6aafb4299d70
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit 48caadfe1b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2022-02-11 13:18:21 +00:00
Samuli Piippo
c40d7810c6 Revert "qtbase: fix mingw nativesdk build"
This reverts commit 68bd9cee63.
Proper fix has been merged to qtbase.

Change-Id: I394bc594d2b4d9b90b98f530d65703b4352afa29
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit 85e55e5629)
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-11 15:18:08 +02:00
Samuli Piippo
df191c5ccf qtbase: remove unneeded patch
Catch2 was updated in qtbase, patch is no longer needed.

Change-Id: I762e27a49ddcc325c5911e36bb65aab24b0b78cb
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit 9080dc9fe0)
2022-02-11 15:18:04 +02:00
Samuli Piippo
b5d908c8a8 qtwebengine: update patch
Change-Id: I4b521099b2283943b893d841c5f2d12e2fbbce01
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit 2394565194)
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-02-11 13:17:55 +00:00
Samuli Piippo
e406469ad3 qtapplicationmanager: update revision
Change-Id: Icd7d5f65244ea5b941a77b21b1aa8094a72fac4c
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2022-02-11 15:17:43 +02:00
Qt Submodule Update Bot
2c546124d5 Update submodule refs on 'dev' in yocto/meta-qt6
Change-Id: I6ece10557997ffd9d67aaa94a21dfd9663e6195e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2022-02-11 13:17:38 +00:00
Samuli Piippo
154c396c57 licenses: be explicit about BSD license
All references here to BSD actually mean BSD-3-Clause.

Pick-to: 6.3 6.2
Change-Id: Iec43070c5245d053259c215311f238989741c85d
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-10 09:26:57 +02:00
Samuli Piippo
e78c281c0a sdk: use relativate path with cmake toolchain file
Paths in mingw toolchain are not relocated when installed, so we
need to use relative path for the Qt6Toolchain.cmake file.

Fixes: QTBUG-100642
Pick-to: 6.3 6.2
Change-Id: I48542f20f4443c8130f89c2436f5b0ecea914bb0
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-10 09:26:51 +02:00
Jani Heikkinen
92b8d16b73 Fix a bug in LA 4.4
Fixes: QTPMO-1479
Pick-to: 6.3 6.2
Change-Id: I86eefc98ad663141de840d54d713ef029ee28291
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-02-09 20:16:50 +02:00
Mikko Gronoff
e4e5b75e22 qtquickdesigner-components: update module
Update to latest revision in dev branch.

Pick-to: 6.3 6.2
Change-Id: If12c3f3071f208c2ab1e1a5d63697b2e9a071c57
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-02-09 11:54:47 +02:00
Samuli Piippo
a730a1f029 ptest: allow ptest to be disabled for all Qt modules
For static Qt builds, it's useful to allow disabling ptest for all
Qt modules without removing ptest from DISTRO_FEATURES, since that
would cause rebuild of most of the system components.

Pick-to: 6.3 6.2
Change-Id: I32aa202ce8e4a1260e287b0625495ef828536511
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-04 05:33:30 +00:00
Samuli Piippo
688791f03d Coin: use manifest to fetch meta layers
Use manifests to fetch meta layer repositories. This enables
us to easily pin the upstream layers to specific revision if
and when the latest revision gets broken.

Build again against master branch, the manifest is pinned to
working meta-openembedded revision.

Pick-to: 6.3 6.2
Change-Id: I5d217f6932aaf5eaacae8ccbc790ea31aaa27f37
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-01 19:18:25 +02:00
Jani Heikkinen
7017b2f1f6 Update The-Qt-Company-Commercial
Newest version is 4.4 so update it in the git as well

Task-number: QTBUG-98971
Pick-to: 6.3 6.2
Change-Id: I3b2086857e7c9b9cf7d44a40c080ae6bd03ca927
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-02-01 12:01:33 +02:00
Samuli Piippo
e6fda09a6f qtpdf: force remove conflicting files
QtPDF does not support static builds, but the build still passes
ok in bitbake builds. Use force when removing the files, since they
don't exists in static builds.

Pick-to: 6.3
Change-Id: I50cce6e277c25c32aa98804d5f3de6d25df12b25
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
2022-02-01 06:01:05 +00:00
Samuli Piippo
c8499a81b5 qt6: add packaging rule for static plugins
Pick-to: 6.3 6.2
Change-Id: I7f511470d3de6ae25eb4631de38b18fe347bcdfd
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
2022-02-01 06:00:59 +00:00
Samuli Piippo
7e1e9f892e qtinterfaceframework: fix packaging for static builds
In static builds, we can't have the extra simulation and refapi packages
first on the list, since the static libs would end up there as well.
Use PACKAGE_BEFORE_PN to add the packages in proper order.

Pick-to: 6.3 6.2
Change-Id: I35976b90b12137caa7b7044f4aef40c229c75783
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
2022-02-01 06:00:53 +00:00
Samuli Piippo
cbac31ee90 qt6-cmake: inherit pkgconfig
Static build needs pkgconfig for every Qt module. Include it already
in qt6-cmake class instead of in each individual module.

Pick-to: 6.3 6.2
Change-Id: I065382ee49d6b40b76ede9e632d17221451de8d1
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
2022-02-01 06:00:46 +00:00
Samuli Piippo
d6a37cc62e qt6: bump version to 6.4.0
Change-Id: Ic8538c3d961c7b83bf1cbbebd097313a9e9f7070
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-02-01 08:00:34 +02:00
Qt Submodule Update Bot
34d5da001d Update submodule refs on 'dev' in yocto/meta-qt6
Change-Id: Ic9ef9cb0ae55531069ff61de8d6b2be89df4e08a
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2022-01-31 06:53:12 +00:00
Samuli Piippo
81daff59ce qtwebengine: update license checksum
Pick-to: 6.3 6.2
Change-Id: I9e19340b783fefd3cb3ea9d523354e022e131638
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-01-31 08:53:00 +02:00
Samuli Piippo
fff02af10d qtdeclarative: disable ptest
ptest compilation fails when using older CMake. Disable until
fixed properly.

Task-number: QTBUG-100314
Change-Id: Ie00e9fe62a1b4f2e94d47eb3d672d27fee7965f5
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2022-01-31 08:52:42 +02:00