diff options
author | Graeme Gregory <dp@xora.org.uk> | 2006-11-28 15:10:54 +0000 |
---|---|---|
committer | Graeme Gregory <dp@xora.org.uk> | 2006-11-28 15:10:54 +0000 |
commit | 4b127550884048827753325400f10a2e9461a07b (patch) | |
tree | 09adbfe85accb062310095f7ead10001db3b1497 | |
parent | 3f470438075ff760f3ccbcb11535b41c8c106dae (diff) |
bitbake.conf : introduce the OBJDUMP variable, by default set to
${HOST_PREFIX}objdump
package.bbclass : make use of the OBJDUMP variable rather than
calling ${BUILD_PREFIX}objdump inside do_shlibs. As the original
usage was faulty and ended up calling host objdump which works
for some arm targets but not all.
-rw-r--r-- | classes/package.bbclass | 2 | ||||
-rw-r--r-- | conf/bitbake.conf | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass index 4909fc61df..c53b3ee708 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -575,7 +575,7 @@ python package_do_shlibs() { soname = None path = os.path.join(root, file) if os.access(path, os.X_OK) or lib_re.match(file): - cmd = (bb.data.getVar('BUILD_PREFIX', d, 1) or "") + "objdump -p " + path + " 2>/dev/null" + cmd = bb.data.getVar('OBJDUMP', d, 1) + " -p " + path + " 2>/dev/null" fd = os.popen(cmd) lines = fd.readlines() fd.close() diff --git a/conf/bitbake.conf b/conf/bitbake.conf index f49f26b7da..92c7cef2dd 100644 --- a/conf/bitbake.conf +++ b/conf/bitbake.conf @@ -233,6 +233,7 @@ export AS = "${HOST_PREFIX}as" export RANLIB = "${HOST_PREFIX}ranlib" export STRIP = "${HOST_PREFIX}strip" export OBJCOPY = "${HOST_PREFIX}objcopy" +export OBJDUMP = "${HOST_PREFIX}objdump" export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}" |