Use the pre-packaged version of cargo for the native packager

This commit is contained in:
Derek Straka
2015-11-12 16:17:13 -06:00
parent 1280c29fa7
commit 8702fd31f7
2 changed files with 25 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
SUMMARY = "Cargo downloads your Rust project's dependencies and builds your project"
HOMEPAGE = "http://crates.io"
SECTION = "devel"
LICENSE = "MIT | Apache-2.0"
LIC_FILES_CHKSUM ="\
file://LICENSE-MIT;md5=362255802eb5aa87810d12ddf3cfedb4 \
file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \
file://LICENSE-THIRD-PARTY;md5=afbb7ae0aa70c8e437a007314eae5f3b \
"
SRC_URI = " \
https://static.rust-lang.org/cargo-dist/2015-04-02/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz \
"
SRC_URI[md5sum] = "3d62194d02a9088cd8aae379e9498134"
SRC_URI[sha256sum] = "16b6338ba2942989693984ba4dbd057c2801e8805e6da8fa7b781b00e722d117"
S = "${WORKDIR}/cargo-nightly-x86_64-unknown-linux-gnu/"
inherit native
do_install() {
sh ${S}/install.sh --destdir=${STAGING_DIR_NATIVE} --prefix=
}
-2
View File
@@ -70,5 +70,3 @@ do_compile () {
do_install () {
oe_runmake DESTDIR="${D}" install
}
BBCLASSEXTEND = "native"