tc: Add support for TC1 platform
This includes scp-boot-tests, AP boot tests and MISRA checks.
The tc0 platform arguments have also been modified to include
TARGET_PLATFORM.
Change-Id: I6e90add83cb39435ad0487aaa09a0002a3fe33a5
Signed-off-by: Usama Arif <usama.arif@arm.com>
diff --git a/run_config/fvp-fip.tc1 b/run_config/fvp-fip.tc1
new file mode 100644
index 0000000..439ec70
--- /dev/null
+++ b/run_config/fvp-fip.tc1
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_tf_build() {
+ url="$tc_prebuilts/u-boot.bin" fetch_file
+ archive_file "u-boot.bin"
+
+ # Use SCP binary from SCP build if it exists, or fetch pre-built ones.
+ if [ ! -f "$archive/scp_ramfw.bin" ]; then
+ url="$scp_prebuilts/scp_ramfw.bin" fetch_file
+ archive_file "scp_ramfw.bin"
+ fi
+
+ build_fip BL33="$archive/u-boot.bin" SCP_BL2="$archive/scp_ramfw.bin"
+}
diff --git a/run_config/fvp-linux.tc1 b/run_config/fvp-linux.tc1
new file mode 100644
index 0000000..a2ca995
--- /dev/null
+++ b/run_config/fvp-linux.tc1
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2020 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+fetch_tf_resource() {
+ kernel_type="fvp-tc-kernel" get_kernel
+ initrd_type="fvp-tc-ramdisk" get_initrd
+ uart="1" set_primary="1" file="linux-rd-busybox.exp" track_expect
+
+ payload_type="linux" gen_fvp_yaml_template
+}
diff --git a/run_config/fvp-tc0 b/run_config/fvp-tc0
index ae079c9..4199743 100644
--- a/run_config/fvp-tc0
+++ b/run_config/fvp-tc0
@@ -20,7 +20,7 @@
local model="tc0"
model="$model" gen_model_params
- set_run_env "ports_script" "$ci_root/model/tc0-ports.awk"
+ set_run_env "ports_script" "$ci_root/model/tc-ports.awk"
set_run_env "num_uarts" "2"
uart="1" set_expect_variable "num_cpus" "8"
model="$model" gen_fvp_yaml
diff --git a/run_config/fvp-tc1 b/run_config/fvp-tc1
new file mode 100644
index 0000000..c401de8
--- /dev/null
+++ b/run_config/fvp-tc1
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+fetch_tf_resource() {
+ # Use SCP binary from SCP build if it exists, or fetch pre-built ones.
+ if [ ! -f "$archive/scp_romfw.bin" ]; then
+ url="$scp_prebuilts/scp_romfw.bin" fetch_file
+ archive_file "scp_romfw.bin"
+ fi
+
+ # Hold scp terminal_s0
+ uart="0" file="hold_uart.exp" track_expect
+}
+
+post_fetch_tf_resource() {
+ local model="tc1"
+
+ model="$model" gen_model_params
+ set_run_env "ports_script" "$ci_root/model/tc-ports.awk"
+ set_run_env "num_uarts" "2"
+ uart="1" set_expect_variable "num_cpus" "8"
+ model="$model" gen_fvp_yaml
+}