mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
coin: add CI build without opengl
Test build without opengl and wayland in DISTRO_FEATURES. The default qtbase configuration depends on these DISTRO_FEATURES and not all modules are available without opengl or wayland. Rework coin configs to enable features when needed. Change-Id: I20b55f46f7ead0a5d1e0f7d7c98ff9e2aaa83d87 Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
This commit is contained in:
parent
4cacc39a20
commit
6da7dbdbf4
|
|
@ -7,7 +7,7 @@ accept_configuration:
|
||||||
equals_value: Yocto
|
equals_value: Yocto
|
||||||
- condition: property
|
- condition: property
|
||||||
property: target.arch
|
property: target.arch
|
||||||
in_values: [TARGET1, TARGET2, TARGET3, TARGET4, TARGET5]
|
in_values: [TARGET1, TARGET2, TARGET3, TARGET4, TARGET5, TARGET6]
|
||||||
|
|
||||||
machine_type:
|
machine_type:
|
||||||
Build:
|
Build:
|
||||||
|
|
@ -15,12 +15,14 @@ machine_type:
|
||||||
|
|
||||||
# Target build matrix:
|
# Target build matrix:
|
||||||
#
|
#
|
||||||
# [target1] [target2] [target3] [target4] [target5]
|
# [target1] [target2] [target3] [target4] [target5] [target6]
|
||||||
# [machine] qemuarm64 qemux86-64 qemuarm qemux86 qemuarm64
|
# [machine] qemuarm64 qemux86-64 qemuarm qemux86 qemuarm64 qemuarm64
|
||||||
# [yocto] master walnascar scarthgap styhead scarthgap
|
# [yocto] master walnascar scarthgap styhead scarthgap master
|
||||||
# [wayland] yes no no yes yes
|
# [wayland] yes no yes yes yes no
|
||||||
# [mingw] no no yes no no
|
# [x11] no yes yes no no yes
|
||||||
# [static] no no no no yes
|
# [opengl] yes yes yes yes yes no
|
||||||
|
# [mingw] no no yes no no no
|
||||||
|
# [static] no no no no yes no
|
||||||
#
|
#
|
||||||
|
|
||||||
target1: &target1
|
target1: &target1
|
||||||
|
|
@ -34,7 +36,7 @@ target1: &target1
|
||||||
variableValue: master.xml
|
variableValue: master.xml
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: TEST_CONFIGS
|
variableName: TEST_CONFIGS
|
||||||
variableValue: ci configs wayland
|
variableValue: ci configs wayland opengl
|
||||||
enable_if:
|
enable_if:
|
||||||
condition: property
|
condition: property
|
||||||
property: target.arch
|
property: target.arch
|
||||||
|
|
@ -50,7 +52,7 @@ target2: &target2
|
||||||
variableValue: walnascar.xml
|
variableValue: walnascar.xml
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: TEST_CONFIGS
|
variableName: TEST_CONFIGS
|
||||||
variableValue: ci configs
|
variableValue: ci configs x11 opengl
|
||||||
enable_if:
|
enable_if:
|
||||||
condition: property
|
condition: property
|
||||||
property: target.arch
|
property: target.arch
|
||||||
|
|
@ -66,7 +68,7 @@ target3: &target3
|
||||||
variableValue: scarthgap.xml
|
variableValue: scarthgap.xml
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: TEST_CONFIGS
|
variableName: TEST_CONFIGS
|
||||||
variableValue: ci configs mingw
|
variableValue: ci configs mingw wayland x11 opengl
|
||||||
enable_if:
|
enable_if:
|
||||||
condition: property
|
condition: property
|
||||||
property: target.arch
|
property: target.arch
|
||||||
|
|
@ -82,7 +84,7 @@ target4: &target4
|
||||||
variableValue: styhead.xml
|
variableValue: styhead.xml
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: TEST_CONFIGS
|
variableName: TEST_CONFIGS
|
||||||
variableValue: ci configs wayland no-webengine
|
variableValue: ci configs wayland opengl
|
||||||
enable_if:
|
enable_if:
|
||||||
condition: property
|
condition: property
|
||||||
property: target.arch
|
property: target.arch
|
||||||
|
|
@ -98,11 +100,27 @@ target5: &target5
|
||||||
variableValue: scarthgap.xml
|
variableValue: scarthgap.xml
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: TEST_CONFIGS
|
variableName: TEST_CONFIGS
|
||||||
variableValue: ci configs wayland static no-webengine
|
variableValue: ci configs wayland opengl static
|
||||||
enable_if:
|
enable_if:
|
||||||
condition: property
|
condition: property
|
||||||
property: target.arch
|
property: target.arch
|
||||||
equals_value: TARGET5
|
equals_value: TARGET5
|
||||||
|
target6: &target6
|
||||||
|
type: Group
|
||||||
|
instructions:
|
||||||
|
- type: EnvironmentVariable
|
||||||
|
variableName: MACHINE
|
||||||
|
variableValue: qemuarm64
|
||||||
|
- type: EnvironmentVariable
|
||||||
|
variableName: MANIFEST
|
||||||
|
variableValue: master.xml
|
||||||
|
- type: EnvironmentVariable
|
||||||
|
variableName: TEST_CONFIGS
|
||||||
|
variableValue: ci configs x11
|
||||||
|
enable_if:
|
||||||
|
condition: property
|
||||||
|
property: target.arch
|
||||||
|
equals_value: TARGET6
|
||||||
|
|
||||||
instructions:
|
instructions:
|
||||||
Build:
|
Build:
|
||||||
|
|
@ -111,6 +129,7 @@ instructions:
|
||||||
- *target3
|
- *target3
|
||||||
- *target4
|
- *target4
|
||||||
- *target5
|
- *target5
|
||||||
|
- *target6
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: DL_DIR
|
variableName: DL_DIR
|
||||||
variableValue: "/mnt/yocto-cache/downloads"
|
variableValue: "/mnt/yocto-cache/downloads"
|
||||||
|
|
|
||||||
|
|
@ -40,13 +40,16 @@ PREFERRED_ARM_INSTRUCTION_SET ?= "thumb"
|
||||||
ARM_INSTRUCTION_SET = "${PREFERRED_ARM_INSTRUCTION_SET}"
|
ARM_INSTRUCTION_SET = "${PREFERRED_ARM_INSTRUCTION_SET}"
|
||||||
|
|
||||||
# enable webengine with commercial/proprietary features
|
# enable webengine with commercial/proprietary features
|
||||||
DISTRO_FEATURES:append = " webengine"
|
|
||||||
PACKAGECONFIG:append:pn-qtwebengine = " proprietary-codecs"
|
PACKAGECONFIG:append:pn-qtwebengine = " proprietary-codecs"
|
||||||
|
|
||||||
PACKAGECONFIG:append:pn-qtbase = "\
|
PACKAGECONFIG:append:pn-qtbase = "\
|
||||||
tslib kms gbm zstd libproxy gssapi vulkan mtdev cups \
|
tslib zstd libproxy gssapi mtdev cups \
|
||||||
sql-mysql sql-odbc sql-psql sql-sqlite journald brotli \
|
sql-mysql sql-odbc sql-psql sql-sqlite journald brotli \
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
|
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS:${PN}:append:pn-packagegroup-qt6-modules = " packagegroup-qt6-examples"
|
RDEPENDS:${PN}:append:pn-packagegroup-qt6-modules = " packagegroup-qt6-examples"
|
||||||
|
|
||||||
|
# remove all main features, added back in different builds
|
||||||
|
POKY_DEFAULT_DISTRO_FEATURES:remove = "opengl wayland vulkan"
|
||||||
|
DISTRO_FEATURES_DEFAULT:remove = "x11"
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
DISTRO_FEATURES:remove = "webengine"
|
|
||||||
2
coin/test-opengl.inc
Normal file
2
coin/test-opengl.inc
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
DISTRO_FEATURES:append = " opengl vulkan"
|
||||||
|
DISTRO_FEATURES:append = " webengine"
|
||||||
|
|
@ -2,3 +2,4 @@ PACKAGECONFIG:append:pn-qtbase = " static"
|
||||||
QT_PTEST_ENABLED = "0"
|
QT_PTEST_ENABLED = "0"
|
||||||
PACKAGECONFIG:remove:pn-qtapplicationmanager = "multi-process bubblewrap"
|
PACKAGECONFIG:remove:pn-qtapplicationmanager = "multi-process bubblewrap"
|
||||||
RDEPENDS:${PN}:remove:pn-packagegroup-qt6-modules = "packagegroup-qt6-examples"
|
RDEPENDS:${PN}:remove:pn-packagegroup-qt6-modules = "packagegroup-qt6-examples"
|
||||||
|
DISTRO_FEATURES:remove = "webengine"
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
DISTRO_FEATURES:remove = "x11"
|
|
||||||
DISTRO_FEATURES:append = " wayland"
|
DISTRO_FEATURES:append = " wayland"
|
||||||
|
|
|
||||||
1
coin/test-x11.inc
Normal file
1
coin/test-x11.inc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
DISTRO_FEATURES:append = " x11"
|
||||||
Loading…
Reference in New Issue
Block a user