From 459bc5d88ae558b47cca4bc78a890cf1c3dbbc0d Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Mon, 17 Nov 2014 03:39:57 -0500 Subject: [PATCH] tweaks --- classes/rust.bbclass | 11 +++++------ .../rust-hello-world/rust-hello-world_git.bb | 2 +- recipes/cargo/cargo.inc | 14 ++++---------- recipes/rust/rust.inc | 3 +-- 4 files changed, 11 insertions(+), 19 deletions(-) diff --git a/classes/rust.bbclass b/classes/rust.bbclass index 0eecae4..dce8074 100644 --- a/classes/rust.bbclass +++ b/classes/rust.bbclass @@ -59,9 +59,7 @@ RUST_TARGET_SYS = "${@rust_base_triple(d, 'TARGET')}" # FIXME: the 'rustlib' element of this is to workaround rustc forgetting the libdir it was built with. -RUST_PATH_NATIVE="${STAGING_LIBDIR_NATIVE}:\ -${STAGING_BASE_LIBDIR_NATIVE}:\ -${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/rustlib/${TARGET_SYS}/lib" +RUST_PATH_NATIVE="${STAGING_LIBDIR_NATIVE}:${STAGING_BASE_LIBDIR_NATIVE}:${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/rustlib/${TARGET_SYS}/lib" # FIXME: set based on whether we are native vs cross vs buildsdk, etc export RUST_PATH ??= "${RUST_PATH_NATIVE}" @@ -80,7 +78,7 @@ oe_runrustc () { "${RUSTC}" ${RUSTC_ARCHFLAGS} ${RUSTC_FLAGS} "$@" } -oe_cargo_config () { +cargo_config () { mkdir -p .cargo # FIXME: we currently blow away the entire config because duplicate # sections are treated as a parse error by cargo (causing the entire @@ -96,7 +94,8 @@ oe_cargo_config () { echo "]" >>.cargo/config } -oe_cargo_patch () { +rust_cargo_patch () { + cd "${S}" cat >>Cargo.toml <>Cargo.toml <