Disable gcc-rs hack, fixup rust-native deps

This commit is contained in:
Cody P Schafer
2014-11-26 13:27:32 -05:00
parent 0035ec3172
commit d45bd8f7a3
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -1,5 +1,10 @@
inherit native
PN = "rust-native"
# Otherwise we'll depend on what we provide
INHIBIT_DEFAULT_DEPS = "1"
# We don't need to depend on gcc-native because yocto assumes it exists
PROVIDES = "virtual/${TARGET_PREFIX}rust"
USE_LOCAL_NATIVE_RUST ??= "0"
USE_LOCAL_RUST = "${@base_conditional('USE_LOCAL_NATIVE_RUST', '0', '0', '1', d)}"
+2
View File
@@ -10,6 +10,8 @@ def rust_base_dep(d):
if not d.getVar('INHIBIT_DEFAULT_DEPS'):
if (d.getVar('HOST_SYS', True) != d.getVar('BUILD_SYS', True)):
deps += " virtual/${TARGET_PREFIX}rust"
else:
deps += " rust-native"
return deps
BASEDEPENDS_append = " ${@rust_base_dep(d)}"