diff options
author | Lei Liu <lei.liu2@windriver.com> | 2013-11-11 17:27:42 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-12 10:22:20 +0000 |
commit | a52ef8c5dcd71f39bb48c71fb868cc0db662560e (patch) | |
tree | 099aa99b6993755bfbc5565a2b1560a0999f8b52 | |
parent | b6201d2a27639f9d384ba1137096a05f6795797a (diff) | |
download | openembedded-core-a52ef8c5dcd71f39bb48c71fb868cc0db662560e.tar.gz openembedded-core-a52ef8c5dcd71f39bb48c71fb868cc0db662560e.tar.bz2 openembedded-core-a52ef8c5dcd71f39bb48c71fb868cc0db662560e.zip |
image-mklibs: Fix grep pattern when mklibs collects executables in rootfs
File command in some version could print extra space between
"LSB" and "executable" - it causes mklibs can't find any executables
using grep "LSB executable". Fix the grep pattern to catch
multiple spaces.
Signed-off-by: Lei Liu <lei.liu2@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/image-mklibs.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass index 66b0f5251e..e975f5d705 100644 --- a/meta/classes/image-mklibs.bbclass +++ b/meta/classes/image-mklibs.bbclass @@ -9,7 +9,7 @@ mklibs_optimize_image_doit() { du -bs > ${WORKDIR}/mklibs/du.before.mklibs.txt for i in `find .`; do file $i; done \ | grep ELF \ - | grep "LSB executable" \ + | grep "LSB *executable" \ | grep "dynamically linked" \ | sed "s/:.*//" \ | sed "s+^\./++" \ |