summaryrefslogtreecommitdiff
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:20:29 +0100
commit6d761ae17ddbd3d936e7fe985b40825ad62b2418 (patch)
tree0b8182fb9dcf61aea6d9b22114ad14c569d73dc3 /meta/classes/debian.bbclass
parent8f4e7dfd8b60a10411261666b4da2b4aff1c4231 (diff)
downloadopenembedded-core-6d761ae17ddbd3d936e7fe985b40825ad62b2418.tar.gz
openembedded-core-6d761ae17ddbd3d936e7fe985b40825ad62b2418.tar.bz2
openembedded-core-6d761ae17ddbd3d936e7fe985b40825ad62b2418.zip
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. 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 () {
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()