feat(rd1ae): Add runtime script for rd1ae platform

This patch adds a runtime script configuration and build
generation scripts, along with the necessary expect logs
and port configuration.

Change-Id: I7a5b2d30c8a17332d347eef781e41dad6d6167ec
Signed-off-by: Divin Raj <divin.raj@arm.com>
diff --git a/run_config/fvp-linux.rd1ae b/run_config/fvp-linux.rd1ae
new file mode 100644
index 0000000..c0665a0
--- /dev/null
+++ b/run_config/fvp-linux.rd1ae
@@ -0,0 +1,56 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2024, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+source "$ci_root/run_config/rd1ae_rse_utils.sh"
+source "$ci_root/arm_auto_solutions_utils.sh"
+
+post_tf_build() {
+	# Download and archive rd1ae u-boot.bin files
+	url="$arm_automotive_solutions/rd1ae/u-boot.bin" saveas="uboot.bin" fetch_file
+	archive_file "uboot.bin"
+
+	build_fip BL33="$archive/uboot.bin"
+}
+
+fetch_tf_resource() {
+	# Sign ap_bl2 image with RSE public key
+	sign_host_ap_bl2_image bl2.bin $rd1ae_ap_bl2_flash_load_addr $rd1ae_ap_bl2_flash_size
+
+	# Update fip image with signed ap_bl2
+	bin_name="tb-fw" src="$archive/$signed_bin" fip_update
+
+	# Download all required images to boot rd1ae
+	downlaod_rd1ae_prebuilt
+
+	# Update ap-flash-image with newly created fip image
+	update_ap_flash_image
+}
+
+generate_lava_job_template() {
+	payload_type="linux" gen_yaml_template
+}
+
+generate_lava_job() {
+	local model="rd1ae"
+	uart="1" set_expect_variable "num_cpus" "8"
+
+	# Hold scp terminal_uart_scp
+	uart="2" port="5007" file="hold_uart.exp" track_expect
+	uart="0" port="5009" file="rd1ae-tf.exp" track_expect
+	uart="1" port="5008" file="rd1ae-yocto.exp" set_primary="1" timeout="1200" track_expect
+
+	set_run_env "ports_script" "$ci_root/model/rd1ae-ports.awk"
+	set_run_env "num_uarts" "3"
+
+	model="$model" \
+			model_build="20" \
+			model_flavour="Linux64_GCC-9.3" \
+			model_version="11.27" \
+			gen_model_params
+
+	model="$model" gen_fvp_yaml
+}
+