feat(plat/fvp_r): add run and test configs to boot Yocto Linux on FVP-R

This patch adds the appropriate files to build TF-A for fvp_r
and then boot to the Yocto Linux command line. If the command
line is reached the test is considered successful.

This patch only adds support for ARM internal Jenkins CI, support for
OpenCI will be added in a future patch.

Files needed by Jenkins can be found here:
http://files.oss.arm.com/downloads/tf-a/fvp_r/

Change-Id: Id18f76b0233d67a8ae8967fedc5b93220a09002e
Signed-off-by: John Powell <john.powell@arm.com>
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
diff --git a/run_config/fvp-aemv8r.linux b/run_config/fvp-aemv8r.linux
new file mode 100755
index 0000000..8e597f0
--- /dev/null
+++ b/run_config/fvp-aemv8r.linux
@@ -0,0 +1,44 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_tf_build() {
+	# Download and archive FVP-R files
+	url="$tfa_downloads/fvp_r/core-image-minimal-fvp-baser-aemv8r64.wic" saveas="rootfs.bin" fetch_file
+	url="$tfa_downloads/fvp_r/fvp-baser-aemv8r64.dtb" saveas="dtb.bin" fetch_file
+	url="$tfa_downloads/fvp_r/Image" saveas="kernel.bin" fetch_file
+	url="$tfa_downloads/fvp_r/u-boot.bin" saveas="uboot.bin" fetch_file
+
+	archive_file "rootfs.bin"
+	archive_file "dtb.bin"
+	archive_file "kernel.bin"
+	archive_file "uboot.bin"
+
+	# Build FIP image with Uboot as BL33
+	build_fip BL33="$archive/uboot.bin"
+}
+
+fetch_tf_resource() {
+	# Expect script for yocto linux boot
+	uart="0" file="fvp-r-yocto.exp" track_expect
+
+	# Generate FVP model YAML template
+	payload_type="linux" gen_fvp_yaml_template
+}
+
+post_fetch_tf_resource() {
+        local model="baser-aemv8r"
+
+        # Generate the model command parameters
+	model="$model" \
+	fip_addr=0x40000000 \
+	dtb_addr=0x03000000 \
+	kernel_addr=0x00800000 \
+	gen_model_params
+
+	# Generate the FVP yaml file
+	model="$model" gen_fvp_yaml
+}