blob: b0e582830382f9d24441eec43215a83ad185acb9 [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 Zhang0b0cdef2022-01-14 14:51:08 +080039 default: 'GCC_7_3_1'
40 - 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'
Summer Qin9da600e2022-04-06 17:48:13 +0800128 default: 'f7e8495dede62196a7fdd88470c58cf672525238'
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800129 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800130 name: 'CODE_COVERAGE_EN'
131 default: 'FALSE'
Hugo L'Hostisad586492021-01-06 11:53:30 +0000132 - string:
133 name: 'SQUAD_CONFIGURATIONS'
134 default: ''
135 description: 'Reference configurations whose metrics will be sent to a SQUAD Dashboard'
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500136 - string:
137 name: SHARE_FOLDER
138 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
139 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800140 wrappers:
141 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000142 pipeline-scm:
143 scm:
144 - git:
145 url: '$CI_SCRIPTS_REPO'
146 branches:
147 - '$CI_SCRIPTS_BRANCH'
148 credentials-id: GIT_SSH_KEY
149 wipe-workspace: false
150 script-path: jenkins/build-config.jpl