* [PATCH] meta-arm: Add SCP MCP build support
@ 2020-06-02 16:52 Khasim Mohammed
2020-06-08 15:50 ` [meta-arm] " Jon Mason
0 siblings, 1 reply; 4+ messages in thread
From: Khasim Mohammed @ 2020-06-02 16:52 UTC (permalink / raw)
To: meta-arm; +Cc: nd, Khasim Syed Mohammed, Patrik Berglund
SCP-firmware provides a software reference implementation for
the System Control Processor (SCP) and Manageability Control
Processor (MCP) components found in several Arm Compute
Sub-Systems.
This patch set adds support to fetch and build SCP and MCP
firmware binaries
Issue-Id: PLATFORMS-3134
Change-Id: Ic7259bb430c9e7e9711c9c8bc3283aafaacdf707
Signed-off-by: Patrik Berglund <patrik.berglund@arm.com>
Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
---
.../recipes-bsp/scp-firmware/scp-firmware.inc | 71 +++++++++++++++++++
.../scp-firmware/scp-firmware_git.bb | 20 ++++++
2 files changed, 91 insertions(+)
create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc b/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
new file mode 100644
index 0000000..1873848
--- /dev/null
+++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
@@ -0,0 +1,71 @@
+SUMMARY = "SCP and MCP Firmware"
+
+PROVIDES += "virtual/control-processor-firmware"
+
+SCP_BUILD_RELEASE ?= "1"
+SCP_COMPILE_VERBOSE ?= "0"
+SCP_PLATFORM ?= "invalid"
+SCP_COMPILER ?= "arm-none-eabi"
+
+DEPENDS += "virtual/arm-none-eabi-gcc-native"
+
+SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1', 'release', 'debug', d)}"
+SCP_COMP_STR = "${@bb.utils.contains('SCP_COMPILE_VERBOSE', '0', '', 'V=1', d)}"
+
+inherit python3native
+inherit deploy
+
+B = "${WORKDIR}/build"
+S = "${WORKDIR}/src"
+
+# Allow platform specific copying of only scp or both scp & mcp, default to both
+FW_TARGETS ?= "scp mcp"
+
+COMPATIBLE_MACHINE ?= "invalid"
+
+LDFLAGS[unexport] = "1"
+
+# The gcc-arm-none-eabi version does not support -fmacro-prefix-max
+DEBUG_PREFIX_MAP_pn-scp = "\
+ -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
+ -fdebug-prefix-map=${STAGING_DIR_HOST}= \
+ -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
+"
+
+# No configure
+do_configure[noexec] = "1"
+
+EXTRA_OEMAKE = "${SCP_COMP_STR} \
+ BUILD_PATH='${B}' \
+ PRODUCT='${SCP_PLATFORM}' \
+ MODE='${SCP_BUILD_STR}' \
+ CC='${SCP_COMPILER}-gcc' \
+ AR='${SCP_COMPILER}-ar' \
+ SIZE='${SCP_COMPILER}-size' \
+ OBJCOPY='${SCP_COMPILER}-objcopy' \
+ "
+
+do_compile() {
+ oe_runmake -C "${S}" ${EXTRA_OEMAKE}
+}
+do_compile[cleandirs] += "${B}"
+
+do_install() {
+ install -d ${D}/firmware
+ for FW in ${FW_TARGETS}; do
+ for TYPE in ramfw romfw; do
+ install -D "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/release/bin/${FW}_${TYPE}.bin" "${D}/firmware/"
+ done
+ done
+}
+
+FILES_${PN} = "/firmware"
+SYSROOT_DIRS += "/firmware"
+# Skip QA check for relocations in .text of elf binaries
+INSANE_SKIP_${PN} = "textrel"
+
+do_deploy() {
+ # Copy the images to deploy directory
+ cp -rf ${D}/firmware/* ${DEPLOYDIR}/
+}
+addtask deploy after do_install
diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
new file mode 100644
index 0000000..5ff5859
--- /dev/null
+++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
@@ -0,0 +1,20 @@
+DESCRIPTION = "Firmware for SCP and MCP software reference implementation"
+HOMEPAGE = "https://github.com/ARM-software/SCP-firmware"
+
+LICENSE = "BSD-3-Clause & Apache-2.0"
+
+# SCP
+LIC_FILES_CHKSUM = "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731"
+# CMSIS
+LIC_FILES_CHKSUM += "file://cmsis/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+SRC_URI = "\
+ git://github.com/ARM-software/SCP-firmware.git;protocol=https;name=scp;destsuffix=src;nobranch=1 \
+ git://github.com/ARM-software/CMSIS_5.git;protocol=https;name=cmsis;destsuffix=src/cmsis;lfs=0;nobranch=1 \
+"
+
+SRCREV_scp = "db19910aca6d1032eb0329e5fbb70a92b997f6f2"
+SRCREV_cmsis = "refs/tags/5.2.0"
+SRCREV_FORMAT = "scp_cmsis"
+
+require scp-firmware.inc
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-arm] [PATCH] meta-arm: Add SCP MCP build support
2020-06-02 16:52 [PATCH] meta-arm: Add SCP MCP build support Khasim Mohammed
@ 2020-06-08 15:50 ` Jon Mason
2020-06-08 16:29 ` Khasim Mohammed
0 siblings, 1 reply; 4+ messages in thread
From: Jon Mason @ 2020-06-08 15:50 UTC (permalink / raw)
To: Khasim Mohammed; +Cc: meta-arm, nd, Patrik Berglund
On Tue, Jun 02, 2020 at 05:52:44PM +0100, Khasim Mohammed wrote:
> SCP-firmware provides a software reference implementation for
> the System Control Processor (SCP) and Manageability Control
> Processor (MCP) components found in several Arm Compute
> Sub-Systems.
>
> This patch set adds support to fetch and build SCP and MCP
> firmware binaries
>
> Issue-Id: PLATFORMS-3134
>
> Change-Id: Ic7259bb430c9e7e9711c9c8bc3283aafaacdf707
> Signed-off-by: Patrik Berglund <patrik.berglund@arm.com>
> Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
Pulled into master branch
Thanks,
Jon
> ---
> .../recipes-bsp/scp-firmware/scp-firmware.inc | 71 +++++++++++++++++++
> .../scp-firmware/scp-firmware_git.bb | 20 ++++++
> 2 files changed, 91 insertions(+)
> create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
>
> diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc b/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> new file mode 100644
> index 0000000..1873848
> --- /dev/null
> +++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> @@ -0,0 +1,71 @@
> +SUMMARY = "SCP and MCP Firmware"
> +
> +PROVIDES += "virtual/control-processor-firmware"
> +
> +SCP_BUILD_RELEASE ?= "1"
> +SCP_COMPILE_VERBOSE ?= "0"
> +SCP_PLATFORM ?= "invalid"
> +SCP_COMPILER ?= "arm-none-eabi"
> +
> +DEPENDS += "virtual/arm-none-eabi-gcc-native"
> +
> +SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1', 'release', 'debug', d)}"
> +SCP_COMP_STR = "${@bb.utils.contains('SCP_COMPILE_VERBOSE', '0', '', 'V=1', d)}"
> +
> +inherit python3native
> +inherit deploy
> +
> +B = "${WORKDIR}/build"
> +S = "${WORKDIR}/src"
> +
> +# Allow platform specific copying of only scp or both scp & mcp, default to both
> +FW_TARGETS ?= "scp mcp"
> +
> +COMPATIBLE_MACHINE ?= "invalid"
> +
> +LDFLAGS[unexport] = "1"
> +
> +# The gcc-arm-none-eabi version does not support -fmacro-prefix-max
> +DEBUG_PREFIX_MAP_pn-scp = "\
> + -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
> + -fdebug-prefix-map=${STAGING_DIR_HOST}= \
> + -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
> +"
> +
> +# No configure
> +do_configure[noexec] = "1"
> +
> +EXTRA_OEMAKE = "${SCP_COMP_STR} \
> + BUILD_PATH='${B}' \
> + PRODUCT='${SCP_PLATFORM}' \
> + MODE='${SCP_BUILD_STR}' \
> + CC='${SCP_COMPILER}-gcc' \
> + AR='${SCP_COMPILER}-ar' \
> + SIZE='${SCP_COMPILER}-size' \
> + OBJCOPY='${SCP_COMPILER}-objcopy' \
> + "
> +
> +do_compile() {
> + oe_runmake -C "${S}" ${EXTRA_OEMAKE}
> +}
> +do_compile[cleandirs] += "${B}"
> +
> +do_install() {
> + install -d ${D}/firmware
> + for FW in ${FW_TARGETS}; do
> + for TYPE in ramfw romfw; do
> + install -D "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/release/bin/${FW}_${TYPE}.bin" "${D}/firmware/"
> + done
> + done
> +}
> +
> +FILES_${PN} = "/firmware"
> +SYSROOT_DIRS += "/firmware"
> +# Skip QA check for relocations in .text of elf binaries
> +INSANE_SKIP_${PN} = "textrel"
> +
> +do_deploy() {
> + # Copy the images to deploy directory
> + cp -rf ${D}/firmware/* ${DEPLOYDIR}/
> +}
> +addtask deploy after do_install
> diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
> new file mode 100644
> index 0000000..5ff5859
> --- /dev/null
> +++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
> @@ -0,0 +1,20 @@
> +DESCRIPTION = "Firmware for SCP and MCP software reference implementation"
> +HOMEPAGE = "https://github.com/ARM-software/SCP-firmware"
> +
> +LICENSE = "BSD-3-Clause & Apache-2.0"
> +
> +# SCP
> +LIC_FILES_CHKSUM = "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731"
> +# CMSIS
> +LIC_FILES_CHKSUM += "file://cmsis/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
> +
> +SRC_URI = "\
> + git://github.com/ARM-software/SCP-firmware.git;protocol=https;name=scp;destsuffix=src;nobranch=1 \
> + git://github.com/ARM-software/CMSIS_5.git;protocol=https;name=cmsis;destsuffix=src/cmsis;lfs=0;nobranch=1 \
> +"
> +
> +SRCREV_scp = "db19910aca6d1032eb0329e5fbb70a92b997f6f2"
> +SRCREV_cmsis = "refs/tags/5.2.0"
> +SRCREV_FORMAT = "scp_cmsis"
> +
> +require scp-firmware.inc
> --
> 2.17.1
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-arm] [PATCH] meta-arm: Add SCP MCP build support
2020-06-08 15:50 ` [meta-arm] " Jon Mason
@ 2020-06-08 16:29 ` Khasim Mohammed
2020-06-10 20:40 ` Jon Mason
0 siblings, 1 reply; 4+ messages in thread
From: Khasim Mohammed @ 2020-06-08 16:29 UTC (permalink / raw)
To: Jon Mason; +Cc: meta-arm, nd, Patrik Berglund
Hi Jon,
On Mon, 2020-06-08 at 11:50 -0400, Jon Mason wrote:
> On Tue, Jun 02, 2020 at 05:52:44PM +0100, Khasim Mohammed wrote:
> > SCP-firmware provides a software reference implementation for
> > the System Control Processor (SCP) and Manageability Control
> > Processor (MCP) components found in several Arm Compute
> > Sub-Systems.
> >
> > This patch set adds support to fetch and build SCP and MCP
> > firmware binaries
> >
> > Issue-Id: PLATFORMS-3134
> >
> > Change-Id: Ic7259bb430c9e7e9711c9c8bc3283aafaacdf707
> > Signed-off-by: Patrik Berglund <patrik.berglund@arm.com>
> > Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
>
> Pulled into master branch
>
Can you please pull this on Dunfell branch as well ?
Thanks,
Khasim
> Thanks,
> Jon
>
> > ---
> > .../recipes-bsp/scp-firmware/scp-firmware.inc | 71
> > +++++++++++++++++++
> > .../scp-firmware/scp-firmware_git.bb | 20 ++++++
> > 2 files changed, 91 insertions(+)
> > create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-
> > firmware.inc
> > create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-
> > firmware_git.bb
> >
> > diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> > b/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> > new file mode 100644
> > index 0000000..1873848
> > --- /dev/null
> > +++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> > @@ -0,0 +1,71 @@
> > +SUMMARY = "SCP and MCP Firmware"
> > +
> > +PROVIDES += "virtual/control-processor-firmware"
> > +
> > +SCP_BUILD_RELEASE ?= "1"
> > +SCP_COMPILE_VERBOSE ?= "0"
> > +SCP_PLATFORM ?= "invalid"
> > +SCP_COMPILER ?= "arm-none-eabi"
> > +
> > +DEPENDS += "virtual/arm-none-eabi-gcc-native"
> > +
> > +SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1',
> > 'release', 'debug', d)}"
> > +SCP_COMP_STR = "${@bb.utils.contains('SCP_COMPILE_VERBOSE', '0',
> > '', 'V=1', d)}"
> > +
> > +inherit python3native
> > +inherit deploy
> > +
> > +B = "${WORKDIR}/build"
> > +S = "${WORKDIR}/src"
> > +
> > +# Allow platform specific copying of only scp or both scp & mcp,
> > default to both
> > +FW_TARGETS ?= "scp mcp"
> > +
> > +COMPATIBLE_MACHINE ?= "invalid"
> > +
> > +LDFLAGS[unexport] = "1"
> > +
> > +# The gcc-arm-none-eabi version does not support -fmacro-prefix-
> > max
> > +DEBUG_PREFIX_MAP_pn-scp = "\
> > + -fdebug-prefix-
> > map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
> > + -fdebug-prefix-map=${STAGING_DIR_HOST}= \
> > + -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
> > +"
> > +
> > +# No configure
> > +do_configure[noexec] = "1"
> > +
> > +EXTRA_OEMAKE = "${SCP_COMP_STR} \
> > + BUILD_PATH='${B}' \
> > + PRODUCT='${SCP_PLATFORM}' \
> > + MODE='${SCP_BUILD_STR}' \
> > + CC='${SCP_COMPILER}-gcc' \
> > + AR='${SCP_COMPILER}-ar' \
> > + SIZE='${SCP_COMPILER}-size' \
> > + OBJCOPY='${SCP_COMPILER}-objcopy' \
> > + "
> > +
> > +do_compile() {
> > + oe_runmake -C "${S}" ${EXTRA_OEMAKE}
> > +}
> > +do_compile[cleandirs] += "${B}"
> > +
> > +do_install() {
> > + install -d ${D}/firmware
> > + for FW in ${FW_TARGETS}; do
> > + for TYPE in ramfw romfw; do
> > + install -D
> > "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/release/bin/${FW}_${TYP
> > E}.bin" "${D}/firmware/"
> > + done
> > + done
> > +}
> > +
> > +FILES_${PN} = "/firmware"
> > +SYSROOT_DIRS += "/firmware"
> > +# Skip QA check for relocations in .text of elf binaries
> > +INSANE_SKIP_${PN} = "textrel"
> > +
> > +do_deploy() {
> > + # Copy the images to deploy directory
> > + cp -rf ${D}/firmware/* ${DEPLOYDIR}/
> > +}
> > +addtask deploy after do_install
> > diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
> > b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
> > new file mode 100644
> > index 0000000..5ff5859
> > --- /dev/null
> > +++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
> > @@ -0,0 +1,20 @@
> > +DESCRIPTION = "Firmware for SCP and MCP software reference
> > implementation"
> > +HOMEPAGE = "https://github.com/ARM-software/SCP-firmware"
> > +
> > +LICENSE = "BSD-3-Clause & Apache-2.0"
> > +
> > +# SCP
> > +LIC_FILES_CHKSUM =
> > "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731
> > "
> > +# CMSIS
> > +LIC_FILES_CHKSUM +=
> > "file://cmsis/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
> > +
> > +SRC_URI = "\
> > + git://github.com/ARM-software/SCP-
> > firmware.git;protocol=https;name=scp;destsuffix=src;nobranch=1 \
> > + git://github.com/ARM-
> > software/CMSIS_5.git;protocol=https;name=cmsis;destsuffix=src/cmsis
> > ;lfs=0;nobranch=1 \
> > +"
> > +
> > +SRCREV_scp = "db19910aca6d1032eb0329e5fbb70a92b997f6f2"
> > +SRCREV_cmsis = "refs/tags/5.2.0"
> > +SRCREV_FORMAT = "scp_cmsis"
> > +
> > +require scp-firmware.inc
> > --
> > 2.17.1
> >
> >
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-arm] [PATCH] meta-arm: Add SCP MCP build support
2020-06-08 16:29 ` Khasim Mohammed
@ 2020-06-10 20:40 ` Jon Mason
0 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2020-06-10 20:40 UTC (permalink / raw)
To: Khasim Mohammed; +Cc: meta-arm, nd, Patrik Berglund
On Mon, Jun 08, 2020 at 09:59:50PM +0530, Khasim Mohammed wrote:
> Hi Jon,
>
> On Mon, 2020-06-08 at 11:50 -0400, Jon Mason wrote:
> > On Tue, Jun 02, 2020 at 05:52:44PM +0100, Khasim Mohammed wrote:
> > > SCP-firmware provides a software reference implementation for
> > > the System Control Processor (SCP) and Manageability Control
> > > Processor (MCP) components found in several Arm Compute
> > > Sub-Systems.
> > >
> > > This patch set adds support to fetch and build SCP and MCP
> > > firmware binaries
> > >
> > > Issue-Id: PLATFORMS-3134
> > >
> > > Change-Id: Ic7259bb430c9e7e9711c9c8bc3283aafaacdf707
> > > Signed-off-by: Patrik Berglund <patrik.berglund@arm.com>
> > > Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
> >
> > Pulled into master branch
> >
>
> Can you please pull this on Dunfell branch as well ?
done.
Thanks,
Jon
>
> Thanks,
>
> Khasim
>
> > Thanks,
> > Jon
> >
> > > ---
> > > .../recipes-bsp/scp-firmware/scp-firmware.inc | 71
> > > +++++++++++++++++++
> > > .../scp-firmware/scp-firmware_git.bb | 20 ++++++
> > > 2 files changed, 91 insertions(+)
> > > create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-
> > > firmware.inc
> > > create mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-
> > > firmware_git.bb
> > >
> > > diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> > > b/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> > > new file mode 100644
> > > index 0000000..1873848
> > > --- /dev/null
> > > +++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
> > > @@ -0,0 +1,71 @@
> > > +SUMMARY = "SCP and MCP Firmware"
> > > +
> > > +PROVIDES += "virtual/control-processor-firmware"
> > > +
> > > +SCP_BUILD_RELEASE ?= "1"
> > > +SCP_COMPILE_VERBOSE ?= "0"
> > > +SCP_PLATFORM ?= "invalid"
> > > +SCP_COMPILER ?= "arm-none-eabi"
> > > +
> > > +DEPENDS += "virtual/arm-none-eabi-gcc-native"
> > > +
> > > +SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1',
> > > 'release', 'debug', d)}"
> > > +SCP_COMP_STR = "${@bb.utils.contains('SCP_COMPILE_VERBOSE', '0',
> > > '', 'V=1', d)}"
> > > +
> > > +inherit python3native
> > > +inherit deploy
> > > +
> > > +B = "${WORKDIR}/build"
> > > +S = "${WORKDIR}/src"
> > > +
> > > +# Allow platform specific copying of only scp or both scp & mcp,
> > > default to both
> > > +FW_TARGETS ?= "scp mcp"
> > > +
> > > +COMPATIBLE_MACHINE ?= "invalid"
> > > +
> > > +LDFLAGS[unexport] = "1"
> > > +
> > > +# The gcc-arm-none-eabi version does not support -fmacro-prefix-
> > > max
> > > +DEBUG_PREFIX_MAP_pn-scp = "\
> > > + -fdebug-prefix-
> > > map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
> > > + -fdebug-prefix-map=${STAGING_DIR_HOST}= \
> > > + -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
> > > +"
> > > +
> > > +# No configure
> > > +do_configure[noexec] = "1"
> > > +
> > > +EXTRA_OEMAKE = "${SCP_COMP_STR} \
> > > + BUILD_PATH='${B}' \
> > > + PRODUCT='${SCP_PLATFORM}' \
> > > + MODE='${SCP_BUILD_STR}' \
> > > + CC='${SCP_COMPILER}-gcc' \
> > > + AR='${SCP_COMPILER}-ar' \
> > > + SIZE='${SCP_COMPILER}-size' \
> > > + OBJCOPY='${SCP_COMPILER}-objcopy' \
> > > + "
> > > +
> > > +do_compile() {
> > > + oe_runmake -C "${S}" ${EXTRA_OEMAKE}
> > > +}
> > > +do_compile[cleandirs] += "${B}"
> > > +
> > > +do_install() {
> > > + install -d ${D}/firmware
> > > + for FW in ${FW_TARGETS}; do
> > > + for TYPE in ramfw romfw; do
> > > + install -D
> > > "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/release/bin/${FW}_${TYP
> > > E}.bin" "${D}/firmware/"
> > > + done
> > > + done
> > > +}
> > > +
> > > +FILES_${PN} = "/firmware"
> > > +SYSROOT_DIRS += "/firmware"
> > > +# Skip QA check for relocations in .text of elf binaries
> > > +INSANE_SKIP_${PN} = "textrel"
> > > +
> > > +do_deploy() {
> > > + # Copy the images to deploy directory
> > > + cp -rf ${D}/firmware/* ${DEPLOYDIR}/
> > > +}
> > > +addtask deploy after do_install
> > > diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
> > > b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
> > > new file mode 100644
> > > index 0000000..5ff5859
> > > --- /dev/null
> > > +++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb
> > > @@ -0,0 +1,20 @@
> > > +DESCRIPTION = "Firmware for SCP and MCP software reference
> > > implementation"
> > > +HOMEPAGE = "https://github.com/ARM-software/SCP-firmware"
> > > +
> > > +LICENSE = "BSD-3-Clause & Apache-2.0"
> > > +
> > > +# SCP
> > > +LIC_FILES_CHKSUM =
> > > "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731
> > > "
> > > +# CMSIS
> > > +LIC_FILES_CHKSUM +=
> > > "file://cmsis/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
> > > +
> > > +SRC_URI = "\
> > > + git://github.com/ARM-software/SCP-
> > > firmware.git;protocol=https;name=scp;destsuffix=src;nobranch=1 \
> > > + git://github.com/ARM-
> > > software/CMSIS_5.git;protocol=https;name=cmsis;destsuffix=src/cmsis
> > > ;lfs=0;nobranch=1 \
> > > +"
> > > +
> > > +SRCREV_scp = "db19910aca6d1032eb0329e5fbb70a92b997f6f2"
> > > +SRCREV_cmsis = "refs/tags/5.2.0"
> > > +SRCREV_FORMAT = "scp_cmsis"
> > > +
> > > +require scp-firmware.inc
> > > --
> > > 2.17.1
> > >
> > >
> >
> >
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-06-10 20:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 16:52 [PATCH] meta-arm: Add SCP MCP build support Khasim Mohammed
2020-06-08 15:50 ` [meta-arm] " Jon Mason
2020-06-08 16:29 ` Khasim Mohammed
2020-06-10 20:40 ` Jon Mason
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.