[meta-arm,2/6] arm-bsp/scp-firmware: Build SCP/MCP for rdn1edge

Submitted by Thomas Abraham on Nov. 20, 2020, 4:28 a.m. | Patch ID: 178121

Details

Message ID 20201120042844.21915-2-thomas.abraham@arm.com
State New
Headers show

Commit Message

Thomas Abraham Nov. 20, 2020, 4:28 a.m.
From: Vivek Gautam <vivek.gautam@arm.com>


Add bbappend recipe to build SCP and MCP firmware for the rdn1edge
platform. In addition to this, add machine conf to add image
dependency for SCP-firmware components.

Change-Id: I2b64216d18ce4c28d7a720fffd638ca3be06d8d1
Signed-off-by: Vivek Gautam <vivek.gautam@arm.com>

---
 meta-arm-bsp/conf/machine/rdn1edge.conf          |  3 +++
 .../scp-firmware/scp-firmware-rdn1edge.inc       | 16 ++++++++++++++++
 .../scp-firmware/scp-firmware_%.bbappend         |  1 +
 3 files changed, 20 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-rdn1edge.inc

-- 
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1402): https://lists.yoctoproject.org/g/meta-arm/message/1402
Mute This Topic: https://lists.yoctoproject.org/mt/78382824/1003190
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta-arm-bsp/conf/machine/rdn1edge.conf b/meta-arm-bsp/conf/machine/rdn1edge.conf
index 088e09d..47d1d05 100644
--- a/meta-arm-bsp/conf/machine/rdn1edge.conf
+++ b/meta-arm-bsp/conf/machine/rdn1edge.conf
@@ -5,3 +5,6 @@ 
 #@DESCRIPTION: Machine configuration for RD-N1-Edge
 
 require conf/machine/include/tune-neoversen1.inc
+
+#include SCP/MCP firmware
+EXTRA_IMAGEDEPENDS += "virtual/control-processor-firmware"
diff --git a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-rdn1edge.inc b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-rdn1edge.inc
new file mode 100644
index 0000000..aba8409
--- /dev/null
+++ b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-rdn1edge.inc
@@ -0,0 +1,16 @@ 
+# RD-N1-Edge specific SCP configurations and build instructions
+
+#it’s a tested tag post-2.6.0
+SRCREV    = "3e99f94ad195ab902a50d0368c80810ec10f0e42"
+SCP_PLATFORM  = "rdn1e1"
+
+COMPATIBLE_MACHINE_rdn1edge = "rdn1edge"
+
+do_install() {
+    install -d ${D}/firmware
+    install -D "${B}/product/${SCP_PLATFORM}/scp_romfw/${SCP_BUILD_STR}/bin/scp_romfw.bin" "${D}/firmware/"
+    install -D "${B}/product/${SCP_PLATFORM}/scp_ramfw/${SCP_BUILD_STR}/bin/scp_ramfw.bin" "${D}/firmware/"
+    install -D "${B}/product/${SCP_PLATFORM}/mcp_romfw/${SCP_BUILD_STR}/bin/mcp_romfw.bin" "${D}/firmware/"
+}
+
+PV = "2.6.0+git${SRCPV}"
diff --git a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
index 8a68704..9e1b20d 100644
--- a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
+++ b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
@@ -6,6 +6,7 @@  MACHINE_SCP_REQUIRE_n1sdp = "scp-firmware-n1sdp.inc"
 MACHINE_SCP_REQUIRE_tc0 = "scp-firmware-tc0.inc"
 MACHINE_SCP_REQUIRE_juno = "scp-firmware-juno.inc"
 MACHINE_SCP_REQUIRE_sgi575 = "scp-firmware-sgi575.inc"
+MACHINE_SCP_REQUIRE_rdn1edge = "scp-firmware-rdn1edge.inc"
 MACHINE_SCP_REQUIRE_corstone700 = "scp-firmware-corstone700.inc"
 
 require ${MACHINE_SCP_REQUIRE}