diff options
Diffstat (limited to 'board/cr50/build.mk')
-rw-r--r-- | board/cr50/build.mk | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/board/cr50/build.mk b/board/cr50/build.mk index b75d867421..f9401b9527 100644 --- a/board/cr50/build.mk +++ b/board/cr50/build.mk @@ -18,10 +18,32 @@ ifeq ($(BOARD_MK_INCLUDED_ONCE),) # List of variables which can be defined in the environment or set in the make # command line. -ENV_VARS := CR50_DEV CRYPTO_TEST H1_RED_BOARD +ENV_VARS := CR50_DEV CRYPTO_TEST H1_RED_BOARD U2F_TEST RND_TEST DRBG_TEST\ + ECDSA_TEST DCRYPTO_TEST ifneq ($(CRYPTO_TEST),) CPPFLAGS += -DCRYPTO_TEST_SETUP + +ifneq ($(U2F_TEST),) +CPPFLAGS += -DCRYPTO_TEST_CMD_U2F_TEST=1 +endif + +ifneq ($(RND_TEST),) +CPPFLAGS += -DCRYPTO_TEST_CMD_RAND=1 +endif + +ifneq ($(DRBG_TEST),) +CPPFLAGS += -DCRYPTO_TEST_CMD_HMAC_DRBG=1 +endif + +ifneq ($(ECDSA_TEST),) +CPPFLAGS += -DCRYPTO_TEST_CMD_DCRYPTO_ECDSA=1 +endif + +ifneq ($(DCRYPTO_TEST),) +CPPFLAGS += -DCRYPTO_TEST_CMD_DCRYPTO_TEST=1 +endif + endif |