Leonardo Sandoval | d76d1e2 | 2020-10-06 16:02:52 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Copyright (c) 2019, Arm Limited. All rights reserved. |
| 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 |
| 14 | job_name: tf-fvp |
| 15 | |
| 16 | timeouts: |
| 17 | connection: |
| 18 | minutes: 3 |
| 19 | job: |
| 20 | minutes: 10 |
| 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: |
| 38 | bl1: |
| 39 | url: \${ACTIONS_DEPLOY_IMAGES_BL1} |
| 40 | fip: |
| 41 | url: \${ACTIONS_DEPLOY_IMAGES_FIP} |
| 42 | dtb: |
| 43 | url: \${ACTIONS_DEPLOY_IMAGES_DTB} |
| 44 | image: |
| 45 | url: \${ACTIONS_DEPLOY_IMAGES_IMAGE} |
| 46 | ramdisk: |
| 47 | url: \${ACTIONS_DEPLOY_IMAGES_RAMDISK} |
| 48 | |
| 49 | - boot: |
| 50 | method: fvp |
| 51 | docker: |
| 52 | name: \${BOOT_DOCKER_NAME} |
| 53 | local: true |
| 54 | image: \${BOOT_IMAGE} |
| 55 | version_string: \${BOOT_VERSION_STRING} |
| 56 | timeout: |
| 57 | minutes: 7 |
| 58 | console_string: 'terminal_0: Listening for serial connection on port (?P<PORT>\d+)' |
| 59 | arguments: |
| 60 | \${BOOT_ARGUMENTS} |
| 61 | prompts: |
| 62 | - '/ #' |
| 63 | EOF |