config BR2_PACKAGE_IMX_SC_FIRMWARE
bool "imx-sc-firmware"
- depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
+ depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 || \
+ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
help
System Control Unit Firmware blobs for the Freescale i.MX8
SoCs.
endef
IMX_SC_FIRMWARE_INSTALL_IMAGES = YES
+
+# SCFW firmware is needed when generating imx8-boot-sd.bin which is
+# done in post-image script.
+ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y)
define IMX_SC_FIRMWARE_INSTALL_IMAGES_CMDS
- # SCFW firmware is needed when generating imx8-boot-sd.bin which
- # is done in post-image script.
cp $(@D)/mx8qx-mek-scfw-tcm.bin $(BINARIES_DIR)/mx8qx-mek-scfw-tcm.bin
cp $(@D)/mx8qx-val-scfw-tcm.bin $(BINARIES_DIR)/mx8qx-val-scfw-tcm.bin
endef
+else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y)
+define IMX_SC_FIRMWARE_INSTALL_IMAGES_CMDS
+ cp $(@D)/mx8qm-*-scfw-tcm.bin $(BINARIES_DIR)/
+endef
+endif
$(eval $(generic-package))