update readme to reflect current reality

This commit is contained in:
Cody P Schafer
2014-12-16 13:56:38 -05:00
parent ae5bea17ac
commit de23af86c2
2 changed files with 3 additions and 21 deletions
+2 -20
View File
@@ -3,40 +3,22 @@
This openembedded layer provides the rust compiler, tools for building packages This openembedded layer provides the rust compiler, tools for building packages
(cargo), and a few example projects. (cargo), and a few example projects.
By default we assume that there is a local `cargo` (ie: `cargo-native`). To disable this and try to build cargo, add:
CARGO_PROVIDED = ""
To a conf file (probably local.conf)
## What works: ## What works:
- MACHINE="beaglebone" (TARGET_SYS=arm-poky-linux-gnueabi) - MACHINE="beaglebone" (TARGET_SYS=arm-poky-linux-gnueabi)
- Building rust-native, rust-cross, rust-hello-world, cargo-native - Building rust-native, rust-cross, rust-hello-world, cargo-native
- Running/using all of these (including rust-hello-world) - Running/using all of these (including rust-hello-world)
- cargo-native (use a local package for -native)
## What doesn't: ## What doesn't:
- Probably some of the untested things - Probably some of the untested things
- cargo and cargo-native (use a local package for -native)
### What about cargo?:
We provide .bb files for cargo (-target) and cargo-native, and they are working
every now-and-then.
Unfortunately, rust moves a bit too quickly for cargo to keep up, and it ends
up broken fairly often.
Very often we'll want newer 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.
We add "cargo-native" to ASSUME_PROVIDED unless overridden by clearing CARGO_PROVIDED (via conf/layer.conf)
## What's untested: ## What's untested:
- rust (built for target) - rust (built for target)
- Other TARGETs - Other TARGETs
- cargo
## Common issues when packaging things using cargo ## Common issues when packaging things using cargo
+1 -1
View File
@@ -14,7 +14,7 @@ def rust_base_dep(d):
deps += " rust-native" deps += " rust-native"
return deps return deps
BASEDEPENDS_append = " ${@rust_base_dep(d)}" DEPENDS_append = " ${@rust_base_dep(d)}"
def rust_base_triple(d, thing): def rust_base_triple(d, thing):
''' '''