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-29 09:52:58 +0000 |
commit | 15bff7497df8561cb3df3cc38efc5942c429d624 (patch) | |
tree | 6b355b5a06c906ab2509a81b2c5a3910f86edbbe /meta/recipes-devtools | |
parent | bd9f9abbdd07f99af6ad6817b7ef798bac97cd14 (diff) | |
download | 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')
-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() { | |||
48 | } | 48 | } |
49 | 49 | ||
50 | do_install_append() { | 50 | do_install_append() { |
51 | if [ "${TARGET_ARCH}" != "x86_64" ] && [ ! `echo "${TARGET_ARCH}"|grep -q 'i.86'` ];then | 51 | if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then |
52 | rm ${D}${bindir}/eu-objdump | 52 | rm ${D}${bindir}/eu-objdump |
53 | fi | 53 | fi |
54 | } | 54 | } |