diff options
author | Darren Hart <dvhart@linux.intel.com> | 2010-12-28 17:17:25 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-06 10:06:28 +0000 |
commit | b4090f287c90fcf37a789dbe0acd0f29db83942c (patch) | |
tree | 6408177b74d11396e8fc3d33a3eef5cd61c0b854 /meta | |
parent | baab6f69fe7aa79977abfbdfda4efdfb0280709e (diff) | |
download | poky-b4090f287c90fcf37a789dbe0acd0f29db83942c.tar.gz |
trace-cmd: fix cross-compilation
The trace-cmd Makefile forces certain variables, such as CC and AR.
It was using the host gcc and loader, fix it to use the poky-built
cross-compiler and linker.
inherit pkgconfig to ensure we don't use the host pkg-config.
Remove unecessary variables from the oemake commands, such as ARCH
and LD which aren't used by the Makefile.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/trace-cmd/trace-cmd_git.bb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb index e375afcade..a7eca5f9b8 100644 --- a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb +++ b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb | |||
@@ -2,18 +2,16 @@ DESCRIPTION = "User interface to Ftrace" | |||
2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
4 | 4 | ||
5 | PR = r1 | 5 | PR = r2 |
6 | PV = "1.0.4+git${SRCPV}" | 6 | PV = "1.0.4+git${SRCPV}" |
7 | 7 | ||
8 | inherit pkgconfig | ||
9 | |||
8 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git" | 10 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git" |
9 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
10 | 12 | ||
11 | 13 | EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}'" | |
12 | do_compile() { | ||
13 | oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix} | ||
14 | } | ||
15 | 14 | ||
16 | do_install() { | 15 | do_install() { |
17 | oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \ | 16 | oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install |
18 | prefix=${prefix} DESTDIR=${D} install | ||
19 | } | 17 | } |