summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2010-12-10 15:30:30 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-14 22:36:19 +0000
commit80e6408b9f0a07e192696a2c2d371b258b4b187d (patch)
treee4a3c12b4855644fe11991952f98a75871727e9a /bitbake/lib/bb/data.py
parenta52e4063f4da3ac377959bbd1bea425c9a466df9 (diff)
downloadpoky-80e6408b9f0a07e192696a2c2d371b258b4b187d.tar.gz
bitbake: add optional expansion to getVarFlag()
Add a parameter to getVarFlag() to auto-expand the value of the flag. This makes getVarFlag() more consistent with getVar(), and allows expansion of vardeps and vardepsexclude (which has been done in this commit). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py4
1 files changed, 2 insertions, 2 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