Patchwork [meta-fsl-arm,1/6] imx-vpu (3.10.9-1.0.0): Use imx-vpu.inc to avoid code duplication

login
register
mail settings
Submitter Otavio Salvador
Date Nov. 4, 2013, 8:55 p.m.
Message ID <1383598536-20708-1-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/61119/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Nov. 4, 2013, 8:55 p.m.
The code in 3.10.9-1.0.0 version was duplicating the logic used in the
imx-vpu.inc so we removed this duplication.

Change-Id: Ie6fc0c5f1a43f7a3bc2b89c155e47b8fa5cdb1a7
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-bsp/imx-vpu/imx-vpu.inc             |  1 +
 recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb | 16 +---------------
 2 files changed, 2 insertions(+), 15 deletions(-)

Patch

diff --git a/recipes-bsp/imx-vpu/imx-vpu.inc b/recipes-bsp/imx-vpu/imx-vpu.inc
index 3c47d81..fd59770 100644
--- a/recipes-bsp/imx-vpu/imx-vpu.inc
+++ b/recipes-bsp/imx-vpu/imx-vpu.inc
@@ -6,6 +6,7 @@  DEPENDS = "virtual/kernel"
 inherit fsl-eula-unpack
 
 PLATFORM_mx5 = "IMX51"
+PLATFORM_mx6 = "IMX6Q"
 
 SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
 
diff --git a/recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb b/recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb
index 89b5225..b288a6a 100644
--- a/recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb
+++ b/recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb
@@ -1,23 +1,9 @@ 
 # Copyright (C) 2013 Freescale Semiconductor
-
-require recipes-bsp/imx-lib/imx-lib.inc
-
-inherit fsl-eula-unpack
-
-DESCRIPTION = "Freescale VPU library"
-LICENSE = "Proprietary"
-LIC_FILES_CHKSUM = "file://vpu/EULA.txt;md5=b063366b066c9f10037c59756a9ced54"
+require imx-vpu.inc
 
 PE = "1"
 
-SRC_URI = "${FSL_MIRROR}/imx-vpu-${PV}.bin;fsl-eula=true"
 SRC_URI[md5sum] = "61331c9ed2d4c1b3aeab9c35fd034ac3"
 SRC_URI[sha256sum] = "5dd86a26c8d3013e0d78308b1ccd8815730818e465787f55013b492d2d3c7710"
 
-do_compile () {
-    INCLUDE_DIR="-I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include"
-
-    oe_runmake CROSS_COMPILE="${HOST_PREFIX}" PLATFORM="${PLATFORM}" INCLUDE="${INCLUDE_DIR}" all
-}
-
 COMPATIBLE_MACHINE = "(mx6)"