mbedtls: Rename Mbed timing implementation

We get a linker warning with the recently added timing module
implementation for Mbed. This is because there is Mbed TLS also ships a
file called timing.c, which we are including in Mbed OS also. With CLI
1, we get an error about unique object files because of the similarly
named implementation files.

    Object file timing.o is not unique! It could be made from: mbed-os/connectivity/mbedtls/source/timing.c mbed-os/connectivity/mbedtls/platform/src/timing.cpp

Rename the Mbed timing module implementation to timing_mbed.cpp to avoid
this naming conflict.

Fixes: b8781e527b ("mbedtls: Add an alt implementation of timing")

Fixes #14759
pull/14760/head
Jaeden Amero 2021-06-10 15:48:42 +01:00
parent aeaac0e70c
commit 87d1992f4f
2 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ target_sources(mbed-mbedtls
platform/src/mbed_trng.cpp
platform/src/platform_alt.cpp
platform/src/shared_rng.cpp
platform/src/timing.cpp
platform/src/timing_mbed.cpp
source/aes.c
source/aesni.c