[meta-arm] arm-bsp/scp-firmware: Introduce FW_INSTALL variable

Submitted by Damodar Santhapuri on Aug. 10, 2020, 3:06 a.m. | Patch ID: 175169

Details

Message ID 20200810030633.24926-1-damodar.santhapuri@arm.com
State New
Headers show

Commit Message

Damodar Santhapuri Aug. 10, 2020, 3:06 a.m.
Use the FW_INSTALL variable to select which firmware
binaries should be installed in the target.

Change-Id: I6bffa3db9adc27a5ee43b316a12a758c48acb43f
Signed-off-by: Damodar Santhapuri <damodar.santhapuri@arm.com>
---
 meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.6.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.6.0.bb b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.6.0.bb
index 6abe4ae..47b09aa 100644
--- a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.6.0.bb
+++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.6.0.bb
@@ -28,6 +28,7 @@  S = "${WORKDIR}/git"
 
 # Allow platform specific copying of only scp or both scp & mcp, default to both
 FW_TARGETS ?= "scp mcp"
+FW_INSTALL ?= "ramfw romfw"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE ?= "invalid"
@@ -56,7 +57,7 @@  do_compile[cleandirs] += "${B}"
 do_install() {
      install -d ${D}/firmware
      for FW in ${FW_TARGETS}; do
-        for TYPE in ramfw romfw; do
+        for TYPE in ${FW_INSTALL}; do
            install -D "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/release/bin/${FW}_${TYPE}.bin" "${D}/firmware/"
         done
      done