mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Tools: build_iofirmware.py: flake8-clean
This commit is contained in:
parent
7e8f11b749
commit
21cb6c1cf5
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user