imx-parser.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ################################################################################
  2. #
  3. # imx-parser
  4. #
  5. ################################################################################
  6. IMX_PARSER_VERSION = 4.2.1
  7. IMX_PARSER_SITE = $(FREESCALE_IMX_SITE)
  8. IMX_PARSER_SOURCE = imx-parser-$(IMX_PARSER_VERSION).bin
  9. IMX_PARSER_INSTALL_STAGING = YES
  10. IMX_PARSER_LICENSE = NXP Semiconductor Software License Agreement
  11. IMX_PARSER_LICENSE_FILES = EULA COPYING
  12. IMX_PARSER_REDISTRIBUTE = NO
  13. ifeq ($(BR2_aarch64),y)
  14. IMX_PARSER_CONF_OPTS += --enable-armv8
  15. endif
  16. ifeq ($(BR2_ARM_EABIHF),y)
  17. IMX_PARSER_CONF_OPTS += --enable-fhw
  18. else
  19. IMX_PARSER_CONF_OPTS += --enable-fsw
  20. endif
  21. define IMX_PARSER_EXTRACT_CMDS
  22. $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_PARSER_DL_DIR)/$(IMX_PARSER_SOURCE))
  23. endef
  24. # The Makefile installs several versions of the libraries, but we only
  25. # need one of them, depending on the platform.
  26. # Upstream installs libraries into usr/lib/imx-mm, but the dynamic
  27. # loader only looks in usr/lib, so move the libraries there
  28. define IMX_PARSER_FIXUP_TARGET_PATH
  29. find $(TARGET_DIR)/usr/lib/imx-mm -not -type d \
  30. -exec mv {} $(TARGET_DIR)/usr/lib \;
  31. rm -rf $(TARGET_DIR)/usr/lib/imx-mm
  32. endef
  33. IMX_PARSER_POST_INSTALL_TARGET_HOOKS += IMX_PARSER_FIXUP_TARGET_PATH
  34. $(eval $(autotools-package))