Automatically set MBEDTLS_NO_PLATFORM_ENTROPY in TF-M config
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
e4cf9b6f95
commit
51e72456f9
2 changed files with 9 additions and 3 deletions
|
@ -45,6 +45,15 @@
|
||||||
#undef MBEDTLS_PLATFORM_STD_EXIT_SUCCESS
|
#undef MBEDTLS_PLATFORM_STD_EXIT_SUCCESS
|
||||||
#undef MBEDTLS_PLATFORM_STD_EXIT_FAILURE
|
#undef MBEDTLS_PLATFORM_STD_EXIT_FAILURE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* In order to get an example config that works cleanly out-of-the-box
|
||||||
|
* for both baremetal and non-baremetal builds, we detect baremetal builds
|
||||||
|
* and set this variable automatically.
|
||||||
|
*/
|
||||||
|
#if defined(__IAR_SYSTEMS_ICC__) || defined(__ARM_EABI__)
|
||||||
|
#define MBEDTLS_NO_PLATFORM_ENTROPY
|
||||||
|
#endif
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* Local changes to crypto config below this delimiter
|
* Local changes to crypto config below this delimiter
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
|
@ -4125,9 +4125,6 @@ component_build_tfm_armcc() {
|
||||||
# test the TF-M configuration can build cleanly with various warning flags enabled
|
# test the TF-M configuration can build cleanly with various warning flags enabled
|
||||||
cp configs/config-tfm.h "$CONFIG_H"
|
cp configs/config-tfm.h "$CONFIG_H"
|
||||||
|
|
||||||
# MBEDTLS_NO_PLATFORM_ENTROPY is needed as we are building for baremetal
|
|
||||||
./scripts/config.py --force set MBEDTLS_NO_PLATFORM_ENTROPY
|
|
||||||
|
|
||||||
msg "build: TF-M config, armclang armv7-m thumb2"
|
msg "build: TF-M config, armclang armv7-m thumb2"
|
||||||
armc6_build_test "--target=arm-arm-none-eabi -march=armv7-m -mthumb -Os -std=c99 -Werror -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat=2 -Wno-format-nonliteral -Wshadow -Wasm-operand-widths -Wunused -I../tests/include/spe"
|
armc6_build_test "--target=arm-arm-none-eabi -march=armv7-m -mthumb -Os -std=c99 -Werror -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat=2 -Wno-format-nonliteral -Wshadow -Wasm-operand-widths -Wunused -I../tests/include/spe"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue