Patchwork [meta-fsl-ppc,11/39] usdpaa: update to sdk v1.6 release

login
register
mail settings
Submitter Ting Liu
Date July 2, 2014, 3:01 a.m.
Message ID <1404270108-3448-12-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/74591/
State Superseded
Headers show

Comments

Ting Liu - July 2, 2014, 3:01 a.m.
From: Vakul Garg <vakul@freescale.com>

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 recipes-dpaa/usdpaa/usdpaa_git.bb |   65 +++++++++++++++++++++++++------------
 1 file changed, 45 insertions(+), 20 deletions(-)

Patch

diff --git a/recipes-dpaa/usdpaa/usdpaa_git.bb b/recipes-dpaa/usdpaa/usdpaa_git.bb
index 8288b2a..9c7e388 100644
--- a/recipes-dpaa/usdpaa/usdpaa_git.bb
+++ b/recipes-dpaa/usdpaa/usdpaa_git.bb
@@ -8,12 +8,13 @@  inherit pkgconfig
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 DEPENDS = "libxml2 libedit ncurses readline flib fmc"
+DEPENDS_append_b4860qds = " ipc-ust"
+DEPENDS_append_b4420qds = " ipc-ust"
+
 RDEPENDS_${PN} = "libgcc bash"
 
 SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git;nobranch=1"
-SRCREV = "cc8e332c64e5840ea2037624159801284434caba"
-SRCREV_t2080qds = "e6659c7a473fbaa64313c941d5fb10c723c64731"
-SRCREV_t2080qds-64b = "e6659c7a473fbaa64313c941d5fb10c723c64731"
+SRCREV = "db3534f4d21892bc7f9fbe973f4e4cf8de924c75"
 
 S = "${WORKDIR}/git"
 
@@ -21,26 +22,50 @@  EXTRA_OEMAKE = 'CC="${CC}" LD="${LD}" AR="${AR}"'
 export ARCH="${TARGET_ARCH}"
 
 do_compile_prepend () {
-	case ${MACHINE} in
-		b4420qds|b4420qds-64b|b4860qds|b4860qds-64b) SOC=B4860;;
-		t4240qds|t4240qds-64b) SOC=T4240;;
-		p1023rdb) SOC=P1023;;
-		*) SOC=P4080;;
-	esac
-	export FMC_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmc"
-	export FMLIB_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmd \
-		-I ${STAGING_INCDIR}/fmd/Peripherals \
-		-I ${STAGING_INCDIR}/fmd/integrations \
-		-D $SOC"
-
-	export LIBXML2_CFLAGS="$(pkg-config --cflags libxml-2.0)"
-	export LIBXML2_LDFLAGS="$(pkg-config --libs --static libxml-2.0)"
-	export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)"
-	export LIBEDIT_LDFLAGS="$(pkg-config --libs --static libedit)"
+    case ${MACHINE} in
+        b4420qds|b4420qds-64b|b4860qds|b4860qds-64b)
+            SOC=B4860;
+            FMAN_VARIANT=B4860;;
+        t1040qds|t1040qds-64b|t1040rdb|t1040rdb-64b)
+            SOC=T1040;
+            FMAN_VARIANT=B4860;;
+        t2080qds|t2080qds-64b|t2080rdb|t2080rdb-64b)
+            SOC=T2080;
+            FMAN_VARIANT=B4860;;
+        t4240qds|t4240qds-64b|t4240rdb|t4240rdb-64b)
+            SOC=T4240;
+            FMAN_VARIANT=B4860;;
+        p1023rdb)
+            SOC=P1023;
+            FMAN_VARIANT=P1023;;
+        *)
+            SOC=P4080;
+            FMAN_VARIANT=P4080;;
+    esac
+    export SOC=$SOC
+    export FMC_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmc"
+    export FMLIB_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmd \
+        -I ${STAGING_INCDIR}/fmd/Peripherals \
+        -I ${STAGING_INCDIR}/fmd/integrations \
+        -D$FMAN_VARIANT"
+
+    export LIBXML2_CFLAGS="$(pkg-config --cflags libxml-2.0)"
+    export LIBXML2_LDFLAGS="$(pkg-config --libs --static libxml-2.0)"
+    export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)"
+    export LIBEDIT_LDFLAGS="$(pkg-config --libs --static libedit)"
 }
 
 do_install () {
-	oe_runmake install DESTDIR=${D}
+    case ${MACHINE} in
+        b4420qds|b4420qds-64b|b4860qds|b4860qds-64b) SOC=B4860;;
+        t1040qds|t1040qds-64b|t1040rdb|t1040rdb-64b) SOC=T1040;;
+        t2080qds|t2080qds-64b|t2080rdb|t2080rdb-64b) SOC=T2080;;
+        t4240qds|t4240qds-64b|t4240rdb|t4240rdb-64b) SOC=T4240;;
+        p1023rdb) SOC=P1023;;
+        *) SOC=P4080;;
+    esac
+    export SOC=$SOC
+    oe_runmake install DESTDIR=${D}
 }
 
 PARALLEL_MAKE_pn-${PN} = ""