[oe-commits] Martin Jansa : debian.bbclass: call objdump from binutils-cross
git version control
git at git.openembedded.org
Tue Jun 8 21:17:02 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 2aef1cb15db38589ba70cf8aed3f2870a276c233
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2aef1cb15db38589ba70cf8aed3f2870a276c233
Author: Martin Jansa <Martin.Jansa at gmail.com>
Date: Tue Jun 8 00:24:59 2010 +0200
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 at gmail.com>
Acked-by: Khem Raj <raj.khem at gmail.com>
---
classes/debian.bbclass | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/classes/debian.bbclass b/classes/debian.bbclass
index 8f6e7d8..b8b56fa 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()
More information about the Openembedded-commits
mailing list