summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-24 00:06:59 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:57:23 +0100
commit40712171b2072171ae878de4889faa7be842451d (patch)
tree76b3696a098584b10e057b50c468e4046ccc3241 /meta/classes
parent8daa1b419f8d114bc621c05de4ee0f29cbd0d786 (diff)
downloadpoky-40712171b2072171ae878de4889faa7be842451d.tar.gz
classes/image: implement progress support for do_rootfs
Use the new task progress functionality to report progress during do_rootfs. This is a little coarse and ideally we would have some progress within the installation section, but it's better than nothing. (From OE-Core rev: 370f08d434480c1790950e40db8f7687da78cb14) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image.bbclass19
1 files changed, 17 insertions, 2 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 61295f4bd7..30dfd64828 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -198,6 +198,17 @@ fakeroot python do_rootfs () {
198 from oe.rootfs import create_rootfs 198 from oe.rootfs import create_rootfs
199 from oe.manifest import create_manifest 199 from oe.manifest import create_manifest
200 200
201 # NOTE: if you add, remove or significantly refactor the stages of this
202 # process then you should recalculate the weightings here. This is quite
203 # easy to do - just change the MultiStageProgressReporter line temporarily
204 # to pass debug=True as the last parameter and you'll get a printout of
205 # the weightings as well as a map to the lines where next_stage() was
206 # called. Of course this isn't critical, but it helps to keep the progress
207 # reporting accurate.
208 stage_weights = [1, 203, 354, 186, 65, 4228, 1, 353, 49, 330, 382, 23, 1]
209 progress_reporter = bb.progress.MultiStageProgressReporter(d, stage_weights)
210 progress_reporter.next_stage()
211
201 # Handle package exclusions 212 # Handle package exclusions
202 excl_pkgs = d.getVar("PACKAGE_EXCLUDE", True).split() 213 excl_pkgs = d.getVar("PACKAGE_EXCLUDE", True).split()
203 inst_pkgs = d.getVar("PACKAGE_INSTALL", True).split() 214 inst_pkgs = d.getVar("PACKAGE_INSTALL", True).split()
@@ -230,8 +241,12 @@ fakeroot python do_rootfs () {
230 # Generate the initial manifest 241 # Generate the initial manifest
231 create_manifest(d) 242 create_manifest(d)
232 243
233 # Generate rootfs 244 progress_reporter.next_stage()
234 create_rootfs(d) 245
246 # generate rootfs
247 create_rootfs(d, progress_reporter=progress_reporter)
248
249 progress_reporter.finish()
235} 250}
236do_rootfs[dirs] = "${TOPDIR}" 251do_rootfs[dirs] = "${TOPDIR}"
237do_rootfs[cleandirs] += "${S}" 252do_rootfs[cleandirs] += "${S}"