diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2020-02-19 10:06:46 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2020-02-20 18:55:10 +0000 |
commit | cc3f55e455775312f7675fbcbe86d4aab9191a5d (patch) | |
tree | e1a437affc1badb39a6f08a0ef50b574b3fddd37 /coin | |
parent | 0c5e2cd723b5e55eec508a8da628007e6888aa02 (diff) |
coin: fetch all internal repos
Restructure the CI build instructions so that all the steps
can be done in correct phase. Internal repos are now needed
for the meta-tegra NVIDIA_DEVNET_MIRROR downloads.
Change-Id: I9b884e89f554562e3ca217c16aca1df855561ae6
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Diffstat (limited to 'coin')
-rw-r--r-- | coin/module_config.yaml | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml index 6956e7a6..9fabaa7e 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -49,48 +49,44 @@ build_instructions: directory: "{{.BuildDir}}" - type: ChangeDirectory directory: "{{.BuildDir}}" - - type: ExecuteCommand - command: ["sudo", "ln", "-sf", "gcc-7", "/usr/bin/gcc"] - userMessageOnFailure: "Could not create link for gcc-7" - - type: ExecuteCommand - command: ["sudo", "ln", "-sf", "g++-7", "/usr/bin/g++"] - userMessageOnFailure: "Could not create link for g++-7" - - type: ExecuteCommand - command: ["sudo", "mkdir", "-p", "/mnt/yocto-cache"] - userMessageOnFailure: "Could not create '/mnt/yocto-cache' directory" - - type: ExecuteCommand - command: ["sudo", "mount", "yocto-cache.intra.qt.io:/srv/yocto-cache", "/mnt/yocto-cache"] - maxTimeInSeconds: 60 - maxTimeBetweenOutput: 60 - userMessageOnFailure: "Could not mount yocto cache." + - 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 + + sudo ln -sf gcc-7 /usr/bin/gcc + sudo ln -sf g++-7 /usr/bin/g++ + + sudo mkdir -p /mnt/yocto-cache + sudo mount yocto-cache.intra.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 export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SSTATE_DIR DL_DIR" export SSTATE_DIR=/mnt/yocto-cache/sstate-caches/$(sed -n -e "s/DISTRO_CODENAME.*\"\(.*\)\"/\1/p" ../sources/poky/meta-*/conf/distro/poky.conf) bitbake meta-b2qt-embedded-qbsp SDKMACHINE=i686-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: EnvironmentVariable - variableName: DL_DIR - variableValue: "/mnt/yocto-cache/downloads" - - type: ExecuteCommand - command: ["{{.SourceDir}}/b2qt-init-build-env", "init", "--device", "{{.Env.MACHINE}}", "--reference", "/mnt/yocto-cache/mirror"] - maxTimeInSeconds: 1800 - maxTimeBetweenOutput: 1800 - userMessageOnFailure: "Failed to download the yocto recipes repositories" - type: ExecuteCommand command: ["{{.BuildDir}}/start-build"] maxTimeInSeconds: 28800 maxTimeBetweenOutput: 28800 userMessageOnFailure: "Build failed." - - type: ExecuteCommand - command: ["sudo", "umount", "/mnt/yocto-cache"] - userMessageOnFailure: "Unmounting cache failed." test_instructions: [] |