blob: 2eb040c682fd4150c9435900a52e5ecca7968c78 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Hugo L'Hostisad586492021-01-06 11:53:30 +00002# Copyright (c) 2020-2021, 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
Riku Voipiod4ea5342020-09-04 16:00:02 +030018 - authorization:
Fathi Boudradb891772021-03-02 14:12:48 +010019 !include: authorization.yaml.inc
Dean Birche4cbc7c2020-01-20 10:40:21 +000020 concurrent: true
21 parameters:
22 - string:
23 name: 'CONFIG_NAME'
24 - string:
25 name: 'TARGET_PLATFORM'
26 description: |
27 Specifies the target platform.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010028 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 +000029 default: ''
30 - string:
31 name: 'PROJ_CONFIG'
32 description: |
33 Specifies the way the application is built.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010034 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 +000035 default: ''
36 - string:
37 name: 'COMPILER'
38 description: |
39 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010040 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 +000041 default: ''
42 - string:
43 name: 'CMAKE_BUILD_TYPE'
44 description: |
45 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010046 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 +000047 default: ''
48 - string:
49 name: 'BL2'
50 default: 'True'
51 description: |
52 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010053 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 +000054 - string:
55 name: 'GERRIT_REFSPEC'
56 default: 'refs/heads/master'
57 description: |
58 For use when triggering with unmerged Gerrit changes.
59 - string:
60 name: 'GERRIT_BRANCH'
61 default: 'master'
62 description: |
63 For use when triggering with unmerged Gerrit changes.
64 - string:
65 name: 'GERRIT_HOST'
66 default: ''
67 description: |
68 For use when triggering with unmerged Gerrit changes.
69 - string:
70 name: 'GERRIT_PATCHSET_REVISION'
71 default: ''
72 description: |
73 For use when triggering with unmerged Gerrit changes.
74 - string:
75 name: 'GERRIT_CHANGE_NUMBER'
76 default: ''
77 description: |
78 For use when triggering with unmerged Gerrit changes.
79 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010080 name: 'CODE_REPO'
81 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
82 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000083 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030084 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000085 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010086 name: 'CI_SCRIPTS_BRANCH'
87 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000088 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080089 name: 'MBEDTLS_VERSION'
Xinyu Zhangdbcdf652021-07-12 15:00:46 +080090 default: 'mbedtls-3.0.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080091 - string:
92 name: 'MBEDTLS_URL'
93 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
94 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +010095 name: 'MCUBOOT_REFSPEC'
Sherry Zhnag7cc6e322021-11-04 15:12:15 +080096 default: 'v1.8.0'
Tamas Ban424f8ce2020-10-06 12:06:04 +010097 description: |
98 Specify which MCUboot version to use
99 refs/heads/master : Pick up latest master
100 refs/tags/<TAG_NAME> : Pick up a tagged version
Tamas Ban810d7362020-06-09 10:03:36 +0100101 - string:
102 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800103 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100104 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800105 name: 'TFM_TESTS_URL'
106 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
107 - string:
108 name: 'TFM_TESTS_REFSPEC'
109 default: 'refs/heads/master'
110 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000111 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800112 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000113 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800114 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhang049657b2021-11-11 13:51:19 +0800115 default: 'v21.10_API1.3_ADAC_ALPHA-1'
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800116 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800117 name: 'CODE_COVERAGE_EN'
118 default: 'FALSE'
Hugo L'Hostisad586492021-01-06 11:53:30 +0000119 - string:
120 name: 'SQUAD_CONFIGURATIONS'
121 default: ''
122 description: 'Reference configurations whose metrics will be sent to a SQUAD Dashboard'
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500123 - string:
124 name: SHARE_FOLDER
125 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
126 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800127 wrappers:
128 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000129 pipeline-scm:
130 scm:
131 - git:
132 url: '$CI_SCRIPTS_REPO'
133 branches:
134 - '$CI_SCRIPTS_BRANCH'
135 credentials-id: GIT_SSH_KEY
136 wipe-workspace: false
137 script-path: jenkins/build-config.jpl