2018-03-10 12:51:39 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# imx-mkimage
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-12-02 21:06:35 +01:00
|
|
|
IMX_MKIMAGE_VERSION = rel_imx_4.14.98_2.0.0_ga
|
2018-03-10 12:51:39 +01:00
|
|
|
IMX_MKIMAGE_SITE = https://source.codeaurora.org/external/imx/imx-mkimage
|
|
|
|
IMX_MKIMAGE_SITE_METHOD = git
|
|
|
|
IMX_MKIMAGE_LICENSE = GPL-2.0+
|
2019-03-05 22:19:22 +01:00
|
|
|
IMX_MKIMAGE_LICENSE_FILES = COPYING
|
2018-04-12 21:32:09 +02:00
|
|
|
HOST_IMX_MKIMAGE_DEPENDENCIES = host-zlib
|
2018-03-10 12:51:39 +01:00
|
|
|
|
2019-06-10 12:19:22 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM),y)
|
2019-02-18 21:48:05 +01:00
|
|
|
# i.MX8M needs a different binary
|
2018-03-10 12:51:39 +01:00
|
|
|
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
2019-03-06 18:49:18 +01:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
|
|
|
-C $(@D)/iMX8M -f soc.mak mkimage_imx8
|
2018-03-10 12:51:39 +01:00
|
|
|
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
|
|
|
|
endef
|
2019-02-18 21:48:05 +01:00
|
|
|
else
|
|
|
|
# i.MX8 and i.MX8X
|
|
|
|
define HOST_IMX_MKIMAGE_BUILD_CMDS
|
2019-03-06 18:49:18 +01:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(HOST_CFLAGS) -std=c99" \
|
|
|
|
-C $(@D) MKIMG=mkimage_imx8 mkimage_imx8
|
2019-02-18 21:48:05 +01:00
|
|
|
endef
|
|
|
|
define HOST_IMX_MKIMAGE_INSTALL_CMDS
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
|
|
|
|
endef
|
|
|
|
endif
|
2018-03-10 12:51:39 +01:00
|
|
|
|
|
|
|
$(eval $(host-generic-package))
|