mirror of https://github.com/ARMmbed/mbed-os.git
Correct SW4STM32 supported check
parent
f907012e55
commit
f88b425bfe
|
@ -20,6 +20,7 @@ from tools.utils import mkdir
|
|||
from tools.export.gnuarmeclipse import GNUARMEclipse
|
||||
from tools.export.gnuarmeclipse import UID
|
||||
from tools.build_api import prepare_toolchain
|
||||
from tools.targets import TARGET_MAP
|
||||
from sys import flags, platform
|
||||
|
||||
# Global random number generator instance.
|
||||
|
@ -281,7 +282,14 @@ class Sw4STM32(GNUARMEclipse):
|
|||
},
|
||||
}
|
||||
|
||||
TARGETS = BOARDS.keys()
|
||||
|
||||
@classmethod
|
||||
def is_target_supported(cls, target_name):
|
||||
target = TARGET_MAP[target_name]
|
||||
target_supported = bool(set(target.resolution_order_names)
|
||||
.intersection(set(cls.BOARDS.keys())))
|
||||
toolchain_supported = cls.TOOLCHAIN in target.supported_toolchains
|
||||
return target_supported and toolchain_supported
|
||||
|
||||
def __gen_dir(self, dir_name):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue