summaryrefslogtreecommitdiffstats
path: root/meta/classes/debian.bbclass
diff options
context:
space:
mode:
authorJames Limbouris <james@digitalmatter.com.au>2012-06-18 10:33:33 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-18 13:24:59 +0100
commit66517610c55a23ce6ac077f666714841b1c20148 (patch)
tree6bf3833ec0c4af5aaef42f0d5bf9cec87a19cec7 /meta/classes/debian.bbclass
parent85d7c018fe2befacc1b0f81b0ae80e0aa5dc76c1 (diff)
downloadpoky-66517610c55a23ce6ac077f666714841b1c20148.tar.gz
debian.bbclass: invoke target objdump
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. (From OE-Core rev: 6d761ae17ddbd3d936e7fe985b40825ad62b2418) Signed-off-by: James Limbouris <james@digitalmatter.com.au> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/debian.bbclass')
-rw-r--r--meta/classes/debian.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index 3637e2ebe7..bb4ae11eca 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -60,7 +60,7 @@ python debian_package_name_hook () {
60 for f in files: 60 for f in files:
61 if so_re.match(f): 61 if so_re.match(f):
62 fp = os.path.join(root, f) 62 fp = os.path.join(root, f)
63 cmd = (d.getVar('BUILD_PREFIX', True) or "") + "objdump -p " + fp + " 2>/dev/null" 63 cmd = (d.getVar('TARGET_PREFIX', True) or "") + "objdump -p " + fp + " 2>/dev/null"
64 fd = os.popen(cmd) 64 fd = os.popen(cmd)
65 lines = fd.readlines() 65 lines = fd.readlines()
66 fd.close() 66 fd.close()