path: root/BuildMbedCrypto.cmake
AgeCommit message (Collapse)Author
2020-06-16Build: Fix cmake implicitly converting warningsKumar Gala
Fix warnings of the form: implicitly converting 'bool' to 'STRING' type. implicitly converting 'internal' to 'STRING' type. implicitly converting 'string' to 'STRING' type. by changing the type to STRING. Change-Id: I888126809cd0b9ae4841585979f8ebed6e357160 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-04Build: Enable ninja-based buildsKevin Townsend
This commit enables to use of `-GNinja` for builds, which provides significantly faster TF-M builds, and enables building TF-M as a cmake external project with Zephyr's build system. ``` $ cmake -GNinja \ -DPROJ_CONFIG=`readlink -f ../configs/ConfigDefault.cmake` \ -DTARGET_PLATFORM=LPC55S69 -DBL2=False -DCOMPILER=GNUARM .. $ ninja ``` Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org> Change-Id: I5deaaf9ffb3ec3329174881d70fe7033b531ec49
2020-01-16Build: Remove mbed-crypto building workaroundKen Liu
There is a workaround for building mbed-crypto caused by old version cmake bug. Remove this workaround since the bug has been resolved. Change-Id: If72cdecfebd912582368eefda547423029df9cba Signed-off-by: Ken Liu <ken.liu@arm.com>
2020-01-13Build: Fix arch type of Cortex-M0plus in GNUARMDavid Hu
The arch type of Cortex-M0plus should be "armv6s-m" instead of "armv6-m" in GNU Arm embedded toolchain. Otherwise, compiling will fail because "armv6-m" type doesn't support SVC. Fix the arch type values in GNUARM cmake files. Add an arch type string "ARMv6S-M" for Cortex-M0plus in GNUARM. Because Armclang doesn't have a dedicated flag as "armv6s-m", two strings "ARMv6-M" and "ARMv6S-M" exist and stand for Cortex-M0plus arch type in Armclang and GNUARM respectively. Change-Id: I59e9b9837012fb8dbbae59beacfd6cb293548747 Signed-off-by: David Hu <david.hu@arm.com>
2019-11-29Boot: Switch boot to use mbed-cryptoRaef Coles
Replace the dependency on mbedtls with the version of mbedtls packaged with mbed-crypto. Change-Id: I17a68f904c9cd68085ecb4432a7a10d6b64494a1 Signed-off-by: Raef Coles <raef.coles@arm.com>
2019-05-24Crypto: Migrate the service to use Mbed crypto libraryJamie Fox
This patch migrates the TF-M Crypto service to use the Mbed crypto library version 1.0.0. The regression tests for Crypto are temporarily disabled to avoid build failures due to changes in the PSA Crypto API. Some regression tests for Attestation are disabled as well as they rely on service-to-service calls to Crypto and need to use the newer API. Change-Id: Ic49fd162e89881d7a9e94fa4cddd76fe9a53fa03 Signed-off-by: Jamie Fox <jamie.fox@arm.com> Co-authored-By: Antonio de Angelis <antonio.deangelis@arm.com>