mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-20 09:35:26 +00:00
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the
transition into a new directory structure for DL_DIR.
This commit has been generated with the following scripts:
for i in $(find . -iname "*.mk"); do
if ! grep -q "\$(DL_DIR)" ${i}; then
continue
fi
pkg_name="$(basename $(dirname ${i}))"
[ "${pkg_name}" = "package" ] && continue
raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_')
pkg_dl_dir="${raw_pkg_name}_DL_DIR"
sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i}
done
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# imx-parser
|
|
#
|
|
################################################################################
|
|
|
|
IMX_PARSER_VERSION = 4.2.1
|
|
IMX_PARSER_SITE = $(FREESCALE_IMX_SITE)
|
|
IMX_PARSER_SOURCE = imx-parser-$(IMX_PARSER_VERSION).bin
|
|
IMX_PARSER_INSTALL_STAGING = YES
|
|
|
|
IMX_PARSER_LICENSE = NXP Semiconductor Software License Agreement
|
|
IMX_PARSER_LICENSE_FILES = EULA COPYING
|
|
IMX_PARSER_REDISTRIBUTE = NO
|
|
|
|
ifeq ($(BR2_aarch64),y)
|
|
IMX_PARSER_CONF_OPTS += --enable-armv8
|
|
endif
|
|
|
|
ifeq ($(BR2_ARM_EABIHF),y)
|
|
IMX_PARSER_CONF_OPTS += --enable-fhw
|
|
else
|
|
IMX_PARSER_CONF_OPTS += --enable-fsw
|
|
endif
|
|
|
|
define IMX_PARSER_EXTRACT_CMDS
|
|
$(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_PARSER_DL_DIR)/$(IMX_PARSER_SOURCE))
|
|
endef
|
|
|
|
# The Makefile installs several versions of the libraries, but we only
|
|
# need one of them, depending on the platform.
|
|
|
|
# Upstream installs libraries into usr/lib/imx-mm, but the dynamic
|
|
# loader only looks in usr/lib, so move the libraries there
|
|
define IMX_PARSER_FIXUP_TARGET_PATH
|
|
find $(TARGET_DIR)/usr/lib/imx-mm -not -type d \
|
|
-exec mv {} $(TARGET_DIR)/usr/lib \;
|
|
rm -rf $(TARGET_DIR)/usr/lib/imx-mm
|
|
endef
|
|
IMX_PARSER_POST_INSTALL_TARGET_HOOKS += IMX_PARSER_FIXUP_TARGET_PATH
|
|
|
|
$(eval $(autotools-package))
|