From 467b3185e9d2ef3457ad3c1281280c87394ab912 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 14 Jul 2020 22:50:21 +0200 Subject: Fixes for recent core changes. --- pyecsca/codegen/builder.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyecsca/codegen/builder.py') 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: -- cgit v1.3.1