blob: 908b41c11c2a2251d727b417c1a771270227acbd [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:
Fathi Boudraccaba542020-11-19 10:11:43 +010082 name: 'CODE_REPO'
83 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
84 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000085 name: 'CI_SCRIPTS_REPO'
86 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
87 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010088 name: 'CI_SCRIPTS_BRANCH'
89 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000090 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080091 name: 'MBEDTLS_VERSION'
Summer Qina400be82020-10-28 15:00:00 +080092 default: 'mbedtls-2.24.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080093 - string:
94 name: 'MBEDTLS_URL'
95 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
96 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +010097 name: 'MCUBOOT_REFSPEC'
Tamas Ban476ecbf2020-11-02 08:46:36 +000098 default: 'refs/tags/1.7.0-rc1'
Tamas Ban424f8ce2020-10-06 12:06:04 +010099 description: |
100 Specify which MCUboot version to use
101 refs/heads/master : Pick up latest master
102 refs/tags/<TAG_NAME> : Pick up a tagged version
Tamas Ban810d7362020-06-09 10:03:36 +0100103 - string:
104 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800105 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100106 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800107 name: 'TFM_TESTS_URL'
108 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
109 - string:
110 name: 'TFM_TESTS_REFSPEC'
111 default: 'refs/heads/master'
112 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000113 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800114 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000115 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800116 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhangf34f5532020-11-10 14:34:48 +0800117 default: '90c8e68012156fdd84a2f7f204755e9f53340f0c'
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800118 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800119 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