blob: f89971e3eae421a45328b94d9737ae69ff247572 [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:
23 name: 'TARGET_PLATFORM'
24 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:
29 name: 'PROJ_CONFIG'
30 description: |
31 Specifies the way the application is built.
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>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000033 default: ''
34 - string:
35 name: 'COMPILER'
36 description: |
37 Specifies the compiler toolchain.
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>.
Xinyu Zhangf5f2ec92022-10-11 17:19:58 +080039 default: 'GCC_10_3'
Xinyu Zhang0b0cdef2022-01-14 14:51:08 +080040 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000041 name: 'CMAKE_BUILD_TYPE'
42 description: |
43 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010044 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 +000045 default: ''
46 - string:
Paul Sokolovskycb2f6892022-01-22 18:17:43 +030047 name: 'ISOLATION_LEVEL'
48 default: '1'
49 - string:
50 name: 'TEST_REGRESSION'
51 default: 'False'
52 - string:
53 name: 'TEST_PSA_API'
54 default: 'OFF'
55 - string:
56 name: 'PROFILE'
57 default: 'N.A'
58 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000059 name: 'BL2'
60 default: 'True'
61 description: |
62 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010063 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 +000064 - string:
Paul Sokolovskycb2f6892022-01-22 18:17:43 +030065 name: 'EXTRA_PARAMS'
66 default: 'N.A'
67 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000068 name: 'GERRIT_REFSPEC'
69 default: 'refs/heads/master'
70 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080071 Specify which TF-M version to use
72 refs/heads/<branch_name> : Pick up latest HEAD on branch
73 TAG_NAME : Pick up a tagged version
74 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +000075 - string:
76 name: 'GERRIT_BRANCH'
77 default: 'master'
78 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080079 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000080 - string:
81 name: 'GERRIT_HOST'
82 default: ''
83 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080084 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000085 - string:
86 name: 'GERRIT_PATCHSET_REVISION'
87 default: ''
88 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080089 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000090 - string:
91 name: 'GERRIT_CHANGE_NUMBER'
92 default: ''
93 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080094 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000095 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010096 name: 'CODE_REPO'
97 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
98 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000099 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +0300100 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000101 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +0100102 name: 'CI_SCRIPTS_BRANCH'
103 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000104 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800105 name: 'MBEDTLS_VERSION'
Summer Qin8d6aae02023-01-20 11:15:51 +0800106 default: 'mbedtls-3.3.0'
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800107 description: |
108 Specify which MBEDTLS version to use
109 refs/heads/<branch_name> : Pick up latest HEAD on branch
110 TAG_NAME : Pick up a tagged version
111 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800112 - string:
113 name: 'MBEDTLS_URL'
114 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
115 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +0100116 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +0800117 default: 'v1.9.0'
Tamas Ban424f8ce2020-10-06 12:06:04 +0100118 description: |
119 Specify which MCUboot version to use
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800120 refs/heads/<branch_name> : Pick up latest HEAD on branch
121 TAG_NAME : Pick up a tagged version
122 full commit hash : Pick up a specific commit
Tamas Ban810d7362020-06-09 10:03:36 +0100123 - string:
124 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800125 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100126 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800127 name: 'TFM_TESTS_URL'
128 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
129 - string:
130 name: 'TFM_TESTS_REFSPEC'
131 default: 'refs/heads/master'
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800132 description: |
133 Specify which tf-m-tests version to use
134 refs/heads/<branch_name> : Pick up latest HEAD on branch
135 TAG_NAME : Pick up a tagged version
136 full commit hash : Pick up a specific commit
Kevin Peng813a9a52020-06-17 14:14:46 +0800137 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000138 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800139 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000140 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800141 name: 'PSA_ARCH_TESTS_VERSION'
Summer8858e3e2022-11-15 10:40:04 +0800142 default: 'cf8bd7191219df9bdef387abcd750f0709283f98'
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800143 description: |
144 Specify which psa-arch-tests version to use
145 refs/heads/<branch_name> : Pick up latest HEAD on branch
146 TAG_NAME : Pick up a tagged version
147 full commit hash : Pick up a specific commit
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800148 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800149 name: 'QCBOR_URL'
150 default: 'https://github.com/laurencelundblade/QCBOR.git'
151 - string:
152 name: 'QCBOR_VERSION'
David Vincze16a9dac2023-01-06 15:16:47 +0100153 default: '92d3f89030baff4af7be8396c563e6c8ef263622'
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800154 description: |
155 Specify which QCBOR version to use
156 refs/heads/<branch_name> : Pick up latest HEAD on branch
157 TAG_NAME : Pick up a tagged version
158 full commit hash : Pick up a specific commit
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800159 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800160 name: 'CODE_COVERAGE_EN'
161 default: 'FALSE'
Hugo L'Hostisad586492021-01-06 11:53:30 +0000162 - string:
163 name: 'SQUAD_CONFIGURATIONS'
Xinyu Zhang1a4d1102022-10-18 17:39:01 +0800164 default: 'disabled'
165 description: 'Send metrics of reference configurations to a SQUAD Dashboard'
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500166 - string:
167 name: SHARE_FOLDER
168 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
169 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800170 wrappers:
171 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000172 pipeline-scm:
173 scm:
174 - git:
175 url: '$CI_SCRIPTS_REPO'
176 branches:
177 - '$CI_SCRIPTS_BRANCH'
178 credentials-id: GIT_SSH_KEY
179 wipe-workspace: false
180 script-path: jenkins/build-config.jpl