[meta-intel] [PATCH 09/21] meta-intel/common: Update Calgary Corpus do_install recipe
Kamble, Nitin A
nitin.a.kamble at intel.com
Thu May 8 14:06:33 PDT 2014
On 5/7/2014 5:19 PM, wei.sern.chan at intel.com wrote:
> 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.
This will need updating everytime the filelist changes.
Instead can you use do_unpack_append() to deal with the unwanted
patches directory?
Nitin
>
> 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
> }
More information about the meta-intel
mailing list