Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Summer Qin | 7632b81 | 2022-01-05 17:33:35 +0800 | [diff] [blame] | 2 | # Copyright (c) 2020-2022, Arm Limited. All rights reserved. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 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 Zhang | ac46bbe | 2020-11-05 09:36:12 +0800 | [diff] [blame] | 17 | num-to-keep: 3000 |
Riku Voipio | d4ea534 | 2020-09-04 16:00:02 +0300 | [diff] [blame] | 18 | - authorization: |
Fathi Boudra | db89177 | 2021-03-02 14:12:48 +0100 | [diff] [blame] | 19 | !include: authorization.yaml.inc |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 20 | concurrent: true |
| 21 | parameters: |
| 22 | - string: |
| 23 | name: 'CONFIG_NAME' |
| 24 | - string: |
| 25 | name: 'TARGET_PLATFORM' |
| 26 | description: | |
| 27 | Specifies the target platform. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 28 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 29 | default: '' |
| 30 | - string: |
| 31 | name: 'PROJ_CONFIG' |
| 32 | description: | |
| 33 | Specifies the way the application is built. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 34 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 35 | default: '' |
| 36 | - string: |
| 37 | name: 'COMPILER' |
| 38 | description: | |
| 39 | Specifies the compiler toolchain. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 40 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 41 | default: '' |
| 42 | - string: |
Xinyu Zhang | 0b0cdef | 2022-01-14 14:51:08 +0800 | [diff] [blame] | 43 | name: 'COMPILER_VERSION' |
| 44 | description: | |
| 45 | Specifies the compiler version. |
| 46 | default: 'GCC_7_3_1' |
| 47 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 48 | name: 'CMAKE_BUILD_TYPE' |
| 49 | description: | |
| 50 | Configures debugging support. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 51 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 52 | default: '' |
| 53 | - string: |
Paul Sokolovsky | cb2f689 | 2022-01-22 18:17:43 +0300 | [diff] [blame^] | 54 | name: 'LIB_MODEL' |
| 55 | default: 'True' |
| 56 | - string: |
| 57 | name: 'ISOLATION_LEVEL' |
| 58 | default: '1' |
| 59 | - string: |
| 60 | name: 'TEST_REGRESSION' |
| 61 | default: 'False' |
| 62 | - string: |
| 63 | name: 'TEST_PSA_API' |
| 64 | default: 'OFF' |
| 65 | - string: |
| 66 | name: 'PROFILE' |
| 67 | default: 'N.A' |
| 68 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 69 | name: 'BL2' |
| 70 | default: 'True' |
| 71 | description: | |
| 72 | Whether to build BL2. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 73 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 74 | - string: |
Paul Sokolovsky | cb2f689 | 2022-01-22 18:17:43 +0300 | [diff] [blame^] | 75 | name: 'NS' |
| 76 | default: 'True' |
| 77 | - string: |
| 78 | name: 'PARTITION_PS' |
| 79 | default: 'ON' |
| 80 | - string: |
| 81 | name: 'EXTRA_PARAMS' |
| 82 | default: 'N.A' |
| 83 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 84 | name: 'GERRIT_REFSPEC' |
| 85 | default: 'refs/heads/master' |
| 86 | description: | |
| 87 | For use when triggering with unmerged Gerrit changes. |
| 88 | - string: |
| 89 | name: 'GERRIT_BRANCH' |
| 90 | default: 'master' |
| 91 | description: | |
| 92 | For use when triggering with unmerged Gerrit changes. |
| 93 | - string: |
| 94 | name: 'GERRIT_HOST' |
| 95 | default: '' |
| 96 | description: | |
| 97 | For use when triggering with unmerged Gerrit changes. |
| 98 | - string: |
| 99 | name: 'GERRIT_PATCHSET_REVISION' |
| 100 | default: '' |
| 101 | description: | |
| 102 | For use when triggering with unmerged Gerrit changes. |
| 103 | - string: |
| 104 | name: 'GERRIT_CHANGE_NUMBER' |
| 105 | default: '' |
| 106 | description: | |
| 107 | For use when triggering with unmerged Gerrit changes. |
| 108 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 109 | name: 'CODE_REPO' |
| 110 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 111 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 112 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 113 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 114 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 115 | name: 'CI_SCRIPTS_BRANCH' |
| 116 | default: 'master' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 117 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 118 | name: 'MBEDTLS_VERSION' |
Summer Qin | 7632b81 | 2022-01-05 17:33:35 +0800 | [diff] [blame] | 119 | default: 'mbedtls-3.1.0' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 120 | - string: |
| 121 | name: 'MBEDTLS_URL' |
| 122 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 123 | - string: |
Tamas Ban | 29d6e44 | 2020-09-16 13:42:51 +0100 | [diff] [blame] | 124 | name: 'MCUBOOT_REFSPEC' |
Sherry Zhnag | 7cc6e32 | 2021-11-04 15:12:15 +0800 | [diff] [blame] | 125 | default: 'v1.8.0' |
Tamas Ban | 424f8ce | 2020-10-06 12:06:04 +0100 | [diff] [blame] | 126 | description: | |
| 127 | Specify which MCUboot version to use |
| 128 | refs/heads/master : Pick up latest master |
| 129 | refs/tags/<TAG_NAME> : Pick up a tagged version |
Tamas Ban | 810d736 | 2020-06-09 10:03:36 +0100 | [diff] [blame] | 130 | - string: |
| 131 | name: 'MCUBOOT_URL' |
Karl Zhang | 2e1ab8e | 2020-06-28 15:27:37 +0800 | [diff] [blame] | 132 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
Tamas Ban | 810d736 | 2020-06-09 10:03:36 +0100 | [diff] [blame] | 133 | - string: |
Kevin Peng | 813a9a5 | 2020-06-17 14:14:46 +0800 | [diff] [blame] | 134 | name: 'TFM_TESTS_URL' |
| 135 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 136 | - string: |
| 137 | name: 'TFM_TESTS_REFSPEC' |
| 138 | default: 'refs/heads/master' |
| 139 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 140 | name: 'PSA_ARCH_TESTS_URL' |
Karl Zhang | 2e1ab8e | 2020-06-28 15:27:37 +0800 | [diff] [blame] | 141 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 142 | - string: |
Karl Zhang | b4e6bc9 | 2020-06-17 11:35:50 +0800 | [diff] [blame] | 143 | name: 'PSA_ARCH_TESTS_VERSION' |
Xinyu Zhang | 049657b | 2021-11-11 13:51:19 +0800 | [diff] [blame] | 144 | default: 'v21.10_API1.3_ADAC_ALPHA-1' |
Karl Zhang | b4e6bc9 | 2020-06-17 11:35:50 +0800 | [diff] [blame] | 145 | - string: |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 146 | name: 'CODE_COVERAGE_EN' |
| 147 | default: 'FALSE' |
Hugo L'Hostis | ad58649 | 2021-01-06 11:53:30 +0000 | [diff] [blame] | 148 | - string: |
| 149 | name: 'SQUAD_CONFIGURATIONS' |
| 150 | default: '' |
| 151 | description: 'Reference configurations whose metrics will be sent to a SQUAD Dashboard' |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 152 | - string: |
| 153 | name: SHARE_FOLDER |
| 154 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 155 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 156 | wrappers: |
| 157 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 158 | pipeline-scm: |
| 159 | scm: |
| 160 | - git: |
| 161 | url: '$CI_SCRIPTS_REPO' |
| 162 | branches: |
| 163 | - '$CI_SCRIPTS_BRANCH' |
| 164 | credentials-id: GIT_SSH_KEY |
| 165 | wipe-workspace: false |
| 166 | script-path: jenkins/build-config.jpl |