Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 3 | # Copyright (c) 2019-2021 Arm Limited. All rights reserved. |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | # Generate a FVP-Linux model agnostic YAML template. Note that this template is not ready to be |
| 9 | # sent to LAVA by Jenkins so in order to produce file, variables in ${UPPERCASE} must be replaced |
| 10 | # to correct values |
| 11 | |
| 12 | cat <<EOF |
| 13 | device_type: fvp |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 14 | job_name: fvp-linux-{MODEL} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 15 | |
| 16 | timeouts: |
| 17 | connection: |
| 18 | minutes: 3 |
| 19 | job: |
Leonardo Sandoval | 3f1430d | 2020-11-20 10:33:07 -0600 | [diff] [blame] | 20 | minutes: 30 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 21 | actions: |
| 22 | auto-login-action: |
| 23 | minutes: 5 |
| 24 | http-download: |
| 25 | minutes: 2 |
| 26 | download-retry: |
| 27 | minutes: 2 |
| 28 | fvp-deploy: |
| 29 | minutes: 5 |
| 30 | |
| 31 | priority: medium |
| 32 | visibility: public |
| 33 | |
| 34 | actions: |
| 35 | - deploy: |
| 36 | to: fvp |
| 37 | images: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 38 | backup_fip: |
| 39 | url: {BACKUP_FIP} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 40 | bl1: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 41 | url: {BL1} |
| 42 | bl2: |
| 43 | url: {BL2} |
| 44 | bl31: |
| 45 | url: {BL31} |
| 46 | bl32: |
| 47 | url: {BL32} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 48 | dtb: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 49 | url: {DTB} |
| 50 | el3_payload: |
| 51 | url: {EL3_PAYLOAD} |
| 52 | fip: |
| 53 | url: {FIP} |
| 54 | fwu_fip: |
| 55 | url: {FWU_FIP} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 56 | image: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 57 | url: {IMAGE} |
| 58 | ns_bl1u: |
| 59 | url: {NS_BL1U} |
| 60 | ns_bl2u: |
| 61 | url: {NS_BL2U} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 62 | ramdisk: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 63 | url: {RAMDISK} |
| 64 | romlib: |
| 65 | url: {ROMLIB} |
| 66 | rootfs: |
| 67 | url: {ROOTFS} |
| 68 | compression: gz |
| 69 | spm: |
| 70 | url: {SPM} |
| 71 | tftf: |
| 72 | url: {TFTF} |
| 73 | tmp: |
| 74 | url: {TMP} |
| 75 | uboot: |
| 76 | url: {UBOOT} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 77 | |
| 78 | - boot: |
| 79 | method: fvp |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 80 | license_variable: ARMLMD_LICENSE_FILE={ARMLMD_LICENSE_FILE} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 81 | docker: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 82 | name: {BOOT_DOCKER_NAME} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 83 | local: true |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 84 | image: {BOOT_IMAGE_DIR}/{BOOT_IMAGE_BIN} |
| 85 | version_string: {BOOT_VERSION_STRING} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 86 | console_string: 'terminal_0: Listening for serial connection on port (?P<PORT>\d+)' |
Leonardo Sandoval | 44ac9aa | 2020-11-09 12:55:57 -0600 | [diff] [blame] | 87 | timeout: |
| 88 | minutes: 30 |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 89 | arguments: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 90 | {BOOT_ARGUMENTS} |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 91 | prompts: |
Leonardo Sandoval | 850a486 | 2021-02-16 13:56:18 -0600 | [diff] [blame^] | 92 | - '{PROMPT1}' |
| 93 | - '{PROMPT2}' |
Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 94 | EOF |