]> code.ossystems Code Review - openembedded-core.git/commitdiff
elfutils: remove eu-objdump if it does not work
authorRoy Li <rongqing.li@windriver.com>
Mon, 11 Nov 2013 07:52:27 +0000 (15:52 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Nov 2013 10:24:26 +0000 (10:24 +0000)
[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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/elfutils/elfutils_0.155.bb

index 1a8c3c7e8c7e5770c2b44c6e8d62052fda2bc27d..594dfb09ea1e0325ec43dc46752d18073d005e85 100644 (file)
@@ -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