mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: toaster: update saving sstate task data
This is an update on the sstate file saving data. It saves both found and missed sstate tasks. (Bitbake rev: 60c577b1080219b795d3c8ab4e149e929cf9ce14) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cd8541bbfc
commit
e1bfb5dd61
@@ -750,7 +750,7 @@ class BuildInfoHelper(object):
|
|||||||
|
|
||||||
|
|
||||||
def store_missed_state_tasks(self, event):
|
def store_missed_state_tasks(self, event):
|
||||||
for (fn, taskname, taskhash, sstatefile) in event.data:
|
for (fn, taskname, taskhash, sstatefile) in event.data['missed']:
|
||||||
|
|
||||||
identifier = fn + taskname + "_setscene"
|
identifier = fn + taskname + "_setscene"
|
||||||
recipe_information = self._get_recipe_information_from_taskfile(fn)
|
recipe_information = self._get_recipe_information_from_taskfile(fn)
|
||||||
@@ -769,6 +769,21 @@ class BuildInfoHelper(object):
|
|||||||
|
|
||||||
self.orm_wrapper.get_update_task_object(task_information)
|
self.orm_wrapper.get_update_task_object(task_information)
|
||||||
|
|
||||||
|
for (fn, taskname, taskhash, sstatefile) in event.data['found']:
|
||||||
|
|
||||||
|
identifier = fn + taskname + "_setscene"
|
||||||
|
recipe_information = self._get_recipe_information_from_taskfile(fn)
|
||||||
|
recipe = self.orm_wrapper.get_update_recipe_object(recipe_information)
|
||||||
|
class MockEvent: pass
|
||||||
|
event = MockEvent()
|
||||||
|
event.taskname = taskname
|
||||||
|
event.taskhash = taskhash
|
||||||
|
task_information = self._get_task_information(event,recipe)
|
||||||
|
|
||||||
|
task_information['path_to_sstate_obj'] = sstatefile
|
||||||
|
|
||||||
|
self.orm_wrapper.get_update_task_object(task_information)
|
||||||
|
|
||||||
|
|
||||||
def store_target_package_data(self, event):
|
def store_target_package_data(self, event):
|
||||||
assert 'data' in vars(event)
|
assert 'data' in vars(event)
|
||||||
|
|||||||
Reference in New Issue
Block a user