diff options
Diffstat (limited to 'board/cr50/dcrypto/trng.c')
-rw-r--r-- | board/cr50/dcrypto/trng.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/cr50/dcrypto/trng.c b/board/cr50/dcrypto/trng.c index 03a9f756c2..604e6585c4 100644 --- a/board/cr50/dcrypto/trng.c +++ b/board/cr50/dcrypto/trng.c @@ -175,7 +175,14 @@ void rand_bytes(void *buffer, size_t len) } } +/* Local switch to test command. Enable when work on it. */ +#ifndef CRYPTO_TEST_CMD_RAND +#define CRYPTO_TEST_CMD_RAND 0 +#endif + #if !defined(SECTION_IS_RO) && defined(CRYPTO_TEST_SETUP) + +#if CRYPTO_TEST_CMD_RAND #include "console.h" #include "watchdog.h" @@ -266,4 +273,6 @@ static int command_rand(int argc, char **argv) } DECLARE_SAFE_CONSOLE_COMMAND(rand, command_rand, NULL, NULL); +#endif /* CRYPTO_TEST_CMD_RAND */ + #endif /* CRYPTO_TEST_SETUP */ |