[oe] [PATCH] debian.bbclass: call objdump from binutils-cross
Khem Raj
raj.khem at gmail.com
Tue Jun 8 14:05:54 UTC 2010
On Mon, Jun 7, 2010 at 11:58 PM, Martin Jansa <martin.jansa at gmail.com> wrote:
> * host objdump can support multiple targets and instead of output it shows list of targets to choose from
> see http://thread.gmane.org/gmane.comp.handhelds.openembedded/33294/focus=33357
> * for some reason cross/bin doesn't seem to be in PATH, that's why there
> is full path
>
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Acked-by: Khem Raj <raj.khem at gmail.com>
> ---
> classes/debian.bbclass | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/classes/debian.bbclass b/classes/debian.bbclass
> index 8f6e7d8..d41c922 100644
> --- a/classes/debian.bbclass
> +++ b/classes/debian.bbclass
> @@ -54,7 +54,7 @@ python debian_package_name_hook () {
> for f in files:
> if so_re.match(f):
> fp = os.path.join(root, f)
> - cmd = (bb.data.getVar('BUILD_PREFIX', d, 1) or "") + "objdump -p " + fp + " 2>/dev/null"
> + cmd = bb.data.getVar('CROSS_DIR', d, 1) + "/" + bb.data.getVar('bindir_cross', d, 1) + "/" + bb.data.getVar('TARGET_PREFIX', d, 1) + "objdump -p " + fp + " 2>/dev/null"
> fd = os.popen(cmd)
> lines = fd.readlines()
> fd.close()
> --
> 1.7.1
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
More information about the Openembedded-devel
mailing list