diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-02-03 19:17:00 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-04 12:57:36 +0000 |
commit | 82f9c2bcff3e977beefde6048d2ba32d17acbbd0 (patch) | |
tree | 58c6a4fc0f8f98aa3f0b2de60f2e65e38e41298e /scripts/lib | |
parent | 94b805f1b4b9df596ab6275c6cd2dcada50c2ba4 (diff) | |
download | poky-82f9c2bcff3e977beefde6048d2ba32d17acbbd0.tar.gz |
wic: Hook up --debug option
Hook up the existing --debug option to toggle the wic debug loglevel,
which is indispensible when things go wrong, and make it easy to use
from the command-line.
(From OE-Core rev: a5ece6f37656fa56b97fd8faf52917345238d015)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/image/engine.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index 2dd98b968c..6cf6169482 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py | |||
@@ -175,7 +175,7 @@ def list_canned_image_help(scripts_path, fullpath): | |||
175 | 175 | ||
176 | def wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir, | 176 | def wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir, |
177 | native_sysroot, hdddir, staging_data_dir, scripts_path, | 177 | native_sysroot, hdddir, staging_data_dir, scripts_path, |
178 | image_output_dir, properties_file, properties=None): | 178 | image_output_dir, debug, properties_file, properties=None): |
179 | """ | 179 | """ |
180 | Create image | 180 | Create image |
181 | 181 | ||
@@ -235,6 +235,9 @@ def wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir, | |||
235 | direct_args.insert(0, staging_data_dir) | 235 | direct_args.insert(0, staging_data_dir) |
236 | direct_args.insert(0, "direct") | 236 | direct_args.insert(0, "direct") |
237 | 237 | ||
238 | if debug: | ||
239 | msger.set_loglevel('debug') | ||
240 | |||
238 | cr = creator.Creator() | 241 | cr = creator.Creator() |
239 | 242 | ||
240 | cr.main(direct_args) | 243 | cr.main(direct_args) |