package/nbd: add option for the trdump utility
[buildroot-gz.git] / package / freescale-imx / imx-parser / imx-parser.mk
bloba57647c03bf1dca55238f98d00e58534a8146a1b
1 ################################################################################
3 # imx-parser
5 ################################################################################
7 IMX_PARSER_VERSION = 4.1.4
8 IMX_PARSER_SITE = $(FREESCALE_IMX_SITE)
9 IMX_PARSER_SOURCE = imx-parser-$(IMX_PARSER_VERSION).bin
10 IMX_PARSER_INSTALL_STAGING = YES
12 IMX_PARSER_LICENSE = NXP Semiconductor Software License Agreement
13 IMX_PARSER_LICENSE_FILES = EULA COPYING
14 IMX_PARSER_REDISTRIBUTE = NO
16 ifeq ($(BR2_ARM_EABIHF),y)
17 IMX_PARSER_CONF_OPTS += --enable-fhw
18 else
19 IMX_PARSER_CONF_OPTS += --enable-fsw
20 endif
22 define IMX_PARSER_EXTRACT_CMDS
23 $(call FREESCALE_IMX_EXTRACT_HELPER,$(DL_DIR)/$(IMX_PARSER_SOURCE))
24 endef
26 # The Makefile installs several versions of the libraries, but we only
27 # need one of them, depending on the platform.
29 # Upstream installs libraries into usr/lib/imx-mm, but the dynamic
30 # loader only looks in usr/lib, so move the libraries there
31 define IMX_PARSER_FIXUP_TARGET_PATH
32 find $(TARGET_DIR)/usr/lib/imx-mm -not -type d \
33 -exec mv {} $(TARGET_DIR)/usr/lib \;
34 rm -rf $(TARGET_DIR)/usr/lib/imx-mm
35 endef
36 IMX_PARSER_POST_INSTALL_TARGET_HOOKS += IMX_PARSER_FIXUP_TARGET_PATH
38 $(eval $(autotools-package))