diff options
| author | Zongchun Yu <b40527@freescale.com> | 2013-06-09 04:50:50 +0000 |
|---|---|---|
| committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2013-06-18 18:00:44 +0800 |
| commit | 6110940bac181a7e2f3ed0674d039c299fe4772e (patch) | |
| tree | a7a93b357401a6e6ac832a2dd771752792fbf9a9 | |
| parent | 5571332e3534df94591a8b32f45ef4a32ed33ff7 (diff) | |
| download | meta-fsl-ppc-6110940bac181a7e2f3ed0674d039c299fe4772e.tar.gz | |
usdpaa: export ARCH for all tasks
ARCH environment variable is needed for do_{compile,install,clean}.
This fixes the issue: when run command "make clean" under devshell,
the obj files was not be cleaned.
Signed-off-by: Zongchun Yu <b40527@freescale.com>
| -rw-r--r-- | recipes-tools/usdpaa/usdpaa_git.bb | 6 |
1 files changed, 3 insertions, 3 deletions
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" | |||
| 2 | SECTION = "usdpaa" | 2 | SECTION = "usdpaa" |
| 3 | LICENSE = "BSD & GPLv2" | 3 | LICENSE = "BSD & GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f" | 4 | LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f" |
| 5 | PR = "r3" | 5 | PR = "r4" |
| 6 | 6 | ||
| 7 | inherit pkgconfig | 7 | inherit pkgconfig |
| 8 | 8 | ||
| @@ -15,9 +15,9 @@ SRCREV = "670ad8827fd83169ccb54a008c638dbb497b1c61" | |||
| 15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
| 16 | 16 | ||
| 17 | EXTRA_OEMAKE = 'V=1 CC="${CC}" LD="${LD}" AR="${AR}"' | 17 | EXTRA_OEMAKE = 'V=1 CC="${CC}" LD="${LD}" AR="${AR}"' |
| 18 | export ARCH="${TARGET_ARCH}" | ||
| 18 | 19 | ||
| 19 | do_compile_prepend () { | 20 | do_compile_prepend () { |
| 20 | export ARCH=${TARGET_ARCH} | ||
| 21 | export LIBXML2_CFLAGS="$(pkg-config --cflags libxml-2.0)" | 21 | export LIBXML2_CFLAGS="$(pkg-config --cflags libxml-2.0)" |
| 22 | export LIBXML2_LDFLAGS="$(pkg-config --libs --static libxml-2.0)" | 22 | export LIBXML2_LDFLAGS="$(pkg-config --libs --static libxml-2.0)" |
| 23 | export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)" | 23 | export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)" |
| @@ -25,7 +25,7 @@ do_compile_prepend () { | |||
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | do_install () { | 27 | do_install () { |
| 28 | oe_runmake ARCH=${TARGET_ARCH} install DESTDIR=${D} | 28 | oe_runmake install DESTDIR=${D} |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | PARALLEL_MAKE_pn-${PN} = "" | 31 | PARALLEL_MAKE_pn-${PN} = "" |
