summaryrefslogtreecommitdiff
path: root/firmware_builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'firmware_builder.py')
-rwxr-xr-xfirmware_builder.py31
1 files changed, 10 insertions, 21 deletions
diff --git a/firmware_builder.py b/firmware_builder.py
index 65fdbbb0c6..69c2724cec 100755
--- a/firmware_builder.py
+++ b/firmware_builder.py
@@ -25,15 +25,6 @@ from chromite.api.gen.chromite.api import firmware_pb2
DEFAULT_BUNDLE_DIRECTORY = '/tmp/artifact_bundles'
DEFAULT_BUNDLE_METADATA_FILE = '/tmp/artifact_bundle_metadata'
-# The the list of boards whose on-device unit tests we will verify compilation.
-# TODO(b/172501728) On-device unit tests should build for all boards, but
-# they've bit rotted, so we only build the ones that compile.
-BOARDS_UNIT_TEST = [
- 'bloonchipper',
- 'dartmonkey',
-]
-
-
def build(opts):
"""Builds all EC firmware targets
@@ -59,7 +50,16 @@ def build(opts):
subprocess.run(cmd,
cwd=os.path.dirname(__file__),
check=True)
-
+ cmd = ['make', 'BOARD=cr50', 'CR50_DEV=1', '-j{}'.format(opts.cpus)]
+ print(f'# Running {" ".join(cmd)}.')
+ subprocess.run(cmd,
+ cwd=os.path.dirname(__file__),
+ check=True)
+ cmd = ['make', 'BOARD=cr50', 'CRYPTO_TEST=1', '-j{}'.format(opts.cpus)]
+ print(f'# Running {" ".join(cmd)}.')
+ subprocess.run(cmd,
+ cwd=os.path.dirname(__file__),
+ check=True)
def bundle(opts):
if opts.code_coverage:
@@ -150,17 +150,6 @@ def test(opts):
cwd=os.path.dirname(__file__),
check=True)
- if not opts.code_coverage:
- # Verify compilation of the on-device unit test binaries.
- # TODO(b/172501728) These should build for all boards, but they've bit
- # rotted, so we only build the ones that compile.
- cmd = ['make', '-j{}'.format(opts.cpus)]
- cmd.extend(['tests-' + b for b in BOARDS_UNIT_TEST])
- print(f'# Running {" ".join(cmd)}.')
- subprocess.run(cmd,
- cwd=os.path.dirname(__file__),
- check=True)
-
def main(args):
"""Builds, bundles, or tests all of the EC targets.