Fix build failure due to C lib selected

Allow target.c_lib to be set to small when Mbed 5 is supported.
pull/12748/head
Hugues Kamba 2020-04-02 13:57:53 +01:00
parent dba3962f16
commit 467305f374
1 changed files with 6 additions and 5 deletions

View File

@ -337,12 +337,13 @@ def is_official_target(target_name, version):
("following toolchains: %s" %
", ".join(sorted(supported_toolchains)))
elif not target.c_lib == 'std':
elif target.c_lib not in ['std', 'small']:
result = False
reason = ("Target '%s' must set the " % target.name) + \
("'c_lib' to 'std' to be included in the ") + \
("mbed OS 5.0 official release." + linesep) + \
("Currently it is set to '%s'" % target.c_lib)
reason = (
"'target.c_lib' for the '{}' target must be set to 'std' or"
" 'small'.{}"
"It is currently set to '{}'"
).format(target.name, linesep, target.c_lib)
else:
result = False