Commit f0575ed6 authored by Esteban Torre's avatar Esteban Torre

add debug support to uuu in flash script.

parent ef4a109f
...@@ -219,8 +219,11 @@ def write_uuu_script(target, image, uboot): ...@@ -219,8 +219,11 @@ def write_uuu_script(target, image, uboot):
uboot=os.path.basename(uboot))) uboot=os.path.basename(uboot)))
def flash_image(uuu_target): def flash_image(uuu_target, debug):
subprocess.check_call(['uuu', uuu_target]) if debug:
subprocess.check_call(['uuu', '-v', uuu_target])
else:
subprocess.check_call(['uuu', uuu_target])
def main(): def main():
...@@ -283,7 +286,7 @@ def main(): ...@@ -283,7 +286,7 @@ def main():
download_uboot(urljoin(uboot_ref['url'], 'artifact/build/{}'.format(UBOOT)), download_uboot(urljoin(uboot_ref['url'], 'artifact/build/{}'.format(UBOOT)),
uboot_target) uboot_target)
write_uuu_script(uuu_target, image_target, uboot_target) write_uuu_script(uuu_target, image_target, uboot_target)
flash_image(uuu_target) flash_image(uuu_target, args.debug)
except VerifyImageException as e: except VerifyImageException as e:
logging.error(e) logging.error(e)
return 1 return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment