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