File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -236,15 +236,19 @@ def find_valid_toolchain(target, toolchain):
236
236
internal_tc_name = get_toolchain_name (target , toolchain_name )
237
237
if toolchain == "ARM" and toolchain_name == "ARMC5" and index != 0 :
238
238
end_warnings .append (ARMC5_MIGRATION_WARNING )
239
+ if target .default_toolchain == "uARM" :
240
+ end_warnings .append (UARM_DEFAULT_TOOLCHAIN_WARNING )
239
241
if not TOOLCHAIN_CLASSES [internal_tc_name ].check_executable ():
240
242
search_path = TOOLCHAIN_PATHS [internal_tc_name ] or "No path set"
241
243
last_error = (
242
244
"Could not find executable for {}.\n "
243
245
"Currently set search path: {}"
244
246
).format (toolchain_name , search_path )
245
247
else :
246
- if toolchain_name == "uARM" or target .default_toolchain == "uARM" :
247
- end_warnings .append (UARM_TOOLCHAIN_WARNING )
248
+ if toolchain_name == "uARM" :
249
+ end_warnings .append (UARM_TOOLCHAIN_WARNING )
250
+ elif toolchain_name == "ARMC6" and target .default_toolchain == "uARM" :
251
+ end_warnings .append (UARM_DEFAULT_TOOLCHAIN_WARNING )
248
252
return toolchain_name , internal_tc_name , end_warnings
249
253
else :
250
254
if last_error :
Original file line number Diff line number Diff line change 44
44
"please visit https://os.mbed.com/docs/mbed-os/latest/reference/using-small-c-libraries.html"
45
45
)
46
46
47
+ UARM_DEFAULT_TOOLCHAIN_WARNING = (
48
+ "Warning: We noticed that this target default_toolchain overrides --toolchain option with uARM Toolchain. "
49
+ "We are deprecating the use of uARM Toolchain. "
50
+ "For more information on how to use the ARM toolchain with small C libraries, "
51
+ "please visit https://os.mbed.com/docs/mbed-os/latest/reference/using-small-c-libraries.html"
52
+ )
53
+
47
54
class ARM (mbedToolchain ):
48
55
LINKER_EXT = '.sct'
49
56
LIBRARY_EXT = '.ar'
You can’t perform that action at this time.
0 commit comments