source "package/freescale-imx/imx-codec/Config.in"
source "package/freescale-imx/imx-kobs/Config.in"
source "package/freescale-imx/imx-lib/Config.in"
+source "package/freescale-imx/imx-m4fwloader/Config.in"
source "package/freescale-imx/imx-parser/Config.in"
source "package/freescale-imx/imx-uuc/Config.in"
source "package/freescale-imx/imx-vpu/Config.in"
--- /dev/null
+config BR2_PACKAGE_IMX_M4FWLOADER
+ bool "imx-m4fwloader"
+ depends on BR2_arm # Only relevant for i.MX
+ help
+ This package provides a tool to load a firmware to the
+ Cortex-M4 core available in some i.MX processors.
+
+ https://github.com/codeauroraforum/imx-m4fwloader
--- /dev/null
+################################################################################
+#
+# imx-m4fwloader
+#
+################################################################################
+
+IMX_M4FWLOADER_VERSION = 8cf4d17a09ba23250d43381b49ba00d92406fad9
+IMX_M4FWLOADER_SITE = $(call github,codeauroraforum,imx-m4fwloader,$(IMX_M4FWLOADER_VERSION))
+IMX_M4FWLOADER_LICENSE = GPL-2.0+
+IMX_M4FWLOADER_LICENSE_FILES = LICENSE
+
+define IMX_M4FWLOADER_BUILD_CMDS
+ $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o $(@D)/imx-m4fwloader \
+ $(@D)/m4fwloader.c
+endef
+
+define IMX_M4FWLOADER_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 755 $(@D)/imx-m4fwloader \
+ $(TARGET_DIR)/usr/sbin/imx-m4fwloader
+endef
+
+$(eval $(generic-package))