* 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 <[email protected]>
---
 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
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to