Added NFC compile flag

This commit is contained in:
Mirna
2020-10-23 19:25:36 +02:00
parent 18c6406031
commit b95b0682f9
2 changed files with 8 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ ram_storage = []
verbose = ["debug_ctap", "libtock_drivers/verbose_usb"] verbose = ["debug_ctap", "libtock_drivers/verbose_usb"]
with_ctap1 = ["crypto/with_ctap1"] with_ctap1 = ["crypto/with_ctap1"]
with_ctap2_1 = [] with_ctap2_1 = []
with_nfc = []
[dev-dependencies] [dev-dependencies]
elf2tab = "0.6.0" elf2tab = "0.6.0"

View File

@@ -846,6 +846,13 @@ if __name__ == "__main__":
help=("Compiles the OpenSK application with backward compatible " help=("Compiles the OpenSK application with backward compatible "
"support for CTAP2.1 protocol."), "support for CTAP2.1 protocol."),
) )
main_parser.add_argument(
"--nfc",
action="append_const",
const="with_nfc",
dest="features",
help=("Compiles the OpenSK application with support for nfc."),
)
main_parser.add_argument( main_parser.add_argument(
"--regen-keys", "--regen-keys",
action="store_true", action="store_true",