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 master rev: a52ef8c5dcd71f39bb48c71fb868cc0db662560e)

(From OE-Core rev: 78c22d9087b3058dd947f21bd24fa621aba7dd6d)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Lei Liu 2013-11-11 17:27:42 +08:00 committed by Richard Purdie
parent b4d22bb10f
commit 728ecd93c5
1 changed files with 1 additions and 1 deletions

View 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+^\./++" \