N: Maeva Manuel <maeva.manuel@oss.nxp.com>
F: board/freescale/imx8qmmek/
F: configs/freescale_imx8qmmek_defconfig
+F: package/freescale-imx/imx-seco/
N: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
F: package/ffmpeg/
source "package/freescale-imx/imx-vpuwrap/Config.in"
source "package/freescale-imx/firmware-imx/Config.in"
source "package/freescale-imx/imx-sc-firmware/Config.in"
+source "package/freescale-imx/imx-seco/Config.in"
if (BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 || BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53)
source "package/freescale-imx/gpu-amd-bin-mx51/Config.in"
source "package/freescale-imx/libz160/Config.in"
--- /dev/null
+config BR2_PACKAGE_IMX_SECO
+ bool "imx-seco"
+ depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 || \
+ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
+ help
+ Firmware file for the i.MX8 and i.MX8X Security Controller.
+
+ This library is provided by Freescale as-is and doesn't have
+ an upstream.
--- /dev/null
+################################################################################
+#
+# imx-seco
+#
+################################################################################
+
+IMX_SECO_VERSION = 2.3.1
+IMX_SECO_SITE = $(FREESCALE_IMX_SITE)
+IMX_SECO_SOURCE = imx-seco-$(IMX_SECO_VERSION).bin
+
+IMX_SECO_LICENSE = NXP Semiconductor Software License Agreement
+IMX_SECO_LICENSE_FILES = EULA COPYING
+IMX_SECO_REDISTRIBUTE = NO
+
+define IMX_SECO_EXTRACT_CMDS
+ $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_SECO_DL_DIR)/$(IMX_SECO_SOURCE))
+endef
+
+IMX_SECO_INSTALL_IMAGES = YES
+
+# SECO 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_SECO_INSTALL_IMAGES_CMDS
+ cp $(@D)/firmware/seco/mx8qx-ahab-container.img \
+ $(BINARIES_DIR)/ahab-container.img
+endef
+else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y)
+define IMX_SECO_INSTALL_IMAGES_CMDS
+ cp $(@D)/firmware/seco/mx8qm-ahab-container.img \
+ $(BINARIES_DIR)/ahab-container.img
+endef
+endif
+
+$(eval $(generic-package))