|
25 | 25 |
|
26 | 26 | from tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException,\
|
27 | 27 | ToolException, InvalidReleaseTargetException
|
28 |
| -from tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_HEADER,\ |
29 |
| - MBED_DRIVERS, MBED_PLATFORM, MBED_HAL, MBED_CONFIG_FILE,\ |
| 28 | +from tools.paths import MBED_CMSIS_PATH, MBED_TARGETS_PATH, MBED_LIBRARIES,\ |
| 29 | + MBED_HEADER, MBED_DRIVERS, MBED_PLATFORM, MBED_HAL, MBED_CONFIG_FILE,\ |
30 | 30 | MBED_LIBRARIES_DRIVERS, MBED_LIBRARIES_PLATFORM, MBED_LIBRARIES_HAL,\
|
31 | 31 | BUILD_DIR
|
32 | 32 | from tools.targets import TARGET_NAMES, TARGET_MAP
|
@@ -892,7 +892,7 @@ def build_mbed_libs(target, toolchain_name, verbose=False,
|
892 | 892 | # CMSIS
|
893 | 893 | toolchain.info("Building library %s (%s, %s)" %
|
894 | 894 | ('CMSIS', target.name, toolchain_name))
|
895 |
| - cmsis_src = join(MBED_TARGETS_PATH, "cmsis") |
| 895 | + cmsis_src = MBED_CMSIS_PATH |
896 | 896 | resources = toolchain.scan_resources(cmsis_src)
|
897 | 897 |
|
898 | 898 | toolchain.copy_files(resources.headers, build_target)
|
@@ -1154,7 +1154,7 @@ def static_analysis_scan(target, toolchain_name, cppcheck_cmd,
|
1154 | 1154 | # CMSIS
|
1155 | 1155 | toolchain.info("Static analysis for %s (%s, %s)" %
|
1156 | 1156 | ('CMSIS', target.name, toolchain_name))
|
1157 |
| - cmsis_src = join(MBED_TARGETS_PATH, "cmsis") |
| 1157 | + cmsis_src = MBED_CMSIS_PATH |
1158 | 1158 | resources = toolchain.scan_resources(cmsis_src)
|
1159 | 1159 |
|
1160 | 1160 | # Copy files before analysis
|
|
0 commit comments