From b12bec695800660e47cd9dba21c8d93fb1df7a61 Mon Sep 17 00:00:00 2001 From: Leonardo Sandoval Date: Tue, 25 Jan 2022 17:06:39 -0600 Subject: lt-qcom: introduce lt-qcom-clo-bootloader-rb5 job Also it includes another variable, QCOM_PTOOL_GIT, representing the corresponding git repository for the ptool tool. Patch also includes a temporal variable, CLO_MIGRATION, which condition CLO code. Signed-off-by: Leonardo Sandoval Change-Id: I32819a6eb495a8e473880a7f014da1bc174be02c --- lt-qcom-bootloader-rb5.yaml | 3 ++ lt-qcom-bootloader/rb5/builders.sh | 12 +++-- lt-qcom-clo-bootloader-rb5.yaml | 99 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+), 5 deletions(-) create mode 100644 lt-qcom-clo-bootloader-rb5.yaml diff --git a/lt-qcom-bootloader-rb5.yaml b/lt-qcom-bootloader-rb5.yaml index 69ace34ac0..5a5f1803cc 100644 --- a/lt-qcom-bootloader-rb5.yaml +++ b/lt-qcom-bootloader-rb5.yaml @@ -43,6 +43,9 @@ - string: name: ABL_CLANG_REL default: 'LA.UM.7.9.r1-07300-sm6150.0' + - string: + name: QCOM_PTOOL_GIT + default: 'https://git.linaro.org/landing-teams/working/qualcomm/partioning_tool.git' - string: name: PUB_DEST default: '96boards/qrb5165-rb5/linaro/rescue/${BUILD_NUMBER}' diff --git a/lt-qcom-bootloader/rb5/builders.sh b/lt-qcom-bootloader/rb5/builders.sh index f95425f24d..1caa49085d 100644 --- a/lt-qcom-bootloader/rb5/builders.sh +++ b/lt-qcom-bootloader/rb5/builders.sh @@ -58,7 +58,7 @@ md5sum -c MD5 # Create ptable and rawprogram/patch command files if [ ! -d "ptool" ]; then - git clone --depth 1 https://git.linaro.org/landing-teams/working/qualcomm/partioning_tool.git ptool + git clone --depth 1 ${QCOM_PTOOL_GIT} fi (cd ptool && git log -1) rm -rf linux aosp @@ -161,8 +161,10 @@ EOF if [ "${LINARO_PUBLISH}" ]; then test -d ${HOME}/bin || mkdir ${HOME}/bin wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py - time python3 ${HOME}/bin/linaro-cp.py \ - --server ${PUBLISH_SERVER} \ - --link-latest \ - ${WORKSPACE}/out2 ${PUB_DEST} + if [[ -z ${CLO_MIGRATION} ]]; then + time python3 ${HOME}/bin/linaro-cp.py \ + --server ${PUBLISH_SERVER} \ + --link-latest \ + ${WORKSPACE}/out2 ${PUB_DEST} + fi fi diff --git a/lt-qcom-clo-bootloader-rb5.yaml b/lt-qcom-clo-bootloader-rb5.yaml new file mode 100644 index 0000000000..ba78061679 --- /dev/null +++ b/lt-qcom-clo-bootloader-rb5.yaml @@ -0,0 +1,99 @@ +- job: + name: lt-qcom-clo-bootloader-rb5 + project-type: freestyle + defaults: global + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + - job-workspace + linaro-landing-team-qualcomm-personnel: + - job-build + - job-cancel + - build-discarder: + days-to-keep: 30 + num-to-keep: 30 + artifact-num-to-keep: 1 + parameters: + - string: + name: TOOLCHAIN_ARCH + default: 'arm64' + - string: + name: BRANCH + default: 'master' + - string: + name: QCOM_LINUX_FIRMWARE + default: 'http://releases.linaro.org/96boards/rb5/qualcomm/firmware/RB5_firmware_20210331-v4.1.zip' + - string: + name: QCOM_LINUX_FIRMWARE_MD5 + default: '498aeeeb2603ddcf619c7e613c763791' + - string: + name: QCOM_LINUX_FIRMWARE_LICENSE_MD5 + default: 'cbbe399f2c983ad51768f4561587f000' + - string: + name: ABL_GIT_LINARO + default: 'https://staging-git.codelinaro.org/linaro/landing-teams/qualcomm/abl.git' + - string: + name: ABL_GIT_REL + default: 'release/LU.UM.1.2.1.r1-23200-QRB5165.0' + - string: + name: ABL_CLANG_GIT + default: 'https://source.codeaurora.org/quic/la/platform/prebuilts/clang/host/linux-x86' + - string: + name: ABL_CLANG_REL + default: 'LA.UM.7.9.r1-07300-sm6150.0' + - string: + name: QCOM_PTOOL_GIT + default: 'https://staging-git.codelinaro.org/linaro/landing-teams/qualcomm/partioning_tool.git' + - string: + name: PUB_DEST + default: '96boards/qrb5165-rb5/linaro/rescue/${BUILD_NUMBER}' + - string: + name: CLO_MIGRATION + default: 'true' + disabled: false + node: docker-buster-amd64 + display-name: 'Qualcomm bootloader for Qualcomm RB5' + scm: + - git: + url: https://staging-git.codelinaro.org/linaro/landing-teams/qualcomm/db-boot-tools.git + refspec: +refs/heads/${BRANCH}:refs/remotes/origin/${BRANCH} + name: origin + branches: + - refs/heads/${BRANCH} + skip-tag: true + shallow-clone: true + wipe-workspace: false + wrappers: + - timestamps + - credentials-binding: + - text: + credential-id: LT_QCOM_KEY + variable: LT_QCOM_KEY + - credentials-binding: + - text: + credential-id: AUTH_TOKEN + variable: AUTH_TOKEN + - ssh-agent-credentials: + users: + - 'LT_QUALCOMM_PRIVATE_KEY_SSH' + - build-name: + name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' + builders: + - shell: + !include-raw: lt-qcom/install-gcc-toolchain.sh + - inject: + properties-file: gcc_toolchain_env + - linaro-publish-token + - shell: + !include-raw: lt-qcom-bootloader/rb5/builders.sh + publishers: + - groovy-postbuild: + script: + !include-raw: + - rpb-openembedded/postbuild.groovy + - email-ext: + recipients: 'leonardo.sandoval@linaro.org' + failure: true + still-failing: true -- cgit v1.2.3