From 8499521d5496db893269fcd2b3d6bd57ad107c34 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Fri, 17 Apr 2015 08:49:16 -0400 Subject: [PATCH 1/2] rust.inc: include missing dependency on gcc-cross -cross recipes do not automatically depend on gcc-cross, but rust definitely needs it. --- recipes/rust/rust.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/rust/rust.inc b/recipes/rust/rust.inc index 3a93392..85122f8 100644 --- a/recipes/rust/rust.inc +++ b/recipes/rust/rust.inc @@ -381,6 +381,7 @@ USE_LOCAL_RUST_class-native ?= "${@base_conditional('USE_LOCAL_NATIVE_RUST', '0' # Otherwise we'll depend on what we provide INHIBIT_DEFAULT_RUST_DEPS_class-cross = "1" DEPENDS_class-cross += "rust-native" +DEPENDS_class-cross += "gcc-cross" PROVIDES_class-cross = "virtual/${TARGET_PREFIX}rust" PN_class-cross = "rust-cross-${TARGET_ARCH}" From cb205800a65d4ef1aec51c1872ee209301e118f8 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Fri, 17 Apr 2015 16:23:48 -0400 Subject: [PATCH 2/2] rust.inc: fix ARM soft float Use RUST_TARGET_SYS instead of hard-coding for hard-float --- recipes/rust/rust.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/rust/rust.inc b/recipes/rust/rust.inc index 85122f8..75ae56e 100644 --- a/recipes/rust/rust.inc +++ b/recipes/rust/rust.inc @@ -27,7 +27,7 @@ export RUST_TARGET_PATH="${WORKDIR}/targets/" ## arm-unknown-linux-gnueabihf DATA_LAYOUT[arm] = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32" -LLVM_TARGET[arm] = "arm-unknown-linux-gnueabihf" +LLVM_TARGET[arm] = "${RUST_TARGET_SYS}" TARGET_ENDIAN[arm] = "little" TARGET_POINTER_WIDTH[arm] = "32" FEATURES[arm] = "+v6,+vfp2"