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
102
102
INTERFACE
103
103
MBED_CONF_MBEDTLS_PRESENT=1
104
104
)
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)
78
78
target_compile_definitions (${target}
79
79
INTERFACE
80
80
__ASSERT_MSG
81
- MULADDC_CANNOT_USE_R7
82
81
)
83
82
endif ()
84
83
You can’t perform that action at this time.
0 commit comments