mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
94b805f1b4
commit
82f9c2bcff
@@ -175,7 +175,7 @@ def list_canned_image_help(scripts_path, fullpath):
|
||||
|
||||
def wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|
||||
native_sysroot, hdddir, staging_data_dir, scripts_path,
|
||||
image_output_dir, properties_file, properties=None):
|
||||
image_output_dir, debug, properties_file, properties=None):
|
||||
"""
|
||||
Create image
|
||||
|
||||
@@ -235,6 +235,9 @@ def wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|
||||
direct_args.insert(0, staging_data_dir)
|
||||
direct_args.insert(0, "direct")
|
||||
|
||||
if debug:
|
||||
msger.set_loglevel('debug')
|
||||
|
||||
cr = creator.Creator()
|
||||
|
||||
cr.main(direct_args)
|
||||
|
||||
Reference in New Issue
Block a user