diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2010-06-08 00:24:59 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2010-06-08 23:03:15 +0200 |
commit | 2aef1cb15db38589ba70cf8aed3f2870a276c233 (patch) | |
tree | 0e4422d71cef84362e32cdf1d924b9f2a7ca4d65 /classes | |
parent | 9acfde0899a36989b828139530afb18db16c9251 (diff) |
debian.bbclass: call objdump from binutils-cross
* 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
* PATH set in cmd as suggested by kergoth
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/debian.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/debian.bbclass b/classes/debian.bbclass index 8f6e7d88cf..b8b56fad8b 100644 --- a/classes/debian.bbclass +++ b/classes/debian.bbclass @@ -13,6 +13,8 @@ do_package_write_deb[rdeptask] = "do_package" do_package_write_tar[rdeptask] = "do_package" do_package_write_rpm[rdeptask] = "do_package" +inherit utils + python debian_package_name_hook () { import glob, copy, stat, errno, re @@ -54,7 +56,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 = "PATH=" + bb.data.getVar('PATH', d, 1) + " " + (bb.data.getVar('TARGET_PREFIX', d, 1) or "") + "objdump -p " + fp + " 2>/dev/null" fd = os.popen(cmd) lines = fd.readlines() fd.close() |