image-mklibs: Fix grep pattern when mklibs collects executables in rootfs
authorLei Liu <lei.liu2@windriver.com>
Mon, 11 Nov 2013 09:27:42 +0000 (17:27 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Nov 2013 16:00:27 +0000 (16:00 +0000)
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 <lei.liu2@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image-mklibs.bbclass

index 66b0f52..e975f5d 100644 (file)
@@ -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+^\./++" \