From 75deda4847cdb893d359e2e5212dac8cd80103bd Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Tue, 2 Dec 2014 16:33:00 -0500 Subject: [PATCH] Tweak inhibit, move comment, update rustc ln --- classes/cargo.bbclass | 14 +++++--------- recipes/rust/rust.inc | 4 +++- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/classes/cargo.bbclass b/classes/cargo.bbclass index ccd12fb..2195c9f 100644 --- a/classes/cargo.bbclass +++ b/classes/cargo.bbclass @@ -6,15 +6,11 @@ CARGO = "cargo" # versions of rust than cargo is able to build with. Thankfully, we don't need # any custom cargo configuration, and can use a vanilla cargo binary. # -# If you want to have cargo built for packages that depend on it, set -# INHIBIT_CARGO_DEP = "0" in your local.conf, distro.conf, or other global -# config file. -INHIBIT_CARGO_DEP ??= "1" - +# We recommend setting ASSUME_PROVIDED += "cargo-native" in your local.conf def cargo_base_dep(d): deps = "" - if not d.getVar('INHIBIT_DEFAULT_DEPS') and d.getVar('INHIBIT_CARGO_DEP') != "0": - deps += " cargo-native" + if not d.getVar('INHIBIT_DEFAULT_DEPS') and not d.getVar('INHIBIT_CARGO_DEP'): + deps += " cargo-native" return deps BASEDEPENDS_append = " ${@cargo_base_dep(d)}" @@ -49,6 +45,8 @@ oe_cargo_config () { } rust_cargo_patch () { + # FIXME: if there is already an entry for this target, in an existing + # cargo/config, this won't work. cd "${S}" cat >>Cargo.toml <