Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: export/embitz/__init__.py
- Revision:
 - 40:7d3fa6b99b2b
 - Parent:
 - 36:96847d42f010
 - Child:
 - 43:2a7da56ebd24
 
--- 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):
    