mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 12:59:03 +02:00
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@intel.com> Acked-by: Ong Boon Leong <boon.leong.ong@intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
This commit is contained in:
parent
3de9e13d08
commit
07a482f3c3
|
@ -5,26 +5,18 @@ 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"
|
||||
|
||||
# The tarball doesn't extract a directory, so ask bitbake to make one
|
||||
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 () {
|
||||
# do_unpack creates this directory but we don't want to install it, so
|
||||
# delete it now.
|
||||
rm -rf ${S}/patches
|
||||
|
||||
install -d ${D}/lib/firmware
|
||||
install -m 664 ${S}/* ${D}/lib/firmware
|
||||
}
|
||||
|
||||
FILES_${PN} = "/lib/firmware/*"
|
||||
|
|
Loading…
Reference in New Issue
Block a user