summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2013-11-26 13:17:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-29 09:52:58 +0000
commit15bff7497df8561cb3df3cc38efc5942c429d624 (patch)
tree6b355b5a06c906ab2509a81b2c5a3910f86edbbe /meta/recipes-devtools/elfutils
parentbd9f9abbdd07f99af6ad6817b7ef798bac97cd14 (diff)
downloadast2050-yocto-poky-15bff7497df8561cb3df3cc38efc5942c429d624.zip
ast2050-yocto-poky-15bff7497df8561cb3df3cc38efc5942c429d624.tar.gz
elfutils: fix the condition check before remove eu-objdump
"grep -q" does not write anything to standard output, the result is same as a empty string, The second test becomes [!""] which is a fixed true value (From OE-Core rev: 79b0979ecd33ce15563354c90d8bcc857ddf95ad) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils')
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.155.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.155.bb b/meta/recipes-devtools/elfutils/elfutils_0.155.bb
index 594dfb0..14eac26 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.155.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.155.bb
@@ -48,7 +48,7 @@ do_configure_prepend() {
}
do_install_append() {
- if [ "${TARGET_ARCH}" != "x86_64" ] && [ ! `echo "${TARGET_ARCH}"|grep -q 'i.86'` ];then
+ if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then
rm ${D}${bindir}/eu-objdump
fi
}
OpenPOWER on IntegriCloud