summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-25 14:57:53 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-27 10:35:30 (GMT)
commit4cd96710785eb05abeff1f281878655118d4a7dd (patch)
treef2e15210fa7057df398c6e20ecc51f1d747a12ab /bitbake/bin
parent0a434ac10158e2011d41a1189e65e9474b1672be (diff)
downloadpoky-4cd96710785eb05abeff1f281878655118d4a7dd.tar.gz
bitbake: Update users of getVar/setVar to use the data store functions directly
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake-runtask6
-rwxr-xr-xbitbake/bin/bitdoc2
2 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake-runtask b/bitbake/bin/bitbake-runtask
index 394b4c3..6a0ecdc 100755
--- a/bitbake/bin/bitbake-runtask
+++ b/bitbake/bin/bitbake-runtask
@@ -91,7 +91,7 @@ def register_idle_function(self, function, data):
91cooker = bb.cooker.BBCooker(config, register_idle_function, initialenv) 91cooker = bb.cooker.BBCooker(config, register_idle_function, initialenv)
92config_data = cooker.configuration.data 92config_data = cooker.configuration.data
93cooker.status = config_data 93cooker.status = config_data
94cooker.handleCollections(bb.data.getVar("BBFILE_COLLECTIONS", config_data, 1)) 94cooker.handleCollections(config_data.getVar("BBFILE_COLLECTIONS", 1))
95 95
96fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile) 96fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile)
97buildfile = cooker.matchFile(fn) 97buildfile = cooker.matchFile(fn)
@@ -108,9 +108,9 @@ if taskname.endswith("_setscene"):
108if hashdata: 108if hashdata:
109 bb.parse.siggen.set_taskdata(hashdata["hashes"], hashdata["deps"]) 109 bb.parse.siggen.set_taskdata(hashdata["hashes"], hashdata["deps"])
110 for h in hashdata["hashes"]: 110 for h in hashdata["hashes"]:
111 bb.data.setVar("BBHASH_%s" % h, hashdata["hashes"][h], the_data) 111 the_data.setVar("BBHASH_%s" % h, hashdata["hashes"][h])
112 for h in hashdata["deps"]: 112 for h in hashdata["deps"]:
113 bb.data.setVar("BBHASHDEPS_%s" % h, hashdata["deps"][h], the_data) 113 the_data.setVar("BBHASHDEPS_%s" % h, hashdata["deps"][h])
114 114
115ret = 0 115ret = 0
116if dryrun != "True": 116if dryrun != "True":
diff --git a/bitbake/bin/bitdoc b/bitbake/bin/bitdoc
index 08a0173..576d88b 100755
--- a/bitbake/bin/bitdoc
+++ b/bitbake/bin/bitdoc
@@ -462,7 +462,7 @@ def main():
462 state_group = 2 462 state_group = 2
463 463
464 for key in bb.data.keys(documentation): 464 for key in bb.data.keys(documentation):
465 data = bb.data.getVarFlag(key, "doc", documentation) 465 data = documentation.getVarFlag(key, "doc")
466 if not data: 466 if not data:
467 continue 467 continue
468 468