diff options
| author | J08nY | 2020-07-14 22:50:21 +0200 |
|---|---|---|
| committer | J08nY | 2020-07-14 22:50:21 +0200 |
| commit | 467b3185e9d2ef3457ad3c1281280c87394ab912 (patch) | |
| tree | c492b8b37fd7194a9fc0a05da50d6929e6f58655 /pyecsca/codegen/builder.py | |
| parent | 279a859f221421057e54eb823d2993b2005c317e (diff) | |
| download | pyecsca-codegen-467b3185e9d2ef3457ad3c1281280c87394ab912.tar.gz pyecsca-codegen-467b3185e9d2ef3457ad3c1281280c87394ab912.tar.zst pyecsca-codegen-467b3185e9d2ef3457ad3c1281280c87394ab912.zip | |
Fixes for recent core changes.
Diffstat (limited to 'pyecsca/codegen/builder.py')
| -rw-r--r-- | pyecsca/codegen/builder.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyecsca/codegen/builder.py b/pyecsca/codegen/builder.py index 8ed7022..2cd572b 100644 --- a/pyecsca/codegen/builder.py +++ b/pyecsca/codegen/builder.py @@ -151,11 +151,15 @@ def build_impl(ctx, platform, hash, rand, mul, sqr, red, inv, keygen, ecdh, ecds if ecdsa and not any(isinstance(formula, AdditionFormula) for formula in formulas): raise click.BadParameter("ECDSA needs an addition formula. None was supplied.") + click.echo("[ ] Rendering...") config = DeviceConfiguration(model, coords, formulas, scalarmult, hash, rand, mul, sqr, red, inv, platform, keygen, ecdh, ecdsa) dir, elf_file, hex_file = render(config) + click.echo("[*] Rendered.") + click.echo("[ ] Building...") subprocess.run(["make"], cwd=dir, capture_output=not verbose) + click.echo("[*] Built.") if strip: subprocess.run(["make", "strip"], cwd=dir, capture_output=not verbose) @@ -163,6 +167,8 @@ def build_impl(ctx, platform, hash, rand, mul, sqr, red, inv, keygen, ecdh, ecds full_hex_path = path.join(dir, hex_file) shutil.copy(full_elf_path, outdir) shutil.copy(full_hex_path, outdir) + click.echo(elf_file) + click.echo(hex_file) if remove: shutil.rmtree(dir) else: |
