Skip to content

Commit 0af1a4b

Browse files
committed
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.
1 parent e635613 commit 0af1a4b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tools/config/__init__.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@
6363

6464

6565
ALLOWED_FEATURES = [
66-
"BOOTLOADER","UVISOR", "BLE", "CLIENT", "IPV4", "LWIP", "COMMON_PAL", "STORAGE",
67-
"NANOSTACK","CRYPTOCELL310",
68-
# Nanostack configurations
69-
"LOWPAN_BORDER_ROUTER", "LOWPAN_HOST", "LOWPAN_ROUTER", "NANOSTACK_FULL",
70-
"THREAD_BORDER_ROUTER", "THREAD_END_DEVICE", "THREAD_ROUTER",
71-
"ETHERNET_HOST",
66+
"BOOTLOADER", "BLE", "LWIP", "STORAGE", "NANOSTACK", "CRYPTOCELL310",
7267
]
7368

7469
# Base class for all configuration exceptions
@@ -749,7 +744,7 @@ def _generate_bootloader_build(self, rom_start, rom_size):
749744
if start > rom_start + rom_size:
750745
raise ConfigException("Not enough memory on device to fit all "
751746
"application regions")
752-
747+
753748
@staticmethod
754749
def _find_sector(address, sectors):
755750
target_size = -1
@@ -762,13 +757,13 @@ def _find_sector(address, sectors):
762757
if (target_size < 0):
763758
raise ConfigException("No valid sector found")
764759
return target_start, target_size
765-
760+
766761
@staticmethod
767762
def _align_floor(address, sectors):
768763
target_start, target_size = Config._find_sector(address, sectors)
769764
sector_num = (address - target_start) // target_size
770765
return target_start + (sector_num * target_size)
771-
766+
772767
@staticmethod
773768
def _align_ceiling(address, sectors):
774769
target_start, target_size = Config._find_sector(address, sectors)

0 commit comments

Comments
 (0)