diff options
| author | Samuli Piippo <samuli.piippo@qt.io> | 2023-11-30 08:53:05 +0000 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@qt.io> | 2023-12-07 07:31:07 +0000 |
| commit | c5841446766aec25d70bba1f7cf012b66e03a5fe (patch) | |
| tree | 42dbf956e573d4fc45d48b39d3c367b15a4a9c00 | |
| parent | b6f1f9406ceb6f513a08b60af03f9392c0b79d8f (diff) | |
coin: add CI build for qcom-armv8a
Do test build of qcom-armv8a against nanbield.
Change-Id: Ia2896c0c76f60511a9beae2220b43c6d1b0bcffe
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
| -rw-r--r-- | coin/dependencies.yaml | 5 | ||||
| -rw-r--r-- | coin/module_config.yaml | 83 |
2 files changed, 88 insertions, 0 deletions
diff --git a/coin/dependencies.yaml b/coin/dependencies.yaml new file mode 100644 index 0000000..e708d8e --- /dev/null +++ b/coin/dependencies.yaml @@ -0,0 +1,5 @@ +product_dependency: + ../../qt/qt5: + ref: "dev" +dependencies: + {} diff --git a/coin/module_config.yaml b/coin/module_config.yaml new file mode 100644 index 0000000..b860e69 --- /dev/null +++ b/coin/module_config.yaml @@ -0,0 +1,83 @@ +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] + +machine_type: + Build: + cores: 16 + +target1: &target1 + type: Group + instructions: + - type: EnvironmentVariable + variableName: MACHINE + variableValue: qcom-armv8a + - type: EnvironmentVariable + variableName: MANIFEST + variableValue: qcom/dev.xml + enable_if: + condition: property + property: target.arch + equals_value: TARGET1 + +instructions: + Build: + - *target1 + - 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 + + curl https://storage.googleapis.com/git-repo-downloads/repo > repo + chmod +x repo + + ./repo init \ + --repo-url https://github.com/theqtcompany/git-repo \ + -u git://code.qt.io/yocto/boot2qt-manifest \ + -m ${MANIFEST} \ + --reference /mnt/yocto-cache/mirror \ + --group all + ./repo sync + + rm -rf sources/meta-boot2qt-qcom + ln -s ${SOURCE_DIR} sources/meta-boot2qt-qcom + + source ./setup-environment.sh build + echo "require ../sources/meta-qt6/coin/test-ci.inc" >> conf/local.conf + + bitbake meta-b2qt-embedded-qbsp + SDKMACHINE=x86_64-mingw32 bitbake meta-b2qt-embedded-qbsp + 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: [] |
