[meta-arm,1/7] arm-bsp/scp-firmware: Build SCP/MCP for sgi575

Submitted by Prabin CA on Aug. 10, 2020, 5:32 p.m. | Patch ID: 175201

Details

Message ID 20200810173216.10411-1-prabin.ca@arm.com
State New
Headers show

Commit Message

Prabin CA Aug. 10, 2020, 5:32 p.m.
- Add bbappend recipe to build SCP and MCP firmware
      for SGI575.
    - Add machine conf to add image dependency
      for SCP-firmware components

Change-Id: Ic888ee11178979e5ec068f85a5e0d7f2cabb7f5e
Signed-off-by: Prabin CA <prabin.ca@arm.com>
---
 meta-arm-bsp/conf/machine/sgi575.conf         | 11 +++++++++++
 .../scp-firmware/scp-firmware-sgi575.inc      | 19 +++++++++++++++++++
 .../scp-firmware/scp-firmware_%.bbappend      |  1 +
 3 files changed, 31 insertions(+)
 create mode 100644 meta-arm-bsp/conf/machine/sgi575.conf
 create mode 100644 meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc

Patch hide | download patch | download mbox

diff --git a/meta-arm-bsp/conf/machine/sgi575.conf b/meta-arm-bsp/conf/machine/sgi575.conf
new file mode 100644
index 0000000..04c4900
--- /dev/null
+++ b/meta-arm-bsp/conf/machine/sgi575.conf
@@ -0,0 +1,11 @@ 
+# Configuration for Arm SGI575 development board
+
+#@TYPE: Machine
+#@NAME: SGI575
+#@DESCRIPTION: Machine configuration for SGI575
+
+TUNE_FEATURES = "aarch64"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+EXTRA_IMAGEDEPENDS += "virtual/control-processor-firmware"
diff --git a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc
new file mode 100644
index 0000000..158f481
--- /dev/null
+++ b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc
@@ -0,0 +1,19 @@ 
+# SGI575 specific SCP configurations and build instructions
+
+#it’s a tested tag post-2.6.0
+SRCREV    = "7a025658d8318e95dbab4259a8ff7834ae6d8061"
+SCP_PLATFORM  = "sgi575"
+SCP_LOG_LEVEL = "INFO"
+
+COMPATIBLE_MACHINE_sgi575 = "sgi575"
+
+do_install() {
+    install -d ${D}/firmware
+    install -D "${B}/product/${SCP_PLATFORM}/scp_romfw/release/bin/scp_romfw.bin" "${D}/firmware/"
+    install -D "${B}/product/${SCP_PLATFORM}/scp_ramfw/release/bin/scp_ramfw.bin" "${D}/firmware/"
+    install -D "${B}/product/${SCP_PLATFORM}/mcp_romfw/release/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 33ae7fe..9594cb4 100644
--- a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
+++ b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
@@ -4,5 +4,6 @@  MACHINE_SCP_REQUIRE ?= ""
 
 MACHINE_SCP_REQUIRE_n1sdp = "scp-firmware-n1sdp.inc"
 MACHINE_SCP_REQUIRE_tc0 = "scp-firmware-tc0.inc"
+MACHINE_SCP_REQUIRE_sgi575 = "scp-firmware-sgi575.inc"
 
 require ${MACHINE_SCP_REQUIRE}

Comments

Ross Burton Aug. 12, 2020, 10:22 a.m.
Hi Prabin,

This branch needs rebasing, can you do that please?

error: patch failed:
meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend:4

Ross

On Mon, 10 Aug 2020 at 21:56, Prabin CA <prabin.ca@arm.com> wrote:
>
>     - Add bbappend recipe to build SCP and MCP firmware
>       for SGI575.
>     - Add machine conf to add image dependency
>       for SCP-firmware components
>
> Change-Id: Ic888ee11178979e5ec068f85a5e0d7f2cabb7f5e
> Signed-off-by: Prabin CA <prabin.ca@arm.com>
> ---
>  meta-arm-bsp/conf/machine/sgi575.conf         | 11 +++++++++++
>  .../scp-firmware/scp-firmware-sgi575.inc      | 19 +++++++++++++++++++
>  .../scp-firmware/scp-firmware_%.bbappend      |  1 +
>  3 files changed, 31 insertions(+)
>  create mode 100644 meta-arm-bsp/conf/machine/sgi575.conf
>  create mode 100644 meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc
>
> diff --git a/meta-arm-bsp/conf/machine/sgi575.conf b/meta-arm-bsp/conf/machine/sgi575.conf
> new file mode 100644
> index 0000000..04c4900
> --- /dev/null
> +++ b/meta-arm-bsp/conf/machine/sgi575.conf
> @@ -0,0 +1,11 @@
> +# Configuration for Arm SGI575 development board
> +
> +#@TYPE: Machine
> +#@NAME: SGI575
> +#@DESCRIPTION: Machine configuration for SGI575
> +
> +TUNE_FEATURES = "aarch64"
> +
> +require conf/machine/include/arm/arch-armv8a.inc
> +
> +EXTRA_IMAGEDEPENDS += "virtual/control-processor-firmware"
> diff --git a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc
> new file mode 100644
> index 0000000..158f481
> --- /dev/null
> +++ b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc
> @@ -0,0 +1,19 @@
> +# SGI575 specific SCP configurations and build instructions
> +
> +#it’s a tested tag post-2.6.0
> +SRCREV    = "7a025658d8318e95dbab4259a8ff7834ae6d8061"
> +SCP_PLATFORM  = "sgi575"
> +SCP_LOG_LEVEL = "INFO"
> +
> +COMPATIBLE_MACHINE_sgi575 = "sgi575"
> +
> +do_install() {
> +    install -d ${D}/firmware
> +    install -D "${B}/product/${SCP_PLATFORM}/scp_romfw/release/bin/scp_romfw.bin" "${D}/firmware/"
> +    install -D "${B}/product/${SCP_PLATFORM}/scp_ramfw/release/bin/scp_ramfw.bin" "${D}/firmware/"
> +    install -D "${B}/product/${SCP_PLATFORM}/mcp_romfw/release/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 33ae7fe..9594cb4 100644
> --- a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
> +++ b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
> @@ -4,5 +4,6 @@ MACHINE_SCP_REQUIRE ?= ""
>
>  MACHINE_SCP_REQUIRE_n1sdp = "scp-firmware-n1sdp.inc"
>  MACHINE_SCP_REQUIRE_tc0 = "scp-firmware-tc0.inc"
> +MACHINE_SCP_REQUIRE_sgi575 = "scp-firmware-sgi575.inc"
>
>  require ${MACHINE_SCP_REQUIRE}
> --
> 2.28.0
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#1032): https://lists.yoctoproject.org/g/meta-arm/message/1032
Mute This Topic: https://lists.yoctoproject.org/mt/76113777/3617530
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-
Ross Burton Aug. 13, 2020, 5:27 p.m.
All merged to master, thanks.

Ross

On Wed, 12 Aug 2020 at 11:22, Ross Burton <ross@burtonini.com> wrote:
>
> Hi Prabin,
>
> This branch needs rebasing, can you do that please?
>
> error: patch failed:
> meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend:4
>
> Ross
>
> On Mon, 10 Aug 2020 at 21:56, Prabin CA <prabin.ca@arm.com> wrote:
> >
> >     - Add bbappend recipe to build SCP and MCP firmware
> >       for SGI575.
> >     - Add machine conf to add image dependency
> >       for SCP-firmware components
> >
> > Change-Id: Ic888ee11178979e5ec068f85a5e0d7f2cabb7f5e
> > Signed-off-by: Prabin CA <prabin.ca@arm.com>
> > ---
> >  meta-arm-bsp/conf/machine/sgi575.conf         | 11 +++++++++++
> >  .../scp-firmware/scp-firmware-sgi575.inc      | 19 +++++++++++++++++++
> >  .../scp-firmware/scp-firmware_%.bbappend      |  1 +
> >  3 files changed, 31 insertions(+)
> >  create mode 100644 meta-arm-bsp/conf/machine/sgi575.conf
> >  create mode 100644 meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc
> >
> > diff --git a/meta-arm-bsp/conf/machine/sgi575.conf b/meta-arm-bsp/conf/machine/sgi575.conf
> > new file mode 100644
> > index 0000000..04c4900
> > --- /dev/null
> > +++ b/meta-arm-bsp/conf/machine/sgi575.conf
> > @@ -0,0 +1,11 @@
> > +# Configuration for Arm SGI575 development board
> > +
> > +#@TYPE: Machine
> > +#@NAME: SGI575
> > +#@DESCRIPTION: Machine configuration for SGI575
> > +
> > +TUNE_FEATURES = "aarch64"
> > +
> > +require conf/machine/include/arm/arch-armv8a.inc
> > +
> > +EXTRA_IMAGEDEPENDS += "virtual/control-processor-firmware"
> > diff --git a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc
> > new file mode 100644
> > index 0000000..158f481
> > --- /dev/null
> > +++ b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-sgi575.inc
> > @@ -0,0 +1,19 @@
> > +# SGI575 specific SCP configurations and build instructions
> > +
> > +#it’s a tested tag post-2.6.0
> > +SRCREV    = "7a025658d8318e95dbab4259a8ff7834ae6d8061"
> > +SCP_PLATFORM  = "sgi575"
> > +SCP_LOG_LEVEL = "INFO"
> > +
> > +COMPATIBLE_MACHINE_sgi575 = "sgi575"
> > +
> > +do_install() {
> > +    install -d ${D}/firmware
> > +    install -D "${B}/product/${SCP_PLATFORM}/scp_romfw/release/bin/scp_romfw.bin" "${D}/firmware/"
> > +    install -D "${B}/product/${SCP_PLATFORM}/scp_ramfw/release/bin/scp_ramfw.bin" "${D}/firmware/"
> > +    install -D "${B}/product/${SCP_PLATFORM}/mcp_romfw/release/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 33ae7fe..9594cb4 100644
> > --- a/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
> > +++ b/meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend
> > @@ -4,5 +4,6 @@ MACHINE_SCP_REQUIRE ?= ""
> >
> >  MACHINE_SCP_REQUIRE_n1sdp = "scp-firmware-n1sdp.inc"
> >  MACHINE_SCP_REQUIRE_tc0 = "scp-firmware-tc0.inc"
> > +MACHINE_SCP_REQUIRE_sgi575 = "scp-firmware-sgi575.inc"
> >
> >  require ${MACHINE_SCP_REQUIRE}
> > --
> > 2.28.0
> >
> >
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#1043): https://lists.yoctoproject.org/g/meta-arm/message/1043
Mute This Topic: https://lists.yoctoproject.org/mt/76113777/3617530
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-