diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image.bbclass | 19 |
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 | } |
236 | do_rootfs[dirs] = "${TOPDIR}" | 251 | do_rootfs[dirs] = "${TOPDIR}" |
237 | do_rootfs[cleandirs] += "${S}" | 252 | do_rootfs[cleandirs] += "${S}" |