From 084e14a5678a696928ed964aaf47bd9129e0e799 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Fri, 14 Nov 2014 19:07:59 -0500 Subject: [PATCH] Trying to build rust-hello-world --- classes/rust-cross.bbclass | 3 +++ recipes/rust-hello-world/rust-hello-world_git.bb | 2 ++ recipes/rust/rust.inc | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 classes/rust-cross.bbclass diff --git a/classes/rust-cross.bbclass b/classes/rust-cross.bbclass new file mode 100644 index 0000000..8737d0d --- /dev/null +++ b/classes/rust-cross.bbclass @@ -0,0 +1,3 @@ +inherit cross +DEPENDS += "virtual/${TARGET_PREFIX}gcc" +PN = "rust-cross" diff --git a/recipes/rust-hello-world/rust-hello-world_git.bb b/recipes/rust-hello-world/rust-hello-world_git.bb index 62a288e..f11d7a8 100644 --- a/recipes/rust-hello-world/rust-hello-world_git.bb +++ b/recipes/rust-hello-world/rust-hello-world_git.bb @@ -6,6 +6,8 @@ SUMMARY = "Hello World by Cargo for Rust" HOMEPAGE = "https://github.com/jmesmon/rust-hello-world" LICENSE = "MIT | Apache-2.0" +DEPENDS = "rust cargo" + inherit rust S = "${WORKDIR}/git" B = "${S}" diff --git a/recipes/rust/rust.inc b/recipes/rust/rust.inc index dd2e346..c8fc244 100644 --- a/recipes/rust/rust.inc +++ b/recipes/rust/rust.inc @@ -263,7 +263,7 @@ do_install () { # cp $prefix/lib/rustlib/`rust_triple "${TARGET_ARCH}" "${TARGET_VENDOR}" "${TARGET_OS}"`/lib/*.so ${target_libdir}/ # cross-canadian: llvm configure fails for host while attempting to build host-only llvm -BBCLASSEXTEND = "cross native" +BBCLASSEXTEND = "rust-cross native" #python cross_virtclass_provides_native_handler () { # classextend = e.data.getVar('BBCLASSEXTEND', True) or ""