Add Morello platform to the CI
Add an SCP boot test config for the Morello platform.
Signed-off-by: Anurag Koul <anurag.koul@arm.com>
Change-Id: Ia64359a8793d9f4c7bc5bbc1838e5ed834d3b27f
diff --git a/run_config/fvp-fip.morello b/run_config/fvp-fip.morello
new file mode 100644
index 0000000..29e6c79
--- /dev/null
+++ b/run_config/fvp-fip.morello
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+post_tf_build() {
+
+ # Create FIP for SCP
+ "$fiptool" create --soc-fw "$tf_root/build/morello/$bin_mode/bl31.bin" --scp-fw "$archive/scp_ramfw_fvp.bin" "scp_fw.bin"
+ archive_file "scp_fw.bin"
+
+ # Create FIP for MCP, this needs fixed uuid for now
+ "$fiptool" create --blob uuid=54464222-a4cf-4bf8-b1b6-cee7dade539e,file="$archive/mcp_ramfw_fvp.bin" "mcp_fw.bin"
+ archive_file "mcp_fw.bin"
+}
diff --git a/run_config/fvp-linux.morello b/run_config/fvp-linux.morello
new file mode 100644
index 0000000..8534b07
--- /dev/null
+++ b/run_config/fvp-linux.morello
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+fetch_tf_resource() {
+ uart="1" set_primary="1" file="linux-rd-busybox.exp" track_expect
+
+ url="$morello_prebuilts/grub-busybox.img" saveas="busybox.bin" fetch_file
+
+ archive_file "busybox.bin"
+
+ payload_type="linux" gen_fvp_yaml_template
+}
diff --git a/run_config/fvp-morello b/run_config/fvp-morello
new file mode 100644
index 0000000..b52088d
--- /dev/null
+++ b/run_config/fvp-morello
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+fetch_tf_resource() {
+ uefi_ci_bin_url="$morello_prebuilts/uefi.bin" get_uefi_bin
+
+ # Hold terminal_uart_aon (SCP terminal)
+ uart="2" file="hold_uart.exp" track_expect
+}
+
+post_fetch_tf_resource() {
+ local model="morello"
+
+ model="morello" \
+ model_version="0.10" \
+ model_build="481" \
+ gen_model_params
+ set_run_env "ports_script" "$ci_root/model/morello-ports.awk"
+ set_run_env "num_uarts" "3"
+
+ uart="1" set_expect_variable ""skip_early_boot_msgs"" "1"
+ uart="1" set_expect_variable "num_cpus" "4"
+
+ model="$model" gen_fvp_yaml
+}