[oe-commits] Roy Li : elfutils: remove eu-objdump if it does not work

git at git.openembedded.org git at git.openembedded.org
Tue Nov 12 16:09:25 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: abf01e2f36943b5a5c5d2d827186054a51902130
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=abf01e2f36943b5a5c5d2d827186054a51902130

Author: Roy Li <rongqing.li at windriver.com>
Date:   Mon Nov 11 15:52:27 2013 +0800

elfutils: remove eu-objdump if it does not work

[YOCTO #5283]

eu-objdump does not work on mips, arm and ppc, so remove it from these
unsupported architectures

Signed-off-by: Roy Li <rongqing.li at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/elfutils/elfutils_0.155.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-devtools/elfutils/elfutils_0.155.bb b/meta/recipes-devtools/elfutils/elfutils_0.155.bb
index 1a8c3c7..594dfb0 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.155.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.155.bb
@@ -47,6 +47,12 @@ do_configure_prepend() {
 	cp ${WORKDIR}/*dis.h ${S}/libcpu
 }
 
+do_install_append() {
+	if [ "${TARGET_ARCH}" != "x86_64" ] && [ ! `echo "${TARGET_ARCH}"|grep -q 'i.86'` ];then
+		rm ${D}${bindir}/eu-objdump
+	fi
+}
+
 # we can not build complete elfutils when using uclibc
 # but some recipes e.g. gcc 4.5 depends on libelf so we
 # build only libelf for uclibc case



More information about the Openembedded-commits mailing list