[OE-core] [PATCH 2/2] Fix grep pattern when mklibs collects executables in rootfs
Lei Liu
layliu at gmail.com
Mon Nov 11 09:27:42 UTC 2013
From: Lei Liu <lei.liu2 at windriver.com>
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 at windriver.com>
---
meta/classes/image-mklibs.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass
index 66b0f52..e975f5d 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+^\./++" \
--
1.7.0.4
More information about the Openembedded-core
mailing list