summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-15 22:06:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-20 08:31:28 +0000
commit3a4aeda0fa67ae4a2f8c79e83c734b45dde95543 (patch)
treee420d1a34403c3cc956f79d91a633dcd5c56f797 /bitbake/bin
parent16ad67809b9b9cc67dfa863de7605126793f31ae (diff)
downloadpoky-3a4aeda0fa67ae4a2f8c79e83c734b45dde95543.tar.gz
bitbake: cache/cookerdata: Move recipe parsing functions from cache to databuilder
When 'NoCache' was written, databuilder/cookerdata didn't exist. It does now and the recipe parsing functionality contained in NoCache clearly belongs there, it isn't a cache function. Move those functions, renaming to match the style in databuilder but otherwise not changing functionality for now. Fix up the callers to match (which make it clear this is the right move). (Bitbake rev: 783879319c6a4cf3639fcbf763b964e42f602eca) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake-worker3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index 7be39370b3..d54044f361 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -238,7 +238,6 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, taskha
238 os.umask(umask) 238 os.umask(umask)
239 239
240 try: 240 try:
241 bb_cache = bb.cache.NoCache(databuilder)
242 (realfn, virtual, mc) = bb.cache.virtualfn2realfn(fn) 241 (realfn, virtual, mc) = bb.cache.virtualfn2realfn(fn)
243 the_data = databuilder.mcdata[mc] 242 the_data = databuilder.mcdata[mc]
244 the_data.setVar("BB_WORKERCONTEXT", "1") 243 the_data.setVar("BB_WORKERCONTEXT", "1")
@@ -257,7 +256,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, taskha
257 bb.parse.siggen.set_taskhashes(workerdata["newhashes"]) 256 bb.parse.siggen.set_taskhashes(workerdata["newhashes"])
258 ret = 0 257 ret = 0
259 258
260 the_data = bb_cache.loadDataFull(fn, appends) 259 the_data = databuilder.parseRecipe(fn, appends)
261 the_data.setVar('BB_TASKHASH', taskhash) 260 the_data.setVar('BB_TASKHASH', taskhash)
262 the_data.setVar('BB_UNIHASH', unihash) 261 the_data.setVar('BB_UNIHASH', unihash)
263 262