Patchwork elfutils: remove eu-objdump if it does not work

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Nov. 11, 2013, 7:52 a.m.
Message ID <1384156347-31665-1-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/61401/
State Accepted
Commit a6784563ef7874cf37b887bb1949b1ef58d41afd
Headers show

Comments

rongqing.li@windriver.com - Nov. 11, 2013, 7:52 a.m.
From: Roy Li <rongqing.li@windriver.com>

[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@windriver.com>
---
 meta/recipes-devtools/elfutils/elfutils_0.155.bb |    6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/meta/recipes-devtools/elfutils/elfutils_0.155.bb b/meta/recipes-devtools/elfutils/elfutils_0.155.bb
index 1a8c3c7..dec3379 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