diff options
author | Roy Li <rongqing.li@windriver.com> | 2013-11-26 13:17:09 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-27 12:05:43 +0000 |
commit | 79b0979ecd33ce15563354c90d8bcc857ddf95ad (patch) | |
tree | b2b12073333f46a85e31217e211099e5ec23491a /meta/recipes-devtools/elfutils | |
parent | e16b6bab8d5286cdf58d808ef4c195127d69a8c8 (diff) | |
download | openembedded-core-79b0979ecd33ce15563354c90d8bcc857ddf95ad.tar.gz openembedded-core-79b0979ecd33ce15563354c90d8bcc857ddf95ad.tar.bz2 openembedded-core-79b0979ecd33ce15563354c90d8bcc857ddf95ad.zip |
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
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.bb | 2 |
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 594dfb09ea..14eac26d83 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 } |