]> code.ossystems Code Review - openembedded-core.git/commitdiff
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>
Thu, 12 Dec 2013 16:53:05 +0000 (16:53 +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 master rev: a52ef8c5dcd71f39bb48c71fb868cc0db662560e)

Signed-off-by: Lei Liu <lei.liu2@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/image-mklibs.bbclass

index 66b0f5251e2a4c70eb7b827b4cfcf33b42e5dfb7..e975f5d70577c4563fba2a933405a8da4593dab6 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+^\./++" \