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
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)
action = "store", help = "path to the native sysroot containing the tools to use to build the image")
parser.add_option("-p", "--skip-build-check", dest = "build_check",
action = "store_false", default = True, help = "skip the build check")
+ parser.add_option("-D", "--debug", dest = "debug", action = "store_true",
+ default = False, help = "output debug information")
(options, args) = parser.parse_args(args)
wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir,
native_sysroot, hdddir, staging_data_dir, scripts_path,
- image_output_dir, options.properties_file)
+ image_output_dir, options.debug, options.properties_file)
def wic_list_subcommand(args, usage_str):
usage = wic_usage)
parser.disable_interspersed_args()
- parser.add_option("-D", "--debug", dest = "debug", action = "store_true",
- default = False, help = "output debug information")
(options, args) = parser.parse_args()
- loglevel = logging.INFO
- if options.debug:
- loglevel = logging.DEBUG
- start_logging(loglevel)
-
if len(args):
if args[0] == "help":
if len(args) == 1: