blob: 3191d4bea92f3063ba7e3b08f63a24e051d79d43 [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'
Dean Birche4cbc7c2020-01-20 10:40:21 +000098 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080099 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800100 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800101 description: |
102 Specify which MBEDTLS version to use
103 refs/heads/<branch_name> : Pick up latest HEAD on branch
104 TAG_NAME : Pick up a tagged version
105 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800106 - string:
107 name: 'MBEDTLS_URL'
108 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
109 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +0100110 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800111 default: ''
Tamas Ban424f8ce2020-10-06 12:06:04 +0100112 description: |
113 Specify which MCUboot version to use
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800114 refs/heads/<branch_name> : Pick up latest HEAD on branch
115 TAG_NAME : Pick up a tagged version
116 full commit hash : Pick up a specific commit
Tamas Ban810d7362020-06-09 10:03:36 +0100117 - string:
118 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800119 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100120 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800121 name: 'TFM_TESTS_URL'
122 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
123 - string:
124 name: 'TFM_TESTS_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800125 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800126 description: |
127 Specify which tf-m-tests version to use
128 refs/heads/<branch_name> : Pick up latest HEAD on branch
129 TAG_NAME : Pick up a tagged version
130 full commit hash : Pick up a specific commit
Kevin Peng813a9a52020-06-17 14:14:46 +0800131 - string:
Xinyu Zhang9dd88422023-07-03 11:02:21 +0800132 name: 'TFM_EXTRAS_URL'
133 default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git'
134 - string:
135 name: 'TFM_EXTRAS_REFSPEC'
136 default: ''
137 description: |
138 Specify which tf-m-extras version to use
139 refs/heads/<branch_name> : Pick up latest HEAD on branch
140 TAG_NAME : Pick up a tagged version
141 full commit hash : Pick up a specific commit
142 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000143 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800144 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000145 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800146 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800147 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800148 description: |
149 Specify which psa-arch-tests version to use
150 refs/heads/<branch_name> : Pick up latest HEAD on branch
151 TAG_NAME : Pick up a tagged version
152 full commit hash : Pick up a specific commit
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800153 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800154 name: 'QCBOR_URL'
155 default: 'https://github.com/laurencelundblade/QCBOR.git'
156 - string:
157 name: 'QCBOR_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800158 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800159 description: |
160 Specify which QCBOR version to use
161 refs/heads/<branch_name> : Pick up latest HEAD on branch
162 TAG_NAME : Pick up a tagged version
163 full commit hash : Pick up a specific commit
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800164 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800165 name: 'CODE_COVERAGE_EN'
166 default: 'FALSE'
Hugo L'Hostisad586492021-01-06 11:53:30 +0000167 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500168 name: SHARE_FOLDER
169 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
170 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800171 wrappers:
172 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000173 pipeline-scm:
174 scm:
175 - git:
176 url: '$CI_SCRIPTS_REPO'
177 branches:
178 - '$CI_SCRIPTS_BRANCH'
179 credentials-id: GIT_SSH_KEY
180 wipe-workspace: false
181 script-path: jenkins/build-config.jpl