n1sdp: Add support for n1sdp in ci
Build scp and tf-a and test the artefacts on n1sdp in LAVA.
Change-Id: Iabe1bc65c5eb18f3204ec732fa259e7e6a4351bc
Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
diff --git a/run_config/n1sdp-fip b/run_config/n1sdp-fip
new file mode 100644
index 0000000..a609547
--- /dev/null
+++ b/run_config/n1sdp-fip
@@ -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/n1sdp/$bin_mode/bl31.bin" --scp-fw "$scp_root/build/product/n1sdp/scp_ramfw/$mode/bin/scp_ramfw.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="$scp_root/build/product/n1sdp/mcp_ramfw/$mode/bin/mcp_ramfw.bin" "mcp_fw.bin"
+ archive_file "mcp_fw.bin"
+}
diff --git a/run_config/n1sdp-firmware b/run_config/n1sdp-firmware
new file mode 100644
index 0000000..02bcf3a
--- /dev/null
+++ b/run_config/n1sdp-firmware
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+fetch_tf_resource() {
+ n1sdp_firmware_bin_url="$n1sdp_prebuilts/n1sdp-board-firmware.zip" get_n1sdp_firmware
+}
diff --git a/run_config/n1sdp-linux b/run_config/n1sdp-linux
new file mode 100644
index 0000000..b50417a
--- /dev/null
+++ b/run_config/n1sdp-linux
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_fetch_tf_resource() {
+ gen_recovery_image_n1sdp "$archive/n1sdp-board-firmware.zip"
+ payload_type="linux" gen_n1sdp_yaml
+}