1################################################################################ 2# 3# imx-codec 4# 5################################################################################ 6 7IMX_CODEC_VERSION = 4.3.5 8IMX_CODEC_SITE = $(FREESCALE_IMX_SITE) 9IMX_CODEC_SOURCE = imx-codec-$(IMX_CODEC_VERSION).bin 10IMX_CODEC_INSTALL_STAGING = YES 11 12IMX_CODEC_LICENSE = NXP Semiconductor Software License Agreement, BSD-3-Clause (flac, ogg headers) 13IMX_CODEC_LICENSE_FILES = EULA COPYING 14IMX_CODEC_REDISTRIBUTE = NO 15 16ifeq ($(BR2_aarch64),y) 17IMX_CODEC_CONF_OPTS += --enable-armv8 18endif 19 20ifeq ($(BR2_ARM_EABIHF),y) 21IMX_CODEC_CONF_OPTS += --enable-fhw 22endif 23 24ifeq ($(BR2_PACKAGE_IMX_VPU),y) 25IMX_CODEC_CONF_OPTS += --enable-vpu 26endif 27 28define IMX_CODEC_EXTRACT_CMDS 29 $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_CODEC_DL_DIR)/$(IMX_CODEC_SOURCE)) 30endef 31 32# FIXME The Makefile installs both the arm9 and arm11 versions of the 33# libraries, but we only need one of them. 34 35# Upstream installs libraries into usr/lib/imx-mm, but the dynamic 36# loader only looks in usr/lib, so move the libraries there 37define IMX_CODEC_FIXUP_TARGET_PATH 38 find $(TARGET_DIR)/usr/lib/imx-mm -not -type d \ 39 -exec mv {} $(TARGET_DIR)/usr/lib \; 40 rm -rf $(TARGET_DIR)/usr/lib/imx-mm 41endef 42IMX_CODEC_POST_INSTALL_TARGET_HOOKS += IMX_CODEC_FIXUP_TARGET_PATH 43 44$(eval $(autotools-package)) 45