package/freescale-imx/imx-seco: new package
authorMaeva Manuel <maeva.manuel@oss.nxp.com>
Fri, 20 Mar 2020 16:31:54 +0000 (17:31 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 21 Mar 2020 15:22:12 +0000 (16:22 +0100)
This package is needed with Freescale i.MX8/i.MX8X defconfigs
version equal to 4.19.35_1.0.0
It is also subject to multi-version support.

The package version aligned with NXP BSP 4.19.35_1.1.0 is 2.3.1

Signed-off-by: Maeva Manuel <maeva.manuel@oss.nxp.com>
Reviewed-by: Julien Olivain <julien.olivain@oss.nxp.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/freescale-imx/Config.in
package/freescale-imx/imx-seco/Config.in [new file with mode: 0644]
package/freescale-imx/imx-seco/imx-seco.hash [new file with mode: 0644]
package/freescale-imx/imx-seco/imx-seco.mk [new file with mode: 0644]

index 906a478d7bad9cb40b99dec8f5cf06b628251ce9..541e6b5483e8427f19d2651f7363df4d938bafd3 100644 (file)
@@ -1531,6 +1531,7 @@ F:        package/wilc1000-firmware/
 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/
index 711e8f72c2c1a44111b7ce9198ba2f25043be7cb..f42bb11a3c9145bef964a70ec7e8ccb45a2f42ef 100644 (file)
@@ -101,6 +101,7 @@ source "package/freescale-imx/imx-vpu-hantro/Config.in"
 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"
diff --git a/package/freescale-imx/imx-seco/Config.in b/package/freescale-imx/imx-seco/Config.in
new file mode 100644 (file)
index 0000000..1877664
--- /dev/null
@@ -0,0 +1,9 @@
+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.
diff --git a/package/freescale-imx/imx-seco/imx-seco.hash b/package/freescale-imx/imx-seco/imx-seco.hash
new file mode 100644 (file)
index 0000000..56f5636
--- /dev/null
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  b429ac58b2ea1771b3fdf7ae87bf1d37ccaf596bde01a5ecccae27b2145f6824  imx-seco-2.3.1.bin
+sha256  69d19847bac9af7f9e832170a15138f5ef144d8064413434114d75a68982cc9c  EULA
+sha256  6467f2e81d06b19fe541de49bdba32a9a205e8d1c230220fe24247b48672cb46  COPYING
diff --git a/package/freescale-imx/imx-seco/imx-seco.mk b/package/freescale-imx/imx-seco/imx-seco.mk
new file mode 100644 (file)
index 0000000..d06bf4c
--- /dev/null
@@ -0,0 +1,35 @@
+################################################################################
+#
+# 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))