blob: 62f8b4c6bf7bb3f3bc8e79c31d9250338995d9b4 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
David Vincze16a9dac2023-01-06 15:16:47 +01002# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
Dean Birche4cbc7c2020-01-20 10:40:21 +00003#
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 Zhangac46bbe2020-11-05 09:36:12 +080017 num-to-keep: 3000
Dean Birche4cbc7c2020-01-20 10:40:21 +000018 concurrent: true
19 parameters:
20 - string:
21 name: 'CONFIG_NAME'
22 - string:
Paul Sokolovsky408caa12023-05-25 15:40:34 +030023 name: 'TFM_PLATFORM'
Dean Birche4cbc7c2020-01-20 10:40:21 +000024 description: |
25 Specifies the target platform.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010026 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 Birche4cbc7c2020-01-20 10:40:21 +000027 default: ''
28 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000029 name: 'COMPILER'
30 description: |
31 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010032 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 Zhangf5f2ec92022-10-11 17:19:58 +080033 default: 'GCC_10_3'
Xinyu Zhang0b0cdef2022-01-14 14:51:08 +080034 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000035 name: 'CMAKE_BUILD_TYPE'
36 description: |
37 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010038 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 Birche4cbc7c2020-01-20 10:40:21 +000039 default: ''
40 - string:
Paul Sokolovskycb2f6892022-01-22 18:17:43 +030041 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 Birche4cbc7c2020-01-20 10:40:21 +000053 name: 'BL2'
54 default: 'True'
55 description: |
56 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010057 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 Birche4cbc7c2020-01-20 10:40:21 +000058 - string:
Paul Sokolovskycb2f6892022-01-22 18:17:43 +030059 name: 'EXTRA_PARAMS'
60 default: 'N.A'
61 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000062 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080063 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000064 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080065 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 Birche4cbc7c2020-01-20 10:40:21 +000069 - string:
70 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080071 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000072 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080073 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000074 - string:
75 name: 'GERRIT_HOST'
76 default: ''
77 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080078 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000079 - string:
80 name: 'GERRIT_PATCHSET_REVISION'
81 default: ''
82 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080083 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000084 - string:
85 name: 'GERRIT_CHANGE_NUMBER'
86 default: ''
87 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080088 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000089 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010090 name: 'CODE_REPO'
91 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
92 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000093 name: 'CI_SCRIPTS_REPO'
Paul Sokolovsky58f12642024-04-25 22:57:09 +070094 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000095 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010096 name: 'CI_SCRIPTS_BRANCH'
97 default: 'master'
Paul Sokolovskyfbb0d132024-07-12 20:20:03 +030098 description: |
99 Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000100 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800101 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800102 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800103 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 Zhang85c2d7a2020-08-20 11:17:58 +0800108 - string:
109 name: 'MBEDTLS_URL'
110 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
111 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +0100112 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800113 default: ''
Tamas Ban424f8ce2020-10-06 12:06:04 +0100114 description: |
115 Specify which MCUboot version to use
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800116 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 Ban810d7362020-06-09 10:03:36 +0100119 - string:
120 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800121 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100122 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800123 name: 'TFM_TESTS_URL'
124 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
125 - string:
126 name: 'TFM_TESTS_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800127 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800128 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 Peng813a9a52020-06-17 14:14:46 +0800133 - string:
Xinyu Zhang9dd88422023-07-03 11:02:21 +0800134 name: 'TFM_EXTRAS_URL'
135 default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git'
136 - string:
137 name: 'TFM_EXTRAS_REFSPEC'
138 default: ''
139 description: |
140 Specify which tf-m-extras 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:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000145 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800146 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000147 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800148 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800149 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800150 description: |
151 Specify which psa-arch-tests 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
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800155 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800156 name: 'QCBOR_URL'
157 default: 'https://github.com/laurencelundblade/QCBOR.git'
158 - string:
159 name: 'QCBOR_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800160 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800161 description: |
162 Specify which QCBOR 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
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800166 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800167 name: 'CODE_COVERAGE_EN'
168 default: 'FALSE'
Hugo L'Hostisad586492021-01-06 11:53:30 +0000169 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500170 name: SHARE_FOLDER
171 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
172 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800173 wrappers:
174 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000175 pipeline-scm:
176 scm:
177 - git:
178 url: '$CI_SCRIPTS_REPO'
179 branches:
180 - '$CI_SCRIPTS_BRANCH'
Paul Sokolovsky60a13ac2024-07-05 11:52:04 +0300181 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000182 credentials-id: GIT_SSH_KEY
183 wipe-workspace: false
184 script-path: jenkins/build-config.jpl