summaryrefslogtreecommitdiffstats
path: root/meta/classes/image-mklibs.bbclass
diff options
context:
space:
mode:
authorLei Liu <lei.liu2@windriver.com>2013-11-11 17:27:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-12 10:22:20 +0000
commita52ef8c5dcd71f39bb48c71fb868cc0db662560e (patch)
tree099aa99b6993755bfbc5565a2b1560a0999f8b52 /meta/classes/image-mklibs.bbclass
parentb6201d2a27639f9d384ba1137096a05f6795797a (diff)
downloadopenembedded-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>
Diffstat (limited to 'meta/classes/image-mklibs.bbclass')
-rw-r--r--meta/classes/image-mklibs.bbclass2
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+^\./++" \