diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index b10272a415..e63f6a3bfe 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -208,6 +208,14 @@ PACKAGE_EXCLUDE[type] = "list" | |||
208 | fakeroot python do_rootfs () { | 208 | fakeroot python do_rootfs () { |
209 | from oe.rootfs import create_rootfs | 209 | from oe.rootfs import create_rootfs |
210 | from oe.manifest import create_manifest | 210 | from oe.manifest import create_manifest |
211 | import logging | ||
212 | |||
213 | logger = d.getVar('BB_TASK_LOGGER', False) | ||
214 | if logger: | ||
215 | logcatcher = bb.utils.LogCatcher() | ||
216 | logger.addHandler(logcatcher) | ||
217 | else: | ||
218 | logcatcher = None | ||
211 | 219 | ||
212 | # NOTE: if you add, remove or significantly refactor the stages of this | 220 | # NOTE: if you add, remove or significantly refactor the stages of this |
213 | # process then you should recalculate the weightings here. This is quite | 221 | # process then you should recalculate the weightings here. This is quite |
@@ -255,7 +263,7 @@ fakeroot python do_rootfs () { | |||
255 | progress_reporter.next_stage() | 263 | progress_reporter.next_stage() |
256 | 264 | ||
257 | # generate rootfs | 265 | # generate rootfs |
258 | create_rootfs(d, progress_reporter=progress_reporter) | 266 | create_rootfs(d, progress_reporter=progress_reporter, logcatcher=logcatcher) |
259 | 267 | ||
260 | progress_reporter.finish() | 268 | progress_reporter.finish() |
261 | } | 269 | } |