From: Ong Boon Leong <[email protected]>

Fix do_install() issue caused by "patches" folder that is auto-generated
in do_unpack() step. Fix the issue by being explicitly listing out
the files in the calgary corpus tarball.

Signed-off-by: Ong Boon Leong <[email protected]>
---
 .../calgary-corpus/calgary-corpus.bb               |   27 +++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/common/recipes-corpus/calgary-corpus/calgary-corpus.bb 
b/common/recipes-corpus/calgary-corpus/calgary-corpus.bb
index 5d2c66d..c7e6926 100644
--- a/common/recipes-corpus/calgary-corpus/calgary-corpus.bb
+++ b/common/recipes-corpus/calgary-corpus/calgary-corpus.bb
@@ -19,7 +19,32 @@ do_unpack () {
 
 FILES_${PN} = "/lib/firmware/*"
 
+CORPUS_FILELIST=" \
+       bib \
+       book1 \
+       book2 \
+       geo \
+       news \
+       obj1 \
+       obj2 \
+       paper1 \
+       paper2 \
+       paper3 \
+       paper4 \
+       paper5 \
+       paper6 \
+       pic \
+       progc \
+       progl \
+       progp \
+       trans \
+"
+
 do_install () {
        install -d ${D}/lib/firmware
-       install -m 664 ${S}/* ${D}/lib/firmware
+
+       for i in ${CORPUS_FILELIST}
+       do
+               install -m 644  ${S}/$i         ${D}/lib/firmware
+       done
 }
-- 
1.7.10.4

-- 
_______________________________________________
meta-intel mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to