diff options
| author | J08nY | 2023-10-05 13:01:06 +0200 |
|---|---|---|
| committer | J08nY | 2023-10-05 13:01:06 +0200 |
| commit | 17c03a2bc34598a91cd897012270ad0cc875f23a (patch) | |
| tree | 5493b148c411b60938208103f3d696dcd0b78b87 /pyecsca/codegen/common.py | |
| parent | 8c170b7bbbf2503472f0cd5bbf1900454209eda6 (diff) | |
| download | pyecsca-codegen-17c03a2bc34598a91cd897012270ad0cc875f23a.tar.gz pyecsca-codegen-17c03a2bc34598a91cd897012270ad0cc875f23a.tar.zst pyecsca-codegen-17c03a2bc34598a91cd897012270ad0cc875f23a.zip | |
Add option to pass C defines to compiler.
Diffstat (limited to 'pyecsca/codegen/common.py')
| -rw-r--r-- | pyecsca/codegen/common.py | 8 |
1 files changed, 7 insertions, 1 deletions
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 = [ |
