mirror of https://github.com/ARMmbed/mbed-os.git
Filter supported devices with a post-bin whitelist in uvision
parent
35999be018
commit
60fea42fdb
|
@ -9,7 +9,7 @@ import re
|
||||||
|
|
||||||
from tools.arm_pack_manager import Cache
|
from tools.arm_pack_manager import Cache
|
||||||
from tools.targets import TARGET_MAP
|
from tools.targets import TARGET_MAP
|
||||||
from tools.export.exporters import Exporter
|
from tools.export.exporters import Exporter, filter_supported
|
||||||
from tools.export.cmsis import DeviceCMSIS
|
from tools.export.cmsis import DeviceCMSIS
|
||||||
|
|
||||||
cache_d = False
|
cache_d = False
|
||||||
|
@ -119,13 +119,19 @@ class Uvision(Exporter):
|
||||||
"""
|
"""
|
||||||
NAME = 'uvision5'
|
NAME = 'uvision5'
|
||||||
TOOLCHAIN = 'ARM'
|
TOOLCHAIN = 'ARM'
|
||||||
TARGETS = []
|
|
||||||
for target, obj in TARGET_MAP.iteritems():
|
POST_BINARY_WHITELIST = set([
|
||||||
if "ARM" not in obj.supported_toolchains:
|
"MCU_NRF51Code.binary_hook",
|
||||||
continue
|
"TEENSY3_1Code.binary_hook",
|
||||||
if not DeviceCMSIS.check_supported(target):
|
"LPCTargetCode.lpc_patch",
|
||||||
continue
|
"LPC4088Code.binary_hook",
|
||||||
TARGETS.append(target)
|
"MTSCode.combine_bins_mts_dot",
|
||||||
|
"MTSCode.combine_bins_mts_dragonfly",
|
||||||
|
"NCS36510TargetCode.ncs36510_addfib"
|
||||||
|
])
|
||||||
|
TARGETS = [tgt for tgt in filter_supported("ARM", POST_BINARY_WHITELIST)
|
||||||
|
if DeviceCMSIS.check_supported(tgt)]
|
||||||
|
|
||||||
#File associations within .uvprojx file
|
#File associations within .uvprojx file
|
||||||
file_types = {'.cpp': 8, '.c': 1, '.s': 2,
|
file_types = {'.cpp': 8, '.c': 1, '.s': 2,
|
||||||
'.obj': 3, '.o': 3, '.lib': 4,
|
'.obj': 3, '.o': 3, '.lib': 4,
|
||||||
|
|
Loading…
Reference in New Issue