2016-06-10 12:13:05 -06:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# imx-codec
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-07-30 07:01:43 -06:00
|
|
|
IMX_CODEC_VERSION = 4.3.5
|
2016-06-10 12:13:05 -06:00
|
|
|
IMX_CODEC_SITE = $(FREESCALE_IMX_SITE)
|
|
|
|
IMX_CODEC_SOURCE = imx-codec-$(IMX_CODEC_VERSION).bin
|
|
|
|
IMX_CODEC_INSTALL_STAGING = YES
|
|
|
|
|
2017-03-30 07:43:38 -06:00
|
|
|
IMX_CODEC_LICENSE = NXP Semiconductor Software License Agreement, BSD-3-Clause (flac, ogg headers)
|
2016-06-10 12:13:05 -06:00
|
|
|
IMX_CODEC_LICENSE_FILES = EULA COPYING
|
|
|
|
IMX_CODEC_REDISTRIBUTE = NO
|
|
|
|
|
2018-01-05 07:39:40 -07:00
|
|
|
ifeq ($(BR2_aarch64),y)
|
|
|
|
IMX_CODEC_CONF_OPTS += --enable-armv8
|
|
|
|
endif
|
|
|
|
|
2016-07-27 07:53:31 -06:00
|
|
|
ifeq ($(BR2_ARM_EABIHF),y)
|
|
|
|
IMX_CODEC_CONF_OPTS += --enable-fhw
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_IMX_VPU),y)
|
|
|
|
IMX_CODEC_CONF_OPTS += --enable-vpu
|
|
|
|
endif
|
|
|
|
|
2016-06-10 12:13:05 -06:00
|
|
|
define IMX_CODEC_EXTRACT_CMDS
|
2018-04-02 07:09:24 -06:00
|
|
|
$(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_CODEC_DL_DIR)/$(IMX_CODEC_SOURCE))
|
2016-06-10 12:13:05 -06:00
|
|
|
endef
|
|
|
|
|
|
|
|
# FIXME The Makefile installs both the arm9 and arm11 versions of the
|
|
|
|
# libraries, but we only need one of them.
|
|
|
|
|
2016-07-27 07:53:30 -06:00
|
|
|
# Upstream installs libraries into usr/lib/imx-mm, but the dynamic
|
|
|
|
# loader only looks in usr/lib, so move the libraries there
|
|
|
|
define IMX_CODEC_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_CODEC_POST_INSTALL_TARGET_HOOKS += IMX_CODEC_FIXUP_TARGET_PATH
|
|
|
|
|
2016-06-10 12:13:05 -06:00
|
|
|
$(eval $(autotools-package))
|