Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 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 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: |
| 19 | anonymous: |
| 20 | - job-read |
| 21 | - job-extended-read |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 22 | concurrent: true |
| 23 | parameters: |
| 24 | - string: |
| 25 | name: 'CONFIG_NAME' |
| 26 | - string: |
| 27 | name: 'TARGET_PLATFORM' |
| 28 | description: | |
| 29 | Specifies the target platform. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame^] | 30 | 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] | 31 | default: '' |
| 32 | - string: |
| 33 | name: 'PROJ_CONFIG' |
| 34 | description: | |
| 35 | Specifies the way the application is built. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame^] | 36 | 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] | 37 | default: '' |
| 38 | - string: |
| 39 | name: 'COMPILER' |
| 40 | description: | |
| 41 | Specifies the compiler toolchain. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame^] | 42 | 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] | 43 | default: '' |
| 44 | - string: |
| 45 | name: 'CMAKE_BUILD_TYPE' |
| 46 | description: | |
| 47 | Configures debugging support. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame^] | 48 | 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] | 49 | default: '' |
| 50 | - string: |
| 51 | name: 'BL2' |
| 52 | default: 'True' |
| 53 | description: | |
| 54 | Whether to build BL2. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame^] | 55 | 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] | 56 | - 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 Birch | 1817bb6 | 2020-06-02 14:00:23 +0100 | [diff] [blame] | 86 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 87 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 88 | name: 'MBEDTLS_VERSION' |
Summer Qin | a400be8 | 2020-10-28 15:00:00 +0800 | [diff] [blame] | 89 | default: 'mbedtls-2.24.0' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 90 | - string: |
| 91 | name: 'MBEDTLS_URL' |
| 92 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 93 | - string: |
Tamas Ban | 29d6e44 | 2020-09-16 13:42:51 +0100 | [diff] [blame] | 94 | name: 'MCUBOOT_REFSPEC' |
Tamas Ban | 476ecbf | 2020-11-02 08:46:36 +0000 | [diff] [blame] | 95 | default: 'refs/tags/1.7.0-rc1' |
Tamas Ban | 424f8ce | 2020-10-06 12:06:04 +0100 | [diff] [blame] | 96 | 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 Ban | 810d736 | 2020-06-09 10:03:36 +0100 | [diff] [blame] | 100 | - string: |
| 101 | name: 'MCUBOOT_URL' |
Karl Zhang | 2e1ab8e | 2020-06-28 15:27:37 +0800 | [diff] [blame] | 102 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
Tamas Ban | 810d736 | 2020-06-09 10:03:36 +0100 | [diff] [blame] | 103 | - string: |
Kevin Peng | 813a9a5 | 2020-06-17 14:14:46 +0800 | [diff] [blame] | 104 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 110 | name: 'PSA_ARCH_TESTS_URL' |
Karl Zhang | 2e1ab8e | 2020-06-28 15:27:37 +0800 | [diff] [blame] | 111 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 112 | - string: |
Karl Zhang | b4e6bc9 | 2020-06-17 11:35:50 +0800 | [diff] [blame] | 113 | name: 'PSA_ARCH_TESTS_VERSION' |
Karl Zhang | be94033 | 2020-11-05 09:11:52 +0800 | [diff] [blame] | 114 | default: '5c0399f2ca8ab921d5b3f9643a9a2b57b47191ec' |
Karl Zhang | b4e6bc9 | 2020-06-17 11:35:50 +0800 | [diff] [blame] | 115 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 116 | name: 'CI_SCRIPTS_BRANCH' |
| 117 | default: 'master' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 118 | - string: |
| 119 | name: 'CODE_COVERAGE_EN' |
| 120 | default: 'FALSE' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 121 | 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 |