Patchwork [meta-fsl-ppc,2/3] usdpaa: export ARCH for all tasks

login
register
mail settings
Submitter Ting Liu
Date June 9, 2013, 2:14 a.m.
Message ID <1370744093-1548-2-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/51395/
State Superseded
Headers show

Comments

Ting Liu - June 9, 2013, 2:14 a.m.
From: Zongchun Yu <b40527@freescale.com>

ARCH environment variable is needed for do_{compile,install,clean}.

This fixes the issue: when run command "bitbake -c cleansstate usdpaa",
the obj files was not be cleaned.

Signed-off-by: Zongchun Yu <b40527@freescale.com>
Change-Id: Icd4e84edc21ffbc2b90f659c50b3ed54c787bee3
Reviewed-on: http://git.am.freescale.net:8181/2677
Reviewed-by: Luo Zhenhua-B19537 <zhenhua.luo@freescale.com>
Tested-by: Luo Zhenhua-B19537 <zhenhua.luo@freescale.com>
---
 recipes-tools/usdpaa/usdpaa_git.bb |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/recipes-tools/usdpaa/usdpaa_git.bb b/recipes-tools/usdpaa/usdpaa_git.bb
index 914d35a..3138675 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 = "r3"
+PR = "r4"
 
 inherit pkgconfig
 
@@ -15,9 +15,9 @@  SRCREV = "670ad8827fd83169ccb54a008c638dbb497b1c61"
 S = "${WORKDIR}/git"
 
 EXTRA_OEMAKE = 'V=1 CC="${CC}" LD="${LD}" AR="${AR}"'
+export ARCH="${TARGET_ARCH}"
 
 do_compile_prepend () {
-	export ARCH=${TARGET_ARCH}
 	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)"
@@ -25,7 +25,7 @@  do_compile_prepend () {
 }
 
 do_install () {
-	oe_runmake ARCH=${TARGET_ARCH} install DESTDIR=${D}
+	oe_runmake install DESTDIR=${D}
 }
 
 PARALLEL_MAKE_pn-${PN} = ""