Patchwork [meta-fsl-arm,1/6] imx-lib: Upgrade to 3.10.9-1.0.0

login
register
mail settings
Submitter Otavio Salvador
Date Oct. 30, 2013, 4:20 p.m.
Message ID <1383150024-7046-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/60803/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Oct. 30, 2013, 4:20 p.m.
From: Lauren Post <lauren.post@freescale.com>

This includes following main changes:

- imx-lib requires uapi header include for 3.10 kernel
- imx-lib no longer contains imx-vpu so all of imx-lib is LGPL
- libvpu is now in a separate component so eula-unpack inherit is not required

Also will not build libraries on mx6 only applicable to mx53

Previous kernels supported all the headers but 3.5.7 and 3.10.9
linux-imx do not inclue mx53 headers

Change-Id: Ia747ee6adf2c2e1a3425ae183ac9e3e0018c5a79
Signed-off-by: Lauren Post <lauren.post@freescale.com>
---
 recipes-bsp/imx-lib/imx-lib.inc             | 14 +++++---------
 recipes-bsp/imx-lib/imx-lib_3.10.9-1.0.0.bb | 10 ++++++++++
 recipes-bsp/imx-lib/imx-lib_3.5.7-1.0.0.bb  | 11 -----------
 3 files changed, 15 insertions(+), 20 deletions(-)
 create mode 100644 recipes-bsp/imx-lib/imx-lib_3.10.9-1.0.0.bb
 delete mode 100644 recipes-bsp/imx-lib/imx-lib_3.5.7-1.0.0.bb

Patch

diff --git a/recipes-bsp/imx-lib/imx-lib.inc b/recipes-bsp/imx-lib/imx-lib.inc
index 95ffb88..f2e36d4 100644
--- a/recipes-bsp/imx-lib/imx-lib.inc
+++ b/recipes-bsp/imx-lib/imx-lib.inc
@@ -7,23 +7,19 @@  DEPENDS = "virtual/kernel"
 
 LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e"
 
-inherit fsl-eula-unpack
-
 PLATFORM_mx6 = "IMX6Q"
 PLATFORM_mx5 = "IMX51"
 
 PARALLEL_MAKE="-j 1"
 EXTRA_OEMAKE = ""
 
-do_configure_append () {
-    # FIXME: The build system does not allow CC and AR to be overriden
-    find ${S} -name Makefile | xargs sed -i 's,^\(CC\|AR\)=,\1 ?=,g'
-}
+SRC_URI = "${FSL_MIRROR}/imx-lib-${PV}.tar.gz"
 
 do_compile () {
-    INCLUDE_DIR="-I${STAGING_INCDIR} -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
-                 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include \
-                 -I${STAGING_KERNEL_DIR}/include"
+    INCLUDE_DIR="-I${STAGING_INCDIR}/uapi -I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include \
+                 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
+                 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include"
+
     oe_runmake CROSS_COMPILE="${HOST_PREFIX}" PLATFORM="${PLATFORM}" INCLUDE="${INCLUDE_DIR}" all
 }
 
diff --git a/recipes-bsp/imx-lib/imx-lib_3.10.9-1.0.0.bb b/recipes-bsp/imx-lib/imx-lib_3.10.9-1.0.0.bb
new file mode 100644
index 0000000..c3a7fb0
--- /dev/null
+++ b/recipes-bsp/imx-lib/imx-lib_3.10.9-1.0.0.bb
@@ -0,0 +1,10 @@ 
+# Copyright (C) 2013 Freescale Semiconductor
+
+include imx-lib.inc
+
+SRC_URI[md5sum] = "5cc9c8d09c7ba401cdab4a2ecbda89e2"
+SRC_URI[sha256sum] = "d1581c2f2956731da0c42e9dc17514a4d00790deeb83defeb5e07d14746190d8"
+
+PE = "1"
+
+COMPATIBLE_MACHINE = "(mx6)"
\ No newline at end of file
diff --git a/recipes-bsp/imx-lib/imx-lib_3.5.7-1.0.0.bb b/recipes-bsp/imx-lib/imx-lib_3.5.7-1.0.0.bb
deleted file mode 100644
index bfb1984..0000000
--- a/recipes-bsp/imx-lib/imx-lib_3.5.7-1.0.0.bb
+++ /dev/null
@@ -1,11 +0,0 @@ 
-# Copyright (C) 2013 Freescale Semiconductor
-
-require imx-lib.inc
-
-PE = "1"
-
-SRC_URI = "${FSL_MIRROR}/imx-lib-${PV}.bin;fsl-eula=true"
-SRC_URI[md5sum] = "70248d0932a6d2808701166f41b1708f"
-SRC_URI[sha256sum] = "ad746e34cf7d8cd9cb3f3f6c8eda85d9fa314fc6f57502d1f9cb454c5fab2f9d"
-
-COMPATIBLE_MACHINE = "(mx6)"