5cb1bbc627
This script gives the address, the offset and the size of binaries have been stored into U-Boot FIT image that contains TF-A, U-Boot and OP-TEE. Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# imx-mkimage
|
|
#
|
|
################################################################################
|
|
|
|
IMX_MKIMAGE_VERSION = rel_imx_5.4.70_2.3.0
|
|
IMX_MKIMAGE_SITE = https://source.codeaurora.org/external/imx/imx-mkimage
|
|
IMX_MKIMAGE_SITE_METHOD = git
|
|
IMX_MKIMAGE_LICENSE = GPL-2.0+
|
|
IMX_MKIMAGE_LICENSE_FILES = COPYING
|
|
HOST_IMX_MKIMAGE_DEPENDENCIES = host-zlib
|
|
|
|
ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
|
|
# i.MX8M needs a different binary
|
|
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
|
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
|
-C $(@D)/iMX8M -f soc.mak mkimage_imx8
|
|
endef
|
|
define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
|
$(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
|
|
$(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_fit_atf.sh $(HOST_DIR)/bin/mkimage_fit_atf.sh
|
|
$(INSTALL) -D -m 755 $(@D)/iMX8M/print_fit_hab.sh $(HOST_DIR)/bin/print_fit_hab.sh
|
|
endef
|
|
else
|
|
# i.MX8 and i.MX8X
|
|
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
|
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
|
-C $(@D) MKIMG=mkimage_imx8 mkimage_imx8
|
|
endef
|
|
define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
|
$(INSTALL) -D -m 755 $(@D)/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
|
|
endef
|
|
endif
|
|
|
|
$(eval $(host-generic-package))
|