From 0af1a4bcd2c016f57469a33bedb292996e92a194 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Wed, 15 Aug 2018 10:30:23 -0500 Subject: [PATCH 1/2] Removing feature names from the "allowed feature" config list. These features have all been removed from Mbed OS in the past. This prevents their use in the future. --- tools/config/__init__.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tools/config/__init__.py b/tools/config/__init__.py index b83067c964..47500fb1e8 100644 --- a/tools/config/__init__.py +++ b/tools/config/__init__.py @@ -63,12 +63,7 @@ BOOTLOADER_OVERRIDES = ROM_OVERRIDES | RAM_OVERRIDES ALLOWED_FEATURES = [ - "BOOTLOADER","UVISOR", "BLE", "CLIENT", "IPV4", "LWIP", "COMMON_PAL", "STORAGE", - "NANOSTACK","CRYPTOCELL310", - # Nanostack configurations - "LOWPAN_BORDER_ROUTER", "LOWPAN_HOST", "LOWPAN_ROUTER", "NANOSTACK_FULL", - "THREAD_BORDER_ROUTER", "THREAD_END_DEVICE", "THREAD_ROUTER", - "ETHERNET_HOST", + "BOOTLOADER", "BLE", "LWIP", "STORAGE", "NANOSTACK", "CRYPTOCELL310", ] # Base class for all configuration exceptions @@ -749,7 +744,7 @@ class Config(object): if start > rom_start + rom_size: raise ConfigException("Not enough memory on device to fit all " "application regions") - + @staticmethod def _find_sector(address, sectors): target_size = -1 @@ -762,13 +757,13 @@ class Config(object): if (target_size < 0): raise ConfigException("No valid sector found") return target_start, target_size - + @staticmethod def _align_floor(address, sectors): target_start, target_size = Config._find_sector(address, sectors) sector_num = (address - target_start) // target_size return target_start + (sector_num * target_size) - + @staticmethod def _align_ceiling(address, sectors): target_start, target_size = Config._find_sector(address, sectors) From 00a3d0f9156fdc2c80a1e136bc9282f14cd3febd Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Fri, 14 Dec 2018 14:03:38 -0600 Subject: [PATCH 2/2] Remove deprecated features from socket test app --- TEST_APPS/device/socket_app/mbed_app.json | 1 - 1 file changed, 1 deletion(-) diff --git a/TEST_APPS/device/socket_app/mbed_app.json b/TEST_APPS/device/socket_app/mbed_app.json index a1829b5e7e..14e0edb152 100644 --- a/TEST_APPS/device/socket_app/mbed_app.json +++ b/TEST_APPS/device/socket_app/mbed_app.json @@ -7,7 +7,6 @@ ], "target_overrides": { "*": { - "target.features_add": ["LWIP", "COMMON_PAL"], "mbed-trace.enable": 1, "platform.stdio-baud-rate": 115200, "platform.stdio-convert-newlines": true,