kumquat-buildroot/package/imx-mkimage/imx-mkimage.mk

38 lines
1.4 KiB
Makefile
Raw Normal View History

################################################################################
#
# imx-mkimage
#
################################################################################
IMX_MKIMAGE_VERSION = lf-5.10.72_2.2.0
package/imx-mkimage: update codeaurora URLs to github NXP moved all its open source code repositories from Code Aurora Forum to github. See for example: https://github.com/nxp-imx/meta-imx/commit/39bc4d81969a40e0da660519cf4ed083b9c53097 Software packages are now grouped in several NXP github projects/organizations (nxp-imx, nxp-qoriq, ...). See: https://www.nxp.com/design/software/embedded-software/nxp-github:NXP-GITHUB The NXP code published on Code Aurora is still present (at the time of this commit) but is no longer receiving updates. It is also expected to be shut down on 2023-03-31. The Code Aurora website https://source.codeaurora.org/ currently show the following message: """ Note: Qualcomm Innovation Center Inc. maintained repositories have migrated to git.codelinaro.org. QUIC repositories on this site will not receive any updates after March 31, 2022, and will be deleted on March 31, 2023. If your project depends on these repositories, please adjust your tooling configuration to use the new, up-to-date project location. """ For this reason, the NXP recipes using codeaurora.org urls need to be updated to the correct github.com replacement. Note: this commit does not change the component version. Only the download URL is updated. The archive content is expected to be the same. Note 2: the _SITE_METHOD is also changed from "git" to the default "wget", for faster downloads. This is why the package hash has changed. Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-12-29 20:47:03 +01:00
IMX_MKIMAGE_SITE = $(call github,nxp-imx,imx-mkimage,$(IMX_MKIMAGE_VERSION))
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))