From 17c03a2bc34598a91cd897012270ad0cc875f23a Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 5 Oct 2023 13:01:06 +0200 Subject: Add option to pass C defines to compiler. --- pyecsca/codegen/common.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pyecsca/codegen/common.py') diff --git a/pyecsca/codegen/common.py b/pyecsca/codegen/common.py index b970039..6bffbdb 100644 --- a/pyecsca/codegen/common.py +++ b/pyecsca/codegen/common.py @@ -1,5 +1,5 @@ from dataclasses import dataclass -from typing import Type, Optional +from typing import Type, Optional, MutableMapping, Any import click from public import public @@ -37,9 +37,15 @@ class DeviceConfiguration(Configuration): """A device configuration that includes the platform and choices specific to the pyecsca-codegened implementations.""" platform: Platform + """The platform to build for.""" keygen: bool + """Whether the key-generation command is present.""" ecdh: bool + """Whether the ECDH command is present.""" ecdsa: bool + """Whether the ECDSA command is present.""" + defines: Optional[MutableMapping[str, Any]] = None + """Optional defines passed to the compilation.""" MULTIPLIERS = [ -- cgit v1.3.1