From: Lei Liu Date: Mon, 11 Nov 2013 09:27:42 +0000 (+0800) Subject: image-mklibs: Fix grep pattern when mklibs collects executables in rootfs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eb26f78652970141a87eb8177617de2af7f50b3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. (From OE-Core rev: a52ef8c5dcd71f39bb48c71fb868cc0db662560e) Signed-off-by: Lei Liu Signed-off-by: Richard Purdie --- diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass index 66b0f5251e2..e975f5d7057 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+^\./++" \