From faf35a803439a3d3636eec475d78d97c883477b5 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Thu, 11 Oct 2018 16:28:44 -0500 Subject: [PATCH] firmware-imx: Update logic for non-rootfs firmware 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 --- recipes-bsp/firmware-imx/firmware-imx_7.8.bb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/recipes-bsp/firmware-imx/firmware-imx_7.8.bb b/recipes-bsp/firmware-imx/firmware-imx_7.8.bb index 0fb2d5dc..bf0fbc3f 100644 --- a/recipes-bsp/firmware-imx/firmware-imx_7.8.bb +++ b/recipes-bsp/firmware-imx/firmware-imx_7.8.bb @@ -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 -- 2.40.1