new cargo, rust tweaks, etc

This commit is contained in:
Cody P Schafer
2014-12-03 14:03:38 -05:00
parent 4132c47ce1
commit 1d2b7f4f11
7 changed files with 165 additions and 65 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ oe_cargo_build () {
cargo_do_compile () {
cd "${B}"
export CC="${RUST_CC}"
export CFLAGS="${RUST_CFLAGS}"
export TARGET_CC="${RUST_CC}"
export TARGET_CFLAGS="${RUST_CFLAGS}"
export HOST_CC="${RUST_BUILD_CC}"
export HOST_CFLAGS="${RUST_BUILD_CFLAGS}"
oe_cargo_build
+7
View File
@@ -73,3 +73,10 @@ oe_runrustc () {
bbnote ${RUSTC} ${RUSTC_ARCHFLAGS} ${RUSTC_FLAGS} "$@"
"${RUSTC}" ${RUSTC_ARCHFLAGS} ${RUSTC_FLAGS} "$@"
}
# XXX: for some reason bitbake sets BUILD_* & TARGET_* but uses the bare
# variables for HOST. Alias things to make it easier for us.
HOST_LDFLAGS ?= "${LDFLAGS}"
HOST_CFLAGS ?= "${CFLAGS}"
HOST_CXXFLAGS ?= "${CXXFLAGS}"
HOST_CPPFLAGS ?= "${CPPFLAGS}"