Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
David Vincze | fcb6bb2 | 2025-01-10 17:32:24 +0000 | [diff] [blame] | 2 | # Copyright (c) 2020-2025, Arm Limited. All rights reserved. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | - job: |
| 9 | name: tf-m-build-config |
| 10 | description: 'Builds single configuration of the tf-m source code.' |
| 11 | project-type: pipeline |
| 12 | disabled: false |
| 13 | sandbox: true |
| 14 | properties: |
| 15 | - build-discarder: |
| 16 | days-to-keep: 15 |
Karl Zhang | ac46bbe | 2020-11-05 09:36:12 +0800 | [diff] [blame] | 17 | num-to-keep: 3000 |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 18 | concurrent: true |
| 19 | parameters: |
| 20 | - string: |
| 21 | name: 'CONFIG_NAME' |
| 22 | - string: |
Paul Sokolovsky | 408caa1 | 2023-05-25 15:40:34 +0300 | [diff] [blame] | 23 | name: 'TFM_PLATFORM' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 24 | description: | |
| 25 | Specifies the target platform. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 26 | For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 27 | default: '' |
| 28 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 29 | name: 'COMPILER' |
| 30 | description: | |
| 31 | Specifies the compiler toolchain. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 32 | For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>. |
Xinyu Zhang | f5f2ec9 | 2022-10-11 17:19:58 +0800 | [diff] [blame] | 33 | default: 'GCC_10_3' |
Xinyu Zhang | 0b0cdef | 2022-01-14 14:51:08 +0800 | [diff] [blame] | 34 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 35 | name: 'CMAKE_BUILD_TYPE' |
| 36 | description: | |
| 37 | Configures debugging support. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 38 | For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 39 | default: '' |
| 40 | - string: |
Paul Sokolovsky | cb2f689 | 2022-01-22 18:17:43 +0300 | [diff] [blame] | 41 | name: 'ISOLATION_LEVEL' |
| 42 | default: '1' |
| 43 | - string: |
| 44 | name: 'TEST_REGRESSION' |
| 45 | default: 'False' |
| 46 | - string: |
| 47 | name: 'TEST_PSA_API' |
| 48 | default: 'OFF' |
| 49 | - string: |
| 50 | name: 'PROFILE' |
| 51 | default: 'N.A' |
| 52 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 53 | name: 'BL2' |
| 54 | default: 'True' |
| 55 | description: | |
| 56 | Whether to build BL2. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 57 | For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_secure_boot.rst">here</a>. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 58 | - string: |
Paul Sokolovsky | cb2f689 | 2022-01-22 18:17:43 +0300 | [diff] [blame] | 59 | name: 'EXTRA_PARAMS' |
| 60 | default: 'N.A' |
| 61 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 62 | name: 'GERRIT_REFSPEC' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 63 | default: 'refs/heads/main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 64 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 65 | Specify which TF-M version to use |
| 66 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 67 | TAG_NAME : Pick up a tagged version |
| 68 | full commit hash : Pick up a specific commit |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 69 | - string: |
| 70 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 71 | default: 'main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 72 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 73 | TF-M branch. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 74 | - string: |
| 75 | name: 'GERRIT_HOST' |
| 76 | default: '' |
| 77 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 78 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 79 | - string: |
| 80 | name: 'GERRIT_PATCHSET_REVISION' |
| 81 | default: '' |
| 82 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 83 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 84 | - string: |
| 85 | name: 'GERRIT_CHANGE_NUMBER' |
| 86 | default: '' |
| 87 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 88 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 89 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 90 | name: 'CODE_REPO' |
| 91 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 92 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 93 | name: 'CI_SCRIPTS_REPO' |
Paul Sokolovsky | 58f1264 | 2024-04-25 22:57:09 +0700 | [diff] [blame] | 94 | default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 95 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 96 | name: 'CI_SCRIPTS_BRANCH' |
| 97 | default: 'master' |
Paul Sokolovsky | fbb0d13 | 2024-07-12 20:20:03 +0300 | [diff] [blame] | 98 | description: | |
| 99 | Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 100 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 101 | name: 'MBEDTLS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 102 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 103 | description: | |
| 104 | Specify which MBEDTLS version to use |
| 105 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 106 | TAG_NAME : Pick up a tagged version |
| 107 | full commit hash : Pick up a specific commit |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 108 | - string: |
| 109 | name: 'MBEDTLS_URL' |
| 110 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 111 | - string: |
Tamas Ban | 29d6e44 | 2020-09-16 13:42:51 +0100 | [diff] [blame] | 112 | name: 'MCUBOOT_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 113 | default: '' |
Tamas Ban | 424f8ce | 2020-10-06 12:06:04 +0100 | [diff] [blame] | 114 | description: | |
| 115 | Specify which MCUboot version to use |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 116 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 117 | TAG_NAME : Pick up a tagged version |
| 118 | full commit hash : Pick up a specific commit |
Tamas Ban | 810d736 | 2020-06-09 10:03:36 +0100 | [diff] [blame] | 119 | - string: |
| 120 | name: 'MCUBOOT_URL' |
Karl Zhang | 2e1ab8e | 2020-06-28 15:27:37 +0800 | [diff] [blame] | 121 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
Tamas Ban | 810d736 | 2020-06-09 10:03:36 +0100 | [diff] [blame] | 122 | - string: |
Kevin Peng | 813a9a5 | 2020-06-17 14:14:46 +0800 | [diff] [blame] | 123 | name: 'TFM_TESTS_URL' |
| 124 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 125 | - string: |
| 126 | name: 'TFM_TESTS_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 127 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 128 | description: | |
| 129 | Specify which tf-m-tests version to use |
| 130 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 131 | TAG_NAME : Pick up a tagged version |
| 132 | full commit hash : Pick up a specific commit |
Kevin Peng | 813a9a5 | 2020-06-17 14:14:46 +0800 | [diff] [blame] | 133 | - string: |
Matthew Dalzell | 876a758 | 2025-03-18 18:09:07 +0000 | [diff] [blame] | 134 | name: 'TFM_TOOLS_URL' |
| 135 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tools.git' |
| 136 | - string: |
| 137 | name: 'TFM_TOOLS_REFSPEC' |
| 138 | default: '' |
| 139 | description: | |
| 140 | Specify which tf-m-tools version to use |
| 141 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 142 | TAG_NAME : Pick up a tagged version |
| 143 | full commit hash : Pick up a specific commit |
| 144 | - string: |
Xinyu Zhang | 9dd8842 | 2023-07-03 11:02:21 +0800 | [diff] [blame] | 145 | name: 'TFM_EXTRAS_URL' |
| 146 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git' |
| 147 | - string: |
| 148 | name: 'TFM_EXTRAS_REFSPEC' |
| 149 | default: '' |
| 150 | description: | |
| 151 | Specify which tf-m-extras version to use |
| 152 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 153 | TAG_NAME : Pick up a tagged version |
| 154 | full commit hash : Pick up a specific commit |
| 155 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 156 | name: 'PSA_ARCH_TESTS_URL' |
Karl Zhang | 2e1ab8e | 2020-06-28 15:27:37 +0800 | [diff] [blame] | 157 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 158 | - string: |
Karl Zhang | b4e6bc9 | 2020-06-17 11:35:50 +0800 | [diff] [blame] | 159 | name: 'PSA_ARCH_TESTS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 160 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 161 | description: | |
| 162 | Specify which psa-arch-tests version to use |
| 163 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 164 | TAG_NAME : Pick up a tagged version |
| 165 | full commit hash : Pick up a specific commit |
Karl Zhang | b4e6bc9 | 2020-06-17 11:35:50 +0800 | [diff] [blame] | 166 | - string: |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 167 | name: 'QCBOR_URL' |
| 168 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 169 | - string: |
| 170 | name: 'QCBOR_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 171 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 172 | description: | |
| 173 | Specify which QCBOR version to use |
| 174 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 175 | TAG_NAME : Pick up a tagged version |
| 176 | full commit hash : Pick up a specific commit |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 177 | - string: |
David Vincze | fcb6bb2 | 2025-01-10 17:32:24 +0000 | [diff] [blame] | 178 | name: 'T_COSE_URL' |
| 179 | default: 'https://github.com/laurencelundblade/t_cose.git' |
| 180 | - string: |
| 181 | name: 'T_COSE_VERSION' |
| 182 | default: '' |
| 183 | description: | |
| 184 | Specify which t_cose version to use |
| 185 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 186 | TAG_NAME : Pick up a tagged version |
| 187 | full commit hash : Pick up a specific commit |
| 188 | - string: |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 189 | name: 'CODE_COVERAGE_EN' |
| 190 | default: 'FALSE' |
Hugo L'Hostis | ad58649 | 2021-01-06 11:53:30 +0000 | [diff] [blame] | 191 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 192 | name: SHARE_FOLDER |
| 193 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 194 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 195 | wrappers: |
| 196 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 197 | pipeline-scm: |
| 198 | scm: |
| 199 | - git: |
| 200 | url: '$CI_SCRIPTS_REPO' |
| 201 | branches: |
| 202 | - '$CI_SCRIPTS_BRANCH' |
Paul Sokolovsky | 60a13ac | 2024-07-05 11:52:04 +0300 | [diff] [blame] | 203 | refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 204 | credentials-id: GIT_SSH_KEY |
| 205 | wipe-workspace: false |
| 206 | script-path: jenkins/build-config.jpl |