Skip to content

Commit

Permalink
mbedtls: Rename Mbed timing implementation
Browse files Browse the repository at this point in the history
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: b8781e5 ("mbedtls: Add an alt implementation of timing")

Fixes #14759
  • Loading branch information
Patater committed Jun 10, 2021
1 parent aeaac0e commit 87d1992
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectivity/mbedtls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87d1992

Please sign in to comment.