blob: 183cce02037015ef396b641024b03f7fef2ec5b2 [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
Xinyu Zhangd527ed62020-11-25 10:41:30 +080022 karl-zh:
23 - job-read
24 - job-extended-read
25 - job-build
26 - job-cancel
27 xinyu-tfm:
28 - job-read
29 - job-extended-read
30 - job-build
31 - job-cancel
Dean Birche4cbc7c2020-01-20 10:40:21 +000032 concurrent: true
33 parameters:
34 - string:
35 name: 'CONFIG_NAME'
36 - string:
37 name: 'TARGET_PLATFORM'
38 description: |
39 Specifies the target platform.
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: 'PROJ_CONFIG'
44 description: |
45 Specifies the way the application is built.
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: 'COMPILER'
50 description: |
51 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010052 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 +000053 default: ''
54 - string:
55 name: 'CMAKE_BUILD_TYPE'
56 description: |
57 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010058 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 +000059 default: ''
60 - string:
61 name: 'BL2'
62 default: 'True'
63 description: |
64 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010065 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 +000066 - string:
67 name: 'GERRIT_REFSPEC'
68 default: 'refs/heads/master'
69 description: |
70 For use when triggering with unmerged Gerrit changes.
71 - string:
72 name: 'GERRIT_BRANCH'
73 default: 'master'
74 description: |
75 For use when triggering with unmerged Gerrit changes.
76 - string:
77 name: 'GERRIT_HOST'
78 default: ''
79 description: |
80 For use when triggering with unmerged Gerrit changes.
81 - string:
82 name: 'GERRIT_PATCHSET_REVISION'
83 default: ''
84 description: |
85 For use when triggering with unmerged Gerrit changes.
86 - string:
87 name: 'GERRIT_CHANGE_NUMBER'
88 default: ''
89 description: |
90 For use when triggering with unmerged Gerrit changes.
91 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010092 name: 'CODE_REPO'
93 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
94 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000095 name: 'CI_SCRIPTS_REPO'
96 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
97 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010098 name: 'CI_SCRIPTS_BRANCH'
99 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000100 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800101 name: 'MBEDTLS_VERSION'
Summer Qina400be82020-10-28 15:00:00 +0800102 default: 'mbedtls-2.24.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800103 - string:
104 name: 'MBEDTLS_URL'
105 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
106 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +0100107 name: 'MCUBOOT_REFSPEC'
Raef Colescb113a42020-12-16 13:51:07 +0000108 default: '81d19f017f18f1bc6bea906d96fd45fba3672064'
Tamas Ban424f8ce2020-10-06 12:06:04 +0100109 description: |
110 Specify which MCUboot version to use
111 refs/heads/master : Pick up latest master
112 refs/tags/<TAG_NAME> : Pick up a tagged version
Tamas Ban810d7362020-06-09 10:03:36 +0100113 - string:
114 name: 'MCUBOOT_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800115 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Ban810d7362020-06-09 10:03:36 +0100116 - string:
Kevin Peng813a9a52020-06-17 14:14:46 +0800117 name: 'TFM_TESTS_URL'
118 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
119 - string:
120 name: 'TFM_TESTS_REFSPEC'
121 default: 'refs/heads/master'
122 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000123 name: 'PSA_ARCH_TESTS_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +0800124 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000125 - string:
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800126 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhangf34f5532020-11-10 14:34:48 +0800127 default: '90c8e68012156fdd84a2f7f204755e9f53340f0c'
Karl Zhangb4e6bc92020-06-17 11:35:50 +0800128 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800129 name: 'CODE_COVERAGE_EN'
130 default: 'FALSE'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000131 pipeline-scm:
132 scm:
133 - git:
134 url: '$CI_SCRIPTS_REPO'
135 branches:
136 - '$CI_SCRIPTS_BRANCH'
137 credentials-id: GIT_SSH_KEY
138 wipe-workspace: false
139 script-path: jenkins/build-config.jpl