Skip to content

Commit 8a0fdd2

Browse files
committed
Rename "default_lib" to "c_lib".
1 parent b7c961c commit 8a0fdd2

File tree

34 files changed

+99
-84
lines changed

34 files changed

+99
-84
lines changed

TESTS/configs/baremetal.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@
3939
"mbed-trace.fea-ipv6": false
4040
},
4141
"K64F": {
42-
"target.default_lib": "small"
42+
"target.c_lib": "small"
4343
},
4444
"K66F": {
45-
"target.default_lib": "small"
45+
"target.c_lib": "small"
4646
},
4747
"NUCLEO_F303RE": {
48-
"target.default_lib": "small"
48+
"target.c_lib": "small"
4949
},
5050
"NUCLEO_F411RE": {
51-
"target.default_lib": "small"
51+
"target.c_lib": "small"
5252
},
5353
"NUCLEO_F429ZI": {
54-
"target.default_lib": "small"
54+
"target.c_lib": "small"
5555
},
5656
"DISCO_L475VG_IOT01A": {
57-
"target.default_lib": "small"
57+
"target.c_lib": "small"
5858
}
5959
}
6060
}

targets/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"features": [],
1717
"detect_code": [],
1818
"public": false,
19-
"default_lib": "std",
19+
"c_lib": "std",
2020
"bootloader_supported": false,
2121
"static_memory_defines": true,
2222
"printf_lib": "std",

tools/build_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,12 @@ def is_official_target(target_name, version):
335335
("following toolchains: %s" %
336336
", ".join(sorted(supported_toolchains)))
337337

338-
elif not target.default_lib == 'std':
338+
elif not target.c_lib == 'std':
339339
result = False
340340
reason = ("Target '%s' must set the " % target.name) + \
341-
("'default_lib' to 'std' to be included in the ") + \
341+
("'c_lib' to 'std' to be included in the ") + \
342342
("mbed OS 5.0 official release." + linesep) + \
343-
("Currently it is set to '%s'" % target.default_lib)
343+
("Currently it is set to '%s'" % target.c_lib)
344344

345345
else:
346346
result = False

tools/targets/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def check_device_has(dict):
9090
yield "%s is not allowed in device_has" % name
9191

9292
MCU_REQUIRED_KEYS = ["release_versions", "supported_toolchains",
93-
"default_lib", "public", "inherits", "device_has"]
93+
"c_lib", "public", "inherits", "device_has"]
9494
MCU_ALLOWED_KEYS = ["device_has_add", "device_has_remove", "core",
9595
"extra_labels", "features", "features_add",
9696
"features_remove", "bootloader_supported", "device_name",

tools/test/config/app_override_libs/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"core": "Cortex-M0",
44
"extra_labels": [],
55
"features": [],
6-
"default_lib": "std",
6+
"c_lib": "std",
77
"supported_toolchains": ["GCC_ARM"],
88
"supported_c_libs": {
99
"arm": ["std"],

tools/test/config/compound_inheritance/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"base": {
33
"supported_toolchains": ["GCC_ARM"],
44
"extra_labels": [],
5-
"default_lib": "std",
5+
"c_lib": "std",
66
"supported_c_libs": {
77
"arm": ["std"],
88
"gcc_arm": ["std", "small"],

tools/test/config/double_define/targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"first_base": {
33
"supported_toolchains": ["GCC_ARM"],
44
"extra_labels": [],
5-
"default_lib": "std",
5+
"c_lib": "std",
66
"supported_c_libs": {
77
"arm": ["std"],
88
"gcc_arm": ["std", "small"],
@@ -18,7 +18,7 @@
1818
"second_base": {
1919
"supported_toolchains": ["GCC_ARM"],
2020
"extra_labels": [],
21-
"default_lib": "std",
21+
"c_lib": "std",
2222
"supported_c_libs": {
2323
"arm": ["std"],
2424
"gcc_arm": ["std", "small"],

tools/test/config/feature_compesition/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"core": "Cortex-M0",
55
"extra_labels": [],
66
"features": [],
7-
"default_lib": "std",
7+
"c_lib": "std",
88
"supported_c_libs": {
99
"arm": ["std"],
1010
"gcc_arm": ["std", "small"],

tools/test/config/feature_recursive_add/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"core": "Cortex-M0",
55
"extra_labels": [],
66
"features": [],
7-
"default_lib": "std",
7+
"c_lib": "std",
88
"supported_c_libs": {
99
"arm": ["std"],
1010
"gcc_arm": ["std", "small"],

tools/test/config/feature_recursive_complex/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"core": "Cortex-M0",
55
"extra_labels": [],
66
"features": [],
7-
"default_lib": "std",
7+
"c_lib": "std",
88
"supported_c_libs": {
99
"arm": ["std"],
1010
"gcc_arm": ["std", "small"],

0 commit comments

Comments
 (0)