blob: 94c5af027a8aeefe75bc2373717cc4c23cab5cca [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
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:
19 anonymous:
20 - job-read
21 - job-extended-read
Dean Birche4cbc7c2020-01-20 10:40:21 +000022 concurrent: true
23 parameters:
24 - string:
25 name: 'CONFIG_NAME'
26 - string:
27 name: 'TARGET_PLATFORM'
28 description: |
29 Specifies the target platform.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010030 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 +000031 default: ''
32 - string:
33 name: 'PROJ_CONFIG'
34 description: |
35 Specifies the way the application is built.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010036 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 +000037 default: ''
38 - string:
39 name: 'COMPILER'
40 description: |
41 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010042 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 +000043 default: ''
44 - string:
45 name: 'CMAKE_BUILD_TYPE'
46 description: |
47 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010048 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 +000049 default: ''
50 - string:
51 name: 'BL2'
52 default: 'True'
53 description: |
54 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010055 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 +000056 - string:
57 name: 'GERRIT_REFSPEC'
58 default: 'refs/heads/master'
59 description: |
60 For use when triggering with unmerged Gerrit changes.
61 - string:
62 name: 'GERRIT_BRANCH'
63 default: 'master'
64 description: |
65 For use when triggering with unmerged Gerrit changes.
66 - string:
67 name: 'GERRIT_HOST'
68 default: ''
69 description: |
70 For use when triggering with unmerged Gerrit changes.
71 - string:
72 name: 'GERRIT_PATCHSET_REVISION'
73 default: ''
74 description: |
75 For use when triggering with unmerged Gerrit changes.
76 - string:
77 name: 'GERRIT_CHANGE_NUMBER'
78 default: ''
79 description: |
80 For use when triggering with unmerged Gerrit changes.
81 - string:
82 name: 'CI_SCRIPTS_REPO'
83 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
84 - string:
85 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010086 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000087 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080088 name: 'MBEDTLS_VERSION'
Summer Qina400be82020-10-28 15:00:00 +080089 default: 'mbedtls-2.24.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080090 - string:
91 name: 'MBEDTLS_URL'
92 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
93 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +010094 name: 'MCUBOOT_REFSPEC'
Tamas Ban476ecbf2020-11-02 08:46:36 +000095 default: 'refs/tags/1.7.0-rc1'
Tamas Ban424f8ce2020-10-06 12:06:04 +010096 description: |
97 Specify which MCUboot version to use
98 refs/heads/master : Pick up latest master
99 refs/tags/<TAG_NAME> : Pick up a tagged version
Tamas Ban810d7362020-06-09 10:03:36 +0100100 - string:
101 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800102 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100103 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800104 name: 'TFM_TESTS_URL'
105 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
106 - string:
107 name: 'TFM_TESTS_REFSPEC'
108 default: 'refs/heads/master'
109 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000110 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800111 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000112 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800113 name: 'PSA_ARCH_TESTS_VERSION'
Karl Zhangbe940332020-11-05 09:11:52 +0800114 default: '5c0399f2ca8ab921d5b3f9643a9a2b57b47191ec'
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800115 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000116 name: 'CI_SCRIPTS_BRANCH'
117 default: 'master'
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800118 - string:
119 name: 'CODE_COVERAGE_EN'
120 default: 'FALSE'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000121 pipeline-scm:
122 scm:
123 - git:
124 url: '$CI_SCRIPTS_REPO'
125 branches:
126 - '$CI_SCRIPTS_BRANCH'
127 credentials-id: GIT_SSH_KEY
128 wipe-workspace: false
129 script-path: jenkins/build-config.jpl