Tools: build_iofirmware.py: flake8-clean

This commit is contained in:
Peter Barker 2021-06-22 12:05:04 +10:00 committed by Peter Barker
parent 7e8f11b749
commit 21cb6c1cf5

View File

@ -2,6 +2,8 @@
"""
script to build iofirmware and copy to Tools/IO_Firmware
AP_FLAKE8_CLEAN
"""
import os
@ -11,6 +13,7 @@ import sys
os.environ['PYTHONUNBUFFERED'] = '1'
def run_program(cmd_list):
print("Running (%s)" % " ".join(cmd_list))
retcode = subprocess.call(cmd_list)
@ -18,6 +21,7 @@ def run_program(cmd_list):
print("Build failed: %s" % ' '.join(cmd_list))
sys.exit(1)
print("Building iofirmware")
run_program(["./waf", "configure", "--board", 'iomcu'])
run_program(["./waf", "clean"])