blob: aa7ae058bd4a098b2310710079bb88f4b147f8e9 (
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
102
103
|
version: 1
accept_configuration:
condition: and
conditions:
- condition: property
property: host.compiler
equals_value: Yocto
- condition: property
property: target.arch
in_values: [TARGET1, TARGET2, TARGET3, TARGET4, TARGET5]
machine_type:
Build:
cores: 16
environment: &environment
type: Group
instructions:
- type: EnvironmentVariable
variableName: MACHINE
variableValue: apalis-imx6
enable_if:
condition: property
property: target.arch
equals_value: TARGET1
- type: EnvironmentVariable
variableName: MACHINE
variableValue: colibri-imx6ull
enable_if:
condition: property
property: target.arch
equals_value: TARGET2
- type: EnvironmentVariable
variableName: MACHINE
variableValue: imx8qm-mek
enable_if:
condition: property
property: target.arch
equals_value: TARGET3
- type: EnvironmentVariable
variableName: MACHINE
variableValue: imx8mm-lpddr4-evk
enable_if:
condition: property
property: target.arch
equals_value: TARGET4
- type: EnvironmentVariable
variableName: MACHINE
variableValue: jetson-tx2-devkit
enable_if:
condition: property
property: target.arch
equals_value: TARGET5
build_instructions:
- *environment
- type: SetBuildDirectory
directory: "{{.AgentWorkingDir}}/build"
- type: MakeDirectory
directory: "{{.BuildDir}}"
- type: ChangeDirectory
directory: "{{.BuildDir}}"
- type: EnvironmentVariable
variableName: DL_DIR
variableValue: "/mnt/yocto-cache/downloads"
- type: EnvironmentVariable
variableName: SOURCE_DIR
variableValue: "{{.SourceDir}}"
- type: WriteFile
fileContents: |
#!/bin/bash -xe
cat >> /home/qt/.ssh/config <<EOF
Host git.qt.io
IdentityFile "/home/qt/.ssh/test_farm_id_rsa"
EOF
# 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
${SOURCE_DIR}/b2qt-init-build-env init --device ${MACHINE} --reference /mnt/yocto-cache/mirror --internal
source ./setup-environment.sh build
echo "require ${SOURCE_DIR}/coin/ci.inc" >> conf/local.conf
bitbake meta-b2qt-embedded-qbsp
SDKMACHINE=x86_64-mingw32 bitbake meta-b2qt-embedded-qbsp
sudo umount /mnt/yocto-cache
filename: "{{.BuildDir}}/start-build"
fileMode: 420
- type: ExecuteCommand
command: ["chmod", "+x", "{{.BuildDir}}/start-build"]
userMessageOnFailure: "Could not add execution right to the start-build."
- type: ExecuteCommand
command: ["{{.BuildDir}}/start-build"]
maxTimeInSeconds: 43200
maxTimeBetweenOutput: 7200
userMessageOnFailure: "Build failed."
test_instructions: []
|