Patchwork [meta-fsl-ppc,20/26] usdpaa: upgrade to the version of sdk-1.4

login
register
mail settings
Submitter Ting Liu
Date June 27, 2013, 9:25 a.m.
Message ID <1372325114-4423-11-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/52435/
State Superseded
Headers show

Comments

Ting Liu - June 27, 2013, 9:25 a.m.
From: Zhenhua Luo <zhenhua.luo@freescale.com>

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 recipes-tools/usdpaa/usdpaa_git.bb |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

Patch

diff --git a/recipes-tools/usdpaa/usdpaa_git.bb b/recipes-tools/usdpaa/usdpaa_git.bb
index f76ee1d..791b9c0 100644
--- a/recipes-tools/usdpaa/usdpaa_git.bb
+++ b/recipes-tools/usdpaa/usdpaa_git.bb
@@ -2,7 +2,7 @@  DESCRIPTION = "User-Space Data-Path Acceleration Architecture drivers"
 SECTION = "usdpaa"
 LICENSE = "BSD & GPLv2"
 LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f"
-PR = "r4"
+PR = "r5"
 
 inherit pkgconfig
 
@@ -10,17 +10,29 @@  DEPENDS = "libxml2 libedit ncurses readline flib fmc"
 RDEPENDS_${PN} = "libgcc"
 
 SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git"
-SRCREV = "670ad8827fd83169ccb54a008c638dbb497b1c61"
+SRCREV = "97fe45d9697ef339e10a1885539b23fa7fcb113e"
 
 COMPATIBLE_HOST_fslmachine = ".*"
 COMPATIBLE_HOST ?= "(none)"
 
 S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = 'V=1 CC="${CC}" LD="${LD}" AR="${AR}"'
+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)"