Address parse errors while using getVar to calculate dependency information
This commit is contained in:
@@ -5,7 +5,7 @@ export CARGO_HOME = "${WORKDIR}/cargo_home"
|
|||||||
|
|
||||||
def cargo_base_dep(d):
|
def cargo_base_dep(d):
|
||||||
deps = ""
|
deps = ""
|
||||||
if not d.getVar('INHIBIT_DEFAULT_DEPS') and not d.getVar('INHIBIT_CARGO_DEP'):
|
if not d.getVar('INHIBIT_DEFAULT_DEPS', True) and not d.getVar('INHIBIT_CARGO_DEP', True):
|
||||||
deps += " cargo-native"
|
deps += " cargo-native"
|
||||||
return deps
|
return deps
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ OVERLAP_LIBS = "\
|
|||||||
rand \
|
rand \
|
||||||
"
|
"
|
||||||
def get_overlap_deps(d):
|
def get_overlap_deps(d):
|
||||||
deps = d.getVar("DEPENDS").split()
|
deps = d.getVar("DEPENDS", True).split()
|
||||||
overlap_deps = []
|
overlap_deps = []
|
||||||
for o in d.getVar("OVERLAP_LIBS", True).split():
|
for o in d.getVar("OVERLAP_LIBS", True).split():
|
||||||
l = len([o for dep in deps if (o + '-rs' in dep)])
|
l = len([o for dep in deps if (o + '-rs' in dep)])
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ def rust_base_dep(d):
|
|||||||
# Taken from meta/classes/base.bbclass `base_dep_prepend` and modified to
|
# Taken from meta/classes/base.bbclass `base_dep_prepend` and modified to
|
||||||
# use rust instead of gcc
|
# use rust instead of gcc
|
||||||
deps = ""
|
deps = ""
|
||||||
if not d.getVar('INHIBIT_DEFAULT_RUST_DEPS'):
|
if not d.getVar('INHIBIT_DEFAULT_RUST_DEPS', True):
|
||||||
if (d.getVar('HOST_SYS', True) != d.getVar('BUILD_SYS', True)):
|
if (d.getVar('HOST_SYS', True) != d.getVar('BUILD_SYS', True)):
|
||||||
deps += " virtual/${TARGET_PREFIX}rust"
|
deps += " virtual/${TARGET_PREFIX}rust"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user