Add the only part of the "data" module that was used

pull/10254/head
Jimmy Brisson 2019-04-02 08:52:46 -05:00
parent 6d754fe96c
commit 2a4a73cab6
2 changed files with 14 additions and 3 deletions

View File

@ -21,8 +21,7 @@ from tools.paths import MBED_LIBRARIES,\
CPPUTEST_PLATFORM_SRC, CPPUTEST_TESTRUNNER_SCR, CPPUTEST_LIBRARY,\
CPPUTEST_INC, CPPUTEST_PLATFORM_INC, CPPUTEST_TESTRUNNER_INC,\
CPPUTEST_INC_EXT
from tools.data.support import DEFAULT_SUPPORT
from tools.tests import TEST_MBED_LIB
from tools.tests import TEST_MBED_LIB, DEFAULT_SUPPORT
LIBRARIES = [

View File

@ -15,9 +15,21 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
from tools.paths import *
from tools.data.support import DEFAULT_SUPPORT, CORTEX_ARM_SUPPORT
from argparse import ArgumentTypeError
from tools.utils import columnate
from tools.targets import TARGETS
DEFAULT_SUPPORT = {}
CORTEX_ARM_SUPPORT = {}
for target in TARGETS:
DEFAULT_SUPPORT[target.name] = target.supported_toolchains
if target.core.startswith('Cortex'):
CORTEX_ARM_SUPPORT[target.name] = [
t for t in target.supported_toolchains
if (t == 'ARM' or t == 'uARM')
]
TEST_CMSIS_LIB = join(TEST_DIR, "cmsis", "lib")
TEST_MBED_LIB = join(TEST_DIR, "mbed", "env")