summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/data.py4
-rw-r--r--bitbake/lib/bb/data_smart.py9
2 files changed, 8 insertions, 5 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 0c95ebb31b..0aa8b404cb 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -296,8 +296,8 @@ def build_dependencies(key, keys, shelldeps, d):
296 parser = d.expandWithRefs(d.getVar(key, False), key) 296 parser = d.expandWithRefs(d.getVar(key, False), key)
297 deps |= parser.references 297 deps |= parser.references
298 deps = deps | (keys & parser.execs) 298 deps = deps | (keys & parser.execs)
299 deps |= set((d.getVarFlag(key, "vardeps") or "").split()) 299 deps |= set((d.getVarFlag(key, "vardeps", True) or "").split())
300 deps -= set((d.getVarFlag(key, "vardepsexclude") or "").split()) 300 deps -= set((d.getVarFlag(key, "vardepsexclude", True) or "").split())
301 except: 301 except:
302 bb.note("Error expanding variable %s" % key) 302 bb.note("Error expanding variable %s" % key)
303 raise 303 raise
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index c8cd8f8739..30f9cbc2d4 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -277,12 +277,15 @@ class DataSmart:
277 self._makeShadowCopy(var) 277 self._makeShadowCopy(var)
278 self.dict[var][flag] = flagvalue 278 self.dict[var][flag] = flagvalue
279 279
280 def getVarFlag(self, var, flag): 280 def getVarFlag(self, var, flag, exp = False):
281 local_var = self._findVar(var) 281 local_var = self._findVar(var)
282 value = None
282 if local_var: 283 if local_var:
283 if flag in local_var: 284 if flag in local_var:
284 return copy.copy(local_var[flag]) 285 value = copy.copy(local_var[flag])
285 return None 286 if exp and value:
287 value = self.expand(value, None)
288 return value
286 289
287 def delVarFlag(self, var, flag): 290 def delVarFlag(self, var, flag):
288 local_var = self._findVar(var) 291 local_var = self._findVar(var)