blob: e6d90e73c4598bc0281279ddaa44604075e9f8d0 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Summer Qin7632b812022-01-05 17:33:35 +08002# Copyright (c) 2020-2022, 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: |
71 For use when triggering with unmerged Gerrit changes.
72 - string:
73 name: 'GERRIT_BRANCH'
74 default: 'master'
75 description: |
76 For use when triggering with unmerged Gerrit changes.
77 - string:
78 name: 'GERRIT_HOST'
79 default: ''
80 description: |
81 For use when triggering with unmerged Gerrit changes.
82 - string:
83 name: 'GERRIT_PATCHSET_REVISION'
84 default: ''
85 description: |
86 For use when triggering with unmerged Gerrit changes.
87 - string:
88 name: 'GERRIT_CHANGE_NUMBER'
89 default: ''
90 description: |
91 For use when triggering with unmerged Gerrit changes.
92 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010093 name: 'CODE_REPO'
94 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
95 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000096 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030097 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000098 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010099 name: 'CI_SCRIPTS_BRANCH'
100 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000101 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800102 name: 'MBEDTLS_VERSION'
Antonio de Angelis20c04402022-07-16 00:01:05 +0100103 default: 'mbedtls-3.2.1'
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800104 - string:
105 name: 'MBEDTLS_URL'
106 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
107 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +0100108 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +0800109 default: 'v1.9.0'
Tamas Ban424f8ce2020-10-06 12:06:04 +0100110 description: |
111 Specify which MCUboot version to use
112 refs/heads/master : Pick up latest master
113 refs/tags/<TAG_NAME> : Pick up a tagged version
Tamas Ban810d7362020-06-09 10:03:36 +0100114 - string:
115 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800116 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100117 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800118 name: 'TFM_TESTS_URL'
119 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
120 - string:
121 name: 'TFM_TESTS_REFSPEC'
122 default: 'refs/heads/master'
123 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000124 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800125 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000126 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800127 name: 'PSA_ARCH_TESTS_VERSION'
Summer8858e3e2022-11-15 10:40:04 +0800128 default: 'cf8bd7191219df9bdef387abcd750f0709283f98'
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800129 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800130 name: 'QCBOR_URL'
131 default: 'https://github.com/laurencelundblade/QCBOR.git'
132 - string:
133 name: 'QCBOR_VERSION'
134 default: 'b0e7033268e88c9f27146fa9a1415ef4c19ebaff'
135 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800136 name: 'CODE_COVERAGE_EN'
137 default: 'FALSE'
Hugo L'Hostisad586492021-01-06 11:53:30 +0000138 - string:
139 name: 'SQUAD_CONFIGURATIONS'
Xinyu Zhang1a4d1102022-10-18 17:39:01 +0800140 default: 'disabled'
141 description: 'Send metrics of reference configurations to a SQUAD Dashboard'
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500142 - string:
143 name: SHARE_FOLDER
144 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
145 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800146 wrappers:
147 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000148 pipeline-scm:
149 scm:
150 - git:
151 url: '$CI_SCRIPTS_REPO'
152 branches:
153 - '$CI_SCRIPTS_BRANCH'
154 credentials-id: GIT_SSH_KEY
155 wipe-workspace: false
156 script-path: jenkins/build-config.jpl