Patchwork [meta-fsl-arm,v3,08/23] libfslcodec: Enable/disable the VPU support based on SoC

login
register
mail settings
Submitter Otavio Salvador
Date Feb. 6, 2014, 10:10 p.m.
Message ID <1391724650-31290-9-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/66435/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Feb. 6, 2014, 10:10 p.m.
This enables the VPU support for all SoCs but MX23, MX28 and MX6SL.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

Changes in v3: None
Changes in v2: None

 recipes-multimedia/libfslcodec/libfslcodec.inc | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Patch

diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc
index aa5282c..a693ecf 100644
--- a/recipes-multimedia/libfslcodec/libfslcodec.inc
+++ b/recipes-multimedia/libfslcodec/libfslcodec.inc
@@ -1,4 +1,4 @@ 
-# Copyright (C) 2012-2013 Freescale Semiconductor
+# Copyright (C) 2012-2014 Freescale Semiconductor
 # Released under the MIT license (see COPYING.MIT for the terms)
 DESCRIPTION = "Freescale Multimedia codec libs"
 LICENSE = "Proprietary"
@@ -20,6 +20,13 @@  ALLOW_EMPTY_${PN}-meta = "1"
 # Choose between Soft Float-Point and Hard Float-Point
 EXTRA_OECONF = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--enable-fhw', '', d)}"
 
+# VPU Hardware acceleration
+VPU_SUPPORT = "--disable-vpu"
+VPU_SUPPORT_mx6 = "--enable-vpu"
+VPU_SUPPORT_mx6sl = "--disable-vpu"
+VPU_SUPPORT_mx5 = "--enable-vpu"
+EXTRA_OECONF += "${VPU_SUPPORT}"
+
 do_install_append() {
 	# FIXME: This link points to nowhere
 	rm ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so