blob: d2f806b433bc0869dcc79454d526e3fe81f9bbd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
version: 2
tags: ["git"]
accept_configuration:
condition: and
conditions:
- condition: property
property: host.compiler
equals_value: Yocto
- condition: property
property: target.arch
in_values: [TARGET1, TARGET2]
machine_type:
Build:
cores: 16
target1: &target1
type: Group
instructions:
- type: EnvironmentVariable
variableName: MACHINE
variableValue: qcs6490-rb3gen2-vision-kit
- type: EnvironmentVariable
variableName: MANIFEST
variableValue: manifests/default.xml
enable_if:
condition: property
property: target.arch
equals_value: TARGET1
target2: &target2
type: Group
instructions:
- type: EnvironmentVariable
variableName: MACHINE
variableValue: qcs9075-iq-9075-evk
- type: EnvironmentVariable
variableName: MANIFEST
variableValue: manifests/default.xml
enable_if:
condition: property
property: target.arch
equals_value: TARGET2
instructions:
Build:
- *target1
- *target2
- type: EnvironmentVariable
variableName: SOURCE_DIR
variableValue: "{{.SourceDir}}"
- type: SetBuildDirectory
directory: "{{.AgentWorkingDir}}/build"
- type: MakeDirectory
directory: "{{.BuildDir}}"
- type: ChangeDirectory
directory: "{{.BuildDir}}"
- type: WriteFile
fileContents: |
#!/bin/bash -xe
# make hostname unique for NFS
sudo hostname $(hostname -s)-$(date +%s%N)
sudo mkdir -p /mnt/yocto-cache
sudo mount yocto-cache.ci.qt.io:/srv/yocto-cache /mnt/yocto-cache
git -C ${SOURCE_DIR} checkout -b default FETCH_HEAD
curl https://storage.googleapis.com/git-repo-downloads/repo > repo
chmod +x repo
./repo init \
-u ${SOURCE_DIR} \
-m manifests/default.xml \
--reference /mnt/yocto-cache/mirror \
--group all
./repo sync
rm -rf layers/meta-qbsp-qcom
ln -s ${SOURCE_DIR} layers/meta-qbsp-qcom
export EXTRALAYERS="meta-qcom-qim-product-sdk meta-boot2qt/meta-boot2qt meta-qbsp-qcom meta-qt6"
DISTRO=qcom-wayland source ./setup-environment build || true
echo "require ../layers/meta-qt6/coin/test-ci.inc" >> conf/local.conf
echo 'DISTRO_CODENAME="scarthgap"' >> conf/local.conf
echo 'QT_EDITION = "commercial"' >> conf/local.conf
echo 'INHERIT += "internal-build"' >> conf/local.conf
bitbake meta-qbsp-qcom
filename: "{{.BuildDir}}/start-build"
fileMode: 420
- type: ExecuteCommand
command: ["bash", "-xe", "{{.BuildDir}}/start-build"]
maxTimeInSeconds: 43200
maxTimeBetweenOutput: 7200
userMessageOnFailure: "Build failed."
- type: ExecuteCommand
command: ["sudo", "umount", "/mnt/yocto-cache"]
userMessageOnFailure: "Unmounting cache failed."
Test: []
|