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>
This commit is contained in:
Samuli Piippo 2022-01-31 16:14:21 +00:00
parent 28c7a28568
commit 0708a33ea6
6 changed files with 20 additions and 24 deletions

View File

@ -32,8 +32,8 @@ target1: &target1
variableName: MANIFEST
variableValue: master.xml
- type: EnvironmentVariable
variableName: DISABLE_X11
variableValue: true
variableName: TEST_CONFIGS
variableValue: ci configs wayland
enable_if:
condition: property
property: target.arch
@ -48,11 +48,8 @@ target2: &target2
variableName: MANIFEST
variableValue: honister.xml
- type: EnvironmentVariable
variableName: DISABLE_X11
variableValue: true
- type: EnvironmentVariable
variableName: MINGW
variableValue: true
variableName: TEST_CONFIGS
variableValue: ci configs wayland mingw
enable_if:
condition: property
property: target.arch
@ -66,6 +63,9 @@ target3: &target3
- type: EnvironmentVariable
variableName: MANIFEST
variableValue: hardknott.xml
- type: EnvironmentVariable
variableName: TEST_CONFIGS
variableValue: ci configs
enable_if:
condition: property
property: target.arch
@ -79,6 +79,9 @@ target4: &target4
- type: EnvironmentVariable
variableName: MANIFEST
variableValue: dunfell.xml
- type: EnvironmentVariable
variableName: TEST_CONFIGS
variableValue: ci configs no-webengine
enable_if:
condition: property
property: target.arch
@ -123,27 +126,15 @@ instructions:
./repo sync
source ./poky/oe-init-build-env
export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SSTATE_DIR DL_DIR"
export DL_DIR=/mnt/yocto-cache/downloads
export BB_GENERATE_MIRROR_TARBALLS=1
export BB_NUMBER_THREADS=8
DISTRO_CODENAME=$(sed -n -e "s/DISTRO_CODENAME.*\"\(.*\)\"/\1/p" ../poky/meta-*/conf/distro/poky.conf)
export SSTATE_DIR=/mnt/yocto-cache/sstate-caches/${DISTRO_CODENAME}-meta-qt6
bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-openembedded/meta-python
bitbake-layers add-layer ../meta-openembedded/meta-multimedia
bitbake-layers add-layer ../meta-mingw
bitbake-layers add-layer ${SOURCE_DIR}
if [ -n "${DISABLE_X11}" ] ; then
echo "DISTRO_FEATURES:remove = \"x11\"" >> conf/local.conf
fi
if [ -n "${MINGW}" ]; then
export SDKMACHINE=x86_64-mingw32
fi
echo "require ${SOURCE_DIR}/coin/test-configs.inc" >> conf/local.conf
echo "include ${SOURCE_DIR}/coin/test-${DISTRO_CODENAME}.inc" >> conf/local.conf
for conf in ${TEST_CONFIGS}; do
echo "require ${SOURCE_DIR}/coin/test-${conf}.inc" >> conf/local.conf
done
# build toolchain which should include all supported recipes
bitbake meta-toolchain-qt6 nativesdk-packagegroup-qt6-toolchain-host packagegroup-qt6-modules

4
coin/test-ci.inc Normal file
View File

@ -0,0 +1,4 @@
SSTATE_DIR = "/mnt/yocto-cache/sstate-caches/${DISTRO_CODENAME}-meta-qt6"
DL_DIR = "/mnt/yocto-cache/downloads"
BB_GENERATE_MIRROR_TARBALLS = "1"
BB_NUMBER_THREADS = "8"

View File

@ -6,8 +6,6 @@ DISTRO_FEATURES:append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""
# use wayland
DISTRO_FEATURES:append = " wayland"
INHERIT += "buildstats buildstats-summary"
INHERIT += "rm_work"

1
coin/test-mingw.inc Normal file
View File

@ -0,0 +1 @@
SDKMACHINE = "x86_64-mingw32"

2
coin/test-wayland.inc Normal file
View File

@ -0,0 +1,2 @@
DISTRO_FEATURES:remove = "x11"
DISTRO_FEATURES:append = " wayland"