diff options
| author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-12-06 12:37:09 +0100 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-12-06 17:47:23 -0600 |
| commit | c7401fc1d99b88a3a3d16519f07974473908cd46 (patch) | |
| tree | 2bfbe67ad22f8584b110b2e69fc05905a48d947a /lib/sha1.c | |
| parent | 1ac28383502e40113b56b7a124b9b9200167f649 (diff) | |
net: disable MBEDTLS in SPL
Building SPL fails with MBEDTLS enabled.
Currently we don't need it there.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Diffstat (limited to 'lib/sha1.c')
| -rw-r--r-- | lib/sha1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sha1.c b/lib/sha1.c index a9d6497c4ce..be502c6126b 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -312,14 +312,16 @@ void sha1_csum_wd(const unsigned char *input, unsigned int ilen, unsigned char *output, unsigned int chunk_sz) { sha1_context ctx; -#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) +#if !defined(USE_HOSTCC) && \ + (defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)) const unsigned char *end, *curr; int chunk; #endif sha1_starts (&ctx); -#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) +#if !defined(USE_HOSTCC) && \ + (defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)) curr = input; end = input + ilen; while (curr < end) { |
