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.
pull/7799/head
Brian Daniels 2018-08-15 10:30:23 -05:00
parent e635613b28
commit 0af1a4bcd2
1 changed files with 4 additions and 9 deletions

View File

@ -63,12 +63,7 @@ BOOTLOADER_OVERRIDES = ROM_OVERRIDES | RAM_OVERRIDES
ALLOWED_FEATURES = [ ALLOWED_FEATURES = [
"BOOTLOADER","UVISOR", "BLE", "CLIENT", "IPV4", "LWIP", "COMMON_PAL", "STORAGE", "BOOTLOADER", "BLE", "LWIP", "STORAGE", "NANOSTACK", "CRYPTOCELL310",
"NANOSTACK","CRYPTOCELL310",
# Nanostack configurations
"LOWPAN_BORDER_ROUTER", "LOWPAN_HOST", "LOWPAN_ROUTER", "NANOSTACK_FULL",
"THREAD_BORDER_ROUTER", "THREAD_END_DEVICE", "THREAD_ROUTER",
"ETHERNET_HOST",
] ]
# Base class for all configuration exceptions # Base class for all configuration exceptions
@ -749,7 +744,7 @@ class Config(object):
if start > rom_start + rom_size: if start > rom_start + rom_size:
raise ConfigException("Not enough memory on device to fit all " raise ConfigException("Not enough memory on device to fit all "
"application regions") "application regions")
@staticmethod @staticmethod
def _find_sector(address, sectors): def _find_sector(address, sectors):
target_size = -1 target_size = -1
@ -762,13 +757,13 @@ class Config(object):
if (target_size < 0): if (target_size < 0):
raise ConfigException("No valid sector found") raise ConfigException("No valid sector found")
return target_start, target_size return target_start, target_size
@staticmethod @staticmethod
def _align_floor(address, sectors): def _align_floor(address, sectors):
target_start, target_size = Config._find_sector(address, sectors) target_start, target_size = Config._find_sector(address, sectors)
sector_num = (address - target_start) // target_size sector_num = (address - target_start) // target_size
return target_start + (sector_num * target_size) return target_start + (sector_num * target_size)
@staticmethod @staticmethod
def _align_ceiling(address, sectors): def _align_ceiling(address, sectors):
target_start, target_size = Config._find_sector(address, sectors) target_start, target_size = Config._find_sector(address, sectors)