Clone of official tools
Diff: export/embitz/__init__.py
- Revision:
- 40:7d3fa6b99b2b
- Parent:
- 36:96847d42f010
- Child:
- 43:2a7da56ebd24
diff -r c98cb013e99f -r 7d3fa6b99b2b export/embitz/__init__.py --- a/export/embitz/__init__.py Wed Jul 19 16:44:30 2017 -0500 +++ b/export/embitz/__init__.py Tue Oct 10 16:56:30 2017 -0500 @@ -16,7 +16,7 @@ """ from os.path import splitext, basename from tools.targets import TARGET_MAP -from tools.export.exporters import Exporter, filter_supported +from tools.export.exporters import Exporter, apply_supported_whitelist POST_BINARY_WHITELIST = set([ @@ -30,9 +30,6 @@ NAME = 'EmBitz' TOOLCHAIN = 'GCC_ARM' - - TARGETS = filter_supported("GCC_ARM", POST_BINARY_WHITELIST) - MBED_CONFIG_HEADER_SUPPORTED = True FILE_TYPES = { @@ -42,6 +39,11 @@ 'cpp_sources': 'cpp' } + @classmethod + def is_target_supported(cls, target_name): + target = TARGET_MAP[target_name] + return apply_supported_whitelist( + cls.TOOLCHAIN, POST_BINARY_WHITELIST, target) @staticmethod def _remove_symbols(sym_list):