summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-20 12:33:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-20 12:36:26 +0100
commit6f8dd36ca0ccce2a526d45224ff13b4e85bdcc69 (patch)
tree99f62c9ee8200c9bb0f871c65dceb168cb374d37 /bitbake/lib/bb/runqueue.py
parent3ba736c6cdf6379c8ce3355edcbc22713b047b7f (diff)
downloadpoky-6f8dd36ca0ccce2a526d45224ff13b4e85bdcc69.tar.gz
bitbake: runqueue: Fix handling of virtual files in layername calculation
I'd tested target configurations but in real world use, it became clear the layername functionality in worker context was failing for virtual class extensions. Fix this. (Bitbake rev: 888778ebfa85677ff36065dfcd0f8a7684edfc80) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 01701348ed..0bb3bc20ab 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -2158,6 +2158,7 @@ class RunQueueExecute:
2158 bb.event.fire(startevent, self.cfgData) 2158 bb.event.fire(startevent, self.cfgData)
2159 2159
2160 taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] 2160 taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn]
2161 realfn = bb.cache.virtualfn2realfn(taskfn)[0]
2161 runtask = { 2162 runtask = {
2162 'fn' : taskfn, 2163 'fn' : taskfn,
2163 'task' : task, 2164 'task' : task,
@@ -2166,7 +2167,7 @@ class RunQueueExecute:
2166 'unihash' : self.rqdata.get_task_unihash(task), 2167 'unihash' : self.rqdata.get_task_unihash(task),
2167 'quieterrors' : True, 2168 'quieterrors' : True,
2168 'appends' : self.cooker.collections[mc].get_file_appends(taskfn), 2169 'appends' : self.cooker.collections[mc].get_file_appends(taskfn),
2169 'layername' : self.cooker.collections[mc].calc_bbfile_priority(taskfn)[2], 2170 'layername' : self.cooker.collections[mc].calc_bbfile_priority(realfn)[2],
2170 'taskdepdata' : self.sq_build_taskdepdata(task), 2171 'taskdepdata' : self.sq_build_taskdepdata(task),
2171 'dry_run' : False, 2172 'dry_run' : False,
2172 'taskdep': taskdep, 2173 'taskdep': taskdep,
@@ -2252,6 +2253,7 @@ class RunQueueExecute:
2252 bb.event.fire(startevent, self.cfgData) 2253 bb.event.fire(startevent, self.cfgData)
2253 2254
2254 taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] 2255 taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn]
2256 realfn = bb.cache.virtualfn2realfn(taskfn)[0]
2255 runtask = { 2257 runtask = {
2256 'fn' : taskfn, 2258 'fn' : taskfn,
2257 'task' : task, 2259 'task' : task,
@@ -2260,7 +2262,7 @@ class RunQueueExecute:
2260 'unihash' : self.rqdata.get_task_unihash(task), 2262 'unihash' : self.rqdata.get_task_unihash(task),
2261 'quieterrors' : False, 2263 'quieterrors' : False,
2262 'appends' : self.cooker.collections[mc].get_file_appends(taskfn), 2264 'appends' : self.cooker.collections[mc].get_file_appends(taskfn),
2263 'layername' : self.cooker.collections[mc].calc_bbfile_priority(taskfn)[2], 2265 'layername' : self.cooker.collections[mc].calc_bbfile_priority(realfn)[2],
2264 'taskdepdata' : self.build_taskdepdata(task), 2266 'taskdepdata' : self.build_taskdepdata(task),
2265 'dry_run' : self.rqdata.setscene_enforce, 2267 'dry_run' : self.rqdata.setscene_enforce,
2266 'taskdep': taskdep, 2268 'taskdep': taskdep,