7be86525de
This package provides a tool to load a firmware to the Cortex-M4 core available in some i.MX processors such as i.MX6SX or i.MX7. This package was tested on a i.MX7D Nitrogen7 platform: # imx-m4fwloader hello_world.bin 0x007F8000 Upstream repository: https://github.com/codeauroraforum/imx-m4fwloader [Peter: add license hash, install in /usr/sbin, tweak help text] Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
23 lines
715 B
Makefile
23 lines
715 B
Makefile
################################################################################
|
|
#
|
|
# 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))
|