[meta-intel] [PATCH 4/5] calgary-corpus: clean up unpack logic

Ong, Boon Leong boon.leong.ong at intel.com
Tue May 20 15:38:20 PDT 2014



> -----Original Message-----
> From: meta-intel-bounces at yoctoproject.org [mailto:meta-intel-
> bounces at yoctoproject.org] On Behalf Of Ross Burton
> Sent: Wednesday, May 21, 2014 12:18 AM
> To: meta-intel at yoctoproject.org
> Subject: [meta-intel] [PATCH 4/5] calgary-corpus: clean up unpack logic
> 
> As with canterbury-corpus, use SRC_URI parameters to unpack correctly
> instead of doing it by hand.
> 
> Signed-off-by: Ross Burton <ross.burton at intel.com>
Acked-by: Ong Boon Leong <boon.leong.ong at intel.com>
> ---
>  .../calgary-corpus/calgary-corpus.bb               |   21 +++++---------------
>  1 file changed, 5 insertions(+), 16 deletions(-)
> 
> diff --git a/common/recipes-corpus/calgary-corpus/calgary-corpus.bb
> b/common/recipes-corpus/calgary-corpus/calgary-corpus.bb
> index 8c3aea8..36ca588 100644
> --- a/common/recipes-corpus/calgary-corpus/calgary-corpus.bb
> +++ b/common/recipes-corpus/calgary-corpus/calgary-corpus.bb
> @@ -5,26 +5,15 @@ SECTION = "misc"
>  LICENSE = "GPLv2"
>  LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-
> 2.0;md5=801f80980d171dd6425610833a22dbe6"
> 
> -S = "${WORKDIR}/corpus"
> -
> -SRC_URI = "http://corpus.canterbury.ac.nz/resources/calgary.tar.gz"
> -
> +SRC_URI =
> "http://corpus.canterbury.ac.nz/resources/calgary.tar.gz;subdir=${BP}"
>  SRC_URI[md5sum] = "651d06b35d3d39522157cf8dc4a3d01c"
>  SRC_URI[sha256sum] =
> "e109eebdc19c5cee533c58bd6a49a4be3a77cc52f84ba234a089148a4f2093b7"
> 
> -do_unpack () {
> -	mkdir -p ${S}
> -	tar -xf ${DL_DIR}/calgary.tar.gz -C ${WORKDIR}/corpus
> -}
> -
> -
> -do_unpack_append () {
> -	rm -rf ${WORKDIR}/corpus/patches
> -}
> -
> -FILES_${PN} = "/lib/firmware/*"
> -
>  do_install () {
> +	rm -rf ${S}/patches
> +
>  	install -d ${D}/lib/firmware
>  	install -m 664 ${S}/* ${D}/lib/firmware  }
> +
> +FILES_${PN} = "/lib/firmware/*"
> --
> 1.7.10.4
> 
> --
> _______________________________________________
> meta-intel mailing list
> meta-intel at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-intel


More information about the meta-intel mailing list