]> code.ossystems Code Review - meta-freescale.git/commitdiff
firmware-imx: Update logic for non-rootfs firmware
authorTom Hochstein <tom.hochstein@nxp.com>
Thu, 11 Oct 2018 21:28:44 +0000 (16:28 -0500)
committerTom Hochstein <tom.hochstein@nxp.com>
Thu, 13 Dec 2018 16:01:31 +0000 (10:01 -0600)
Certain i.MX 8 firmware packages are included in the boot image
via imx-boot recipe, not through rootfs. Clarify the logic that
handles this.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-bsp/firmware-imx/firmware-imx_7.8.bb

index 0fb2d5dc5e1853724c61a9fa8f77df2a79579396..bf0fbc3fe6ce63e9a0ac6041521d9d514aaeafa9 100644 (file)
@@ -20,12 +20,19 @@ do_install() {
     install -d ${D}${base_libdir}/firmware/bcm
     install -d ${D}${sysconfdir}/firmware
 
-    cp -rfv firmware/* ${D}${base_libdir}/firmware/
-
-    # FIXME: This need to be removed when iMX8 is integrated.
-    rm -rf ${D}${base_libdir}/firmware/ddr \
-           ${D}${base_libdir}/firmware/hdmi \
-           ${D}${base_libdir}/firmware/seco
+    cd firmware
+    for d in *; do
+        case $d in
+        ddr|hdmi|seco)
+            # These folders are for i.MX 8 and are included in the boot image via imx-boot
+            bbnote Excluding folder $d
+            ;;
+        *)
+            cp -rfv $d ${D}${base_libdir}/firmware
+            ;;
+        esac
+    done
+    cd -
 
     #1BW_BCM43340
     install -d ${D}${base_libdir}/firmware/bcm/1BW_BCM43340