Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] debian.bbclass: invoke target objdump
@ 2012-06-18  2:33 James Limbouris
  2012-06-18  2:44 ` Khem Raj
  2012-06-18 12:43 ` Richard Purdie
  0 siblings, 2 replies; 3+ messages in thread
From: James Limbouris @ 2012-06-18  2:33 UTC (permalink / raw)
  To: openembedded-core

Using the host objdump can lead to errors like:

objdump: library.so.1.0.0: File format is ambiguous
objdump: Matching formats: elf32-littlearm elf32-littlearm-symbian elf32-littlearm-vxworks

with certain configurations of binutils.

Signed-off-by: James Limbouris <james@digitalmatter.com.au>
---
 meta/classes/debian.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index 3637e2e..bb4ae11 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -60,7 +60,7 @@ python debian_package_name_hook () {
 				for f in files:
 					if so_re.match(f):
 						fp = os.path.join(root, f)
-						cmd = (d.getVar('BUILD_PREFIX', True) or "") + "objdump -p " + fp + " 2>/dev/null"
+						cmd = (d.getVar('TARGET_PREFIX', True) or "") + "objdump -p " + fp + " 2>/dev/null"
 						fd = os.popen(cmd)
 						lines = fd.readlines()
 						fd.close()
-- 
1.7.3.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-18 12:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18  2:33 [PATCH] debian.bbclass: invoke target objdump James Limbouris
2012-06-18  2:44 ` Khem Raj
2012-06-18 12:43 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox