|
9 | 9 |
|
10 | 10 | from tools.arm_pack_manager import Cache
|
11 | 11 | from tools.targets import TARGET_MAP
|
12 |
| -from tools.export.exporters import Exporter |
| 12 | +from tools.export.exporters import Exporter, filter_supported |
13 | 13 | from tools.export.cmsis import DeviceCMSIS
|
14 | 14 |
|
15 | 15 | cache_d = False
|
@@ -119,13 +119,19 @@ class Uvision(Exporter):
|
119 | 119 | """
|
120 | 120 | NAME = 'uvision5'
|
121 | 121 | TOOLCHAIN = 'ARM'
|
122 |
| - TARGETS = [] |
123 |
| - for target, obj in TARGET_MAP.iteritems(): |
124 |
| - if "ARM" not in obj.supported_toolchains: |
125 |
| - continue |
126 |
| - if not DeviceCMSIS.check_supported(target): |
127 |
| - continue |
128 |
| - TARGETS.append(target) |
| 122 | + |
| 123 | + POST_BINARY_WHITELIST = set([ |
| 124 | + "MCU_NRF51Code.binary_hook", |
| 125 | + "TEENSY3_1Code.binary_hook", |
| 126 | + "LPCTargetCode.lpc_patch", |
| 127 | + "LPC4088Code.binary_hook", |
| 128 | + "MTSCode.combine_bins_mts_dot", |
| 129 | + "MTSCode.combine_bins_mts_dragonfly", |
| 130 | + "NCS36510TargetCode.ncs36510_addfib" |
| 131 | + ]) |
| 132 | + TARGETS = [tgt for tgt in filter_supported("ARM", POST_BINARY_WHITELIST) |
| 133 | + if DeviceCMSIS.check_supported(tgt)] |
| 134 | + |
129 | 135 | #File associations within .uvprojx file
|
130 | 136 | file_types = {'.cpp': 8, '.c': 1, '.s': 2,
|
131 | 137 | '.obj': 3, '.o': 3, '.lib': 4,
|
|
0 commit comments