summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 636983edcc..9e37f5e32d 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -229,6 +229,15 @@ def emit_env(o=sys.__stdout__, d = init(), all=False):
229 for key in keys: 229 for key in keys:
230 emit_var(key, o, d, all and not isfunc) and o.write('\n') 230 emit_var(key, o, d, all and not isfunc) and o.write('\n')
231 231
232def export_vars(d):
233 keys = (key for key in d.keys() if d.getVarFlag(key, "export"))
234 ret = {}
235 for k in keys:
236 v = d.getVar(k, True)
237 if v:
238 ret[k] = v
239 return ret
240
232def update_data(d): 241def update_data(d):
233 """Performs final steps upon the datastore, including application of overrides""" 242 """Performs final steps upon the datastore, including application of overrides"""
234 d.finalize() 243 d.finalize()