package/freescale-imx/imx-sc-firmware: new package
authorAndré Hentschel <andre.hentschel@zf.com>
Mon, 18 Feb 2019 20:48:03 +0000 (21:48 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 23 Feb 2019 14:29:34 +0000 (15:29 +0100)
Signed-off-by: André Hentschel <andre.hentschel@zf.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/freescale-imx/Config.in
package/freescale-imx/imx-sc-firmware/Config.in [new file with mode: 0644]
package/freescale-imx/imx-sc-firmware/imx-sc-firmware.mk [new file with mode: 0644]

index 44de17aba17e84a7e781cd4d928beba33f4e37b7..65051db72c880898293333a18919e97bf5da89ab 100644 (file)
@@ -129,6 +129,7 @@ F:  package/ktap/
 
 N:     André Hentschel <nerv@dawncrow.de>
 F:     package/azure-iot-sdk-c/
+F:     package/freescale-imx/imx-sc-firmware/
 F:     package/libkrb5/
 F:     package/openal/
 F:     package/p7zip/
index 90017644372999af5d69039c7361b5bd925837e3..fcceacdc9e5c38d8582e40cac32023d7f008dd85 100644 (file)
@@ -90,6 +90,7 @@ source "package/freescale-imx/imx-vpu/Config.in"
 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"
 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-sc-firmware/Config.in b/package/freescale-imx/imx-sc-firmware/Config.in
new file mode 100644 (file)
index 0000000..5c71618
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_IMX_SC_FIRMWARE
+       bool "imx-sc-firmware"
+       depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
+       help
+         System Control Unit Firmware blobs for the Freescale i.MX8 SoCs.
+
+         This library is provided by Freescale as-is and doesn't have
+         an upstream.
diff --git a/package/freescale-imx/imx-sc-firmware/imx-sc-firmware.mk b/package/freescale-imx/imx-sc-firmware/imx-sc-firmware.mk
new file mode 100644 (file)
index 0000000..fac20d0
--- /dev/null
@@ -0,0 +1,27 @@
+################################################################################
+#
+# imx-sc-firmware
+#
+################################################################################
+
+IMX_SC_FIRMWARE_VERSION = 1.0
+IMX_SC_FIRMWARE_SITE = $(FREESCALE_IMX_SITE)
+IMX_SC_FIRMWARE_SOURCE = imx-sc-firmware-$(IMX_SC_FIRMWARE_VERSION).bin
+
+IMX_SC_FIRMWARE_LICENSE = NXP Semiconductor Software License Agreement
+IMX_SC_FIRMWARE_LICENSE_FILES = EULA COPYING
+IMX_SC_FIRMWARE_REDISTRIBUTE = NO
+
+define IMX_SC_FIRMWARE_EXTRACT_CMDS
+       $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_SC_FIRMWARE_DL_DIR)/$(IMX_SC_FIRMWARE_SOURCE))
+endef
+
+IMX_SC_FIRMWARE_INSTALL_IMAGES = YES
+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
+
+$(eval $(generic-package))