File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -102,3 +102,20 @@ target_compile_definitions(mbed-mbedtls
102102 INTERFACE
103103 MBED_CONF_MBEDTLS_PRESENT=1
104104)
105+
106+ # Workaround for https://github.com/ARMmbed/mbedtls/issues/1077
107+ # which affects cores without __thumb2__ set by the compiler
108+ # due to the lack of full Thumb-2 support
109+ set (partial-thumb2-cores
110+ Cortex-M0
111+ Cortex-M0+
112+ Cortex-M1
113+ Cortex-M23
114+ Cortex-M23-NS
115+ )
116+ if (MBED_CPU_CORE IN_LIST partial-thumb2-cores)
117+ target_compile_definitions (mbed-mbedtls
118+ INTERFACE
119+ MULADDC_CANNOT_USE_R7
120+ )
121+ endif ()
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ function(mbed_set_profile_options target mbed_toolchain)
7878 target_compile_definitions (${target}
7979 INTERFACE
8080 __ASSERT_MSG
81- MULADDC_CANNOT_USE_R7
8281 )
8382 endif ()
8483
You can’t perform that action at this time.
0 commit comments