rust: use a different INHIBIT_DEFAULT*_DEPS to avoid hardcoding real DEFAULT_DEPS

This commit is contained in:
Cody P Schafer
2014-12-15 15:58:40 -05:00
parent 9cfaa4936f
commit 23b9ac934e
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -1,10 +1,8 @@
inherit cross
# Otherwise we'll depend on what we provide
INHIBIT_DEFAULT_DEPS = "1"
# XXX: will this glibc be correctly parsed? (glibc doesn't provice a virtual/${TARGET_PREFIX}libc)
DEPENDS += "virtual/${TARGET_PREFIX}gcc rust-native glibc"
INHIBIT_DEFAULT_RUST_DEPS = "1"
DEPENDS += "rust-native"
PROVIDES = "virtual/${TARGET_PREFIX}rust"
PN = "rust-cross-${TARGET_ARCH}"
+1 -1
View File
@@ -7,7 +7,7 @@ def rust_base_dep(d):
# Taken from meta/classes/base.bbclass `base_dep_prepend` and modified to
# use rust instead of gcc
deps = ""
if not d.getVar('INHIBIT_DEFAULT_DEPS'):
if not d.getVar('INHIBIT_DEFAULT_RUST_DEPS'):
if (d.getVar('HOST_SYS', True) != d.getVar('BUILD_SYS', True)):
deps += " virtual/${TARGET_PREFIX}rust"
else: