summaryrefslogtreecommitdiffstats
path: root/meta/classes-global
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2024-12-03 12:53:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-05 17:07:10 +0000
commitf4c4aa37fcdad5bd2a20ad85753a834037d78727 (patch)
tree25976c8815dcbfab6830b036414c16df671482d1 /meta/classes-global
parent8c17606068cf356a5045651a9349bf0a39ed2226 (diff)
downloadpoky-f4c4aa37fcdad5bd2a20ad85753a834037d78727.tar.gz
meta/lib: move buildstats.py and rootfspostcommands.py into oe
These two files are the only ones that are left in meta/lib. They logically belong to meta/lib/oe, so move them there. (From OE-Core rev: c65dd0e3e463d6072b9364ac74e1fef0d998068f) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
-rw-r--r--meta/classes-global/buildstats.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-global/buildstats.bbclass b/meta/classes-global/buildstats.bbclass
index f49a67aa4f..8a50bede5f 100644
--- a/meta/classes-global/buildstats.bbclass
+++ b/meta/classes-global/buildstats.bbclass
@@ -276,7 +276,7 @@ addhandler run_buildstats
276run_buildstats[eventmask] = "bb.event.BuildStarted bb.event.BuildCompleted bb.event.HeartbeatEvent bb.build.TaskStarted bb.build.TaskSucceeded bb.build.TaskFailed" 276run_buildstats[eventmask] = "bb.event.BuildStarted bb.event.BuildCompleted bb.event.HeartbeatEvent bb.build.TaskStarted bb.build.TaskSucceeded bb.build.TaskFailed"
277 277
278python runqueue_stats () { 278python runqueue_stats () {
279 import buildstats 279 import oe.buildstats
280 from bb import event, runqueue 280 from bb import event, runqueue
281 # We should not record any samples before the first task has started, 281 # We should not record any samples before the first task has started,
282 # because that's the first activity shown in the process chart. 282 # because that's the first activity shown in the process chart.
@@ -286,7 +286,7 @@ python runqueue_stats () {
286 # closed when the build is done. 286 # closed when the build is done.
287 system_stats = d.getVar('_buildstats_system_stats', False) 287 system_stats = d.getVar('_buildstats_system_stats', False)
288 if not system_stats and isinstance(e, (bb.runqueue.sceneQueueTaskStarted, bb.runqueue.runQueueTaskStarted)): 288 if not system_stats and isinstance(e, (bb.runqueue.sceneQueueTaskStarted, bb.runqueue.runQueueTaskStarted)):
289 system_stats = buildstats.SystemStats(d) 289 system_stats = oe.buildstats.SystemStats(d)
290 d.setVar('_buildstats_system_stats', system_stats) 290 d.setVar('_buildstats_system_stats', system_stats)
291 if system_stats: 291 if system_stats:
292 # Ensure that we sample at important events. 292 # Ensure that we sample at important events.