[meta-intel] [PATCH 09/21] meta-intel/common: Update Calgary Corpus do_install recipe
wei.sern.chan at intel.com
wei.sern.chan at intel.com
Wed May 7 17:19:41 PDT 2014
From: Ong Boon Leong <boon.leong.ong at intel.com>
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 <boon.leong.ong at intel.com>
---
.../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
More information about the meta-intel
mailing list