diff options
| author | hathach <[email protected]> | 2023-01-17 23:37:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-01-17 23:37:00 +0700 |
| commit | c86e628a4c199a39f8317a0d4b5dd96e9692e544 (patch) | |
| tree | 6dc3003066de93a206c78fad46da8b6d3d00f9eb /tools/build_utils.py | |
| parent | 1891802f081e586ad5e992a4e498a069d28f529e (diff) | |
update build script to support iar with CC=iccarm option
Diffstat (limited to 'tools/build_utils.py')
| -rw-r--r-- | tools/build_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/build_utils.py b/tools/build_utils.py index f457c7986..ad1daf8c7 100644 --- a/tools/build_utils.py +++ b/tools/build_utils.py @@ -77,7 +77,7 @@ def skip_example(example, board): return False -def build_example(example, board): +def build_example(example, board, make_option): start_time = time.monotonic() flash_size = "-" sram_size = "-" @@ -91,14 +91,14 @@ def build_example(example, board): ret[2] = 1 print(build_format.format(example, board, status, '-', flash_size, sram_size)) else: - build_result = subprocess.run("make -j -C examples/{} BOARD={} all".format(example, board), shell=True, + build_result = subprocess.run("make -j -C examples/{} BOARD={} {} all".format(example, board, make_option), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) if build_result.returncode == 0: status = SUCCEEDED ret[0] = 1 (flash_size, sram_size) = build_size(example, board) - subprocess.run("make -j -C examples/{} BOARD={} copy-artifact".format(example, board), shell=True, + subprocess.run("make -j -C examples/{} BOARD={} {} copy-artifact".format(example, board, make_option), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) else: status = FAILED |
