Skip to content

Commit fa2077d

Browse files
author
Cruz Monrreal
authored
Merge pull request #8685 from bridadan/clean_up_deprecated_feature_code
Clean up deprecated feature code
2 parents ba0a476 + 172abc8 commit fa2077d

File tree

22 files changed

+42
-28
lines changed

22 files changed

+42
-28
lines changed

features/cellular/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ You can define the debug tracing level in the `mbed_app.json` configuration file
5353

5454
"target_overrides": {
5555
"*": {
56-
"target.features_add": ["COMMON_PAL"],
5756
"mbed-trace.enable": true,
5857
"platform.stdio-convert-newlines": true,
5958
"platform.stdio-baud-rate": 115200,

features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@
2121
#if MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP
2222
#include "APN_db.h"
2323
#endif //MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP
24-
#if defined(FEATURE_COMMON_PAL)
2524
#include "mbed_trace.h"
2625
#define TRACE_GROUP "UCID"
27-
#else
28-
#define tr_debug(...) (void(0)) //dummies if feature common pal is not added
29-
#define tr_info(...) (void(0)) //dummies if feature common pal is not added
30-
#define tr_error(...) (void(0)) //dummies if feature common pal is not added
31-
#endif //defined(FEATURE_COMMON_PAL)
3226

3327
/**
3428
* PDP (packet data profile) Context

features/netsocket/cellular/generic_modem_driver/TESTS/unit_tests/default/main.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@
2727
#include "OnboardCellularInterface.h"
2828
#include "UDPSocket.h"
2929
#include "TCPSocket.h"
30-
#if defined(FEATURE_COMMON_PAL)
3130
#include "mbed_trace.h"
3231
#define TRACE_GROUP "TEST"
33-
#else
34-
#define tr_debug(...) (void(0)) //dummies if feature common pal is not added
35-
#define tr_info(...) (void(0)) //dummies if feature common pal is not added
36-
#define tr_error(...) (void(0)) //dummies if feature common pal is not added
37-
#endif //defined(FEATURE_COMMON_PAL)
3832

3933
using namespace utest::v1;
4034

features/netsocket/cellular/generic_modem_driver/TESTS/unit_tests/default/template_mbed_app.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@
5959
"lwip.ethernet-enabled": false,
6060
"lwip.ppp-enabled": true,
6161
"lwip.tcp-enabled": true,
62-
"target.features_add": ["LWIP", "COMMON_PAL"],
6362
"platform.stdio-convert-newlines": true,
6463
"platform.stdio-baud-rate": 115200,
65-
"platform.default-serial-baud-rate": 115200,
64+
"platform.default-serial-baud-rate": 115200,
6665
"mbed-trace.enable": 1
6766
}
6867
}
69-
}
68+
}

tools/test/config/feature_compesition/lib1/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "lib1",
33
"target_overrides": {
44
"*": {
5-
"target.features_add": ["IPV4"]
5+
"target.features_add": ["BOOTLOADER"]
66
}
77
}
88
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"test_target": {
3-
"expected_features": ["IPV4", "STORAGE"]
3+
"expected_features": ["BOOTLOADER", "STORAGE"]
44
}
55
}

tools/test/config/feature_conflict/lib1/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "lib1",
33
"target_overrides": {
44
"*": {
5-
"target.features_add": ["IPV4"]
5+
"target.features_add": ["BOOTLOADER"]
66
}
77
}
88
}

tools/test/config/feature_conflict/lib2/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "lib2",
33
"target_overrides": {
44
"*": {
5-
"target.features_remove": ["IPV4"]
5+
"target.features_remove": ["BOOTLOADER"]
66
}
77
}
88
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"K64F": {
3-
"exception_msg": "Configuration conflict. The feature IPV4 both added and removed."
3+
"exception_msg": "Configuration conflict. The feature BOOTLOADER both added and removed."
44
}
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"target_overrides": {
33
"*": {
4-
"target.features_add": ["IPV4"]
4+
"target.features_add": ["BOOTLOADER"]
55
}
66
}
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"test_target": {
3-
"expected_features": ["IPV4", "STORAGE"]
3+
"expected_features": ["BOOTLOADER", "STORAGE"]
44
}
55
}

tools/test/config/feature_recursive_complex/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"target_overrides": {
33
"*": {
4-
"target.features_add": ["IPV4"],
4+
"target.features_add": ["BOOTLOADER"],
55
"lib2.test": "GOOD"
66
}
77
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "lib1",
3+
"target_overrides": {
4+
"*": {
5+
"target.features_remove": ["STORAGE"]
6+
}
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "lib2",
3+
"target_overrides": {
4+
"*": {
5+
"target.features_add": ["BOOTLOADER"]
6+
}
7+
}
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"target_overrides": {
3+
"*": {
4+
"target.features_add": ["STORAGE"]
5+
}
6+
}
7+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"K64F": {
3+
"exception_msg": "Configuration conflict. The feature STORAGE both added and removed."
4+
}
5+
}

tools/test/config/feature_remove/lib1/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "lib1",
33
"target_overrides": {
44
"*": {
5-
"target.features_remove": ["IPV4"]
5+
"target.features_remove": ["BOOTLOADER"]
66
}
77
}
88
}

tools/test/config/feature_remove/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"supported_toolchains": ["GCC_ARM"],
44
"core": "Cortex-M0",
55
"extra_labels": [],
6-
"features": ["IPV4"],
6+
"features": ["BOOTLOADER"],
77
"default_lib": "std"
88
}
99
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"target_overrides": {
33
"*": {
4-
"target.features": ["IPV4"]
4+
"target.features": ["BOOTLOADER"]
55
}
66
}
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"test_target": {
3-
"expected_features": ["IPV4"]
3+
"expected_features": ["BOOTLOADER"]
44
}
55
}

0 commit comments

Comments
 (0)