Skip to content

Commit 96b4ff3

Browse files
committed
restructure - Updated mbed 2 build to respect the new cmsis directory
1 parent 26ced98 commit 96b4ff3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tools/build_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
from tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException,\
2727
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,\
3030
MBED_LIBRARIES_DRIVERS, MBED_LIBRARIES_PLATFORM, MBED_LIBRARIES_HAL,\
3131
BUILD_DIR
3232
from tools.targets import TARGET_NAMES, TARGET_MAP
@@ -892,7 +892,7 @@ def build_mbed_libs(target, toolchain_name, verbose=False,
892892
# CMSIS
893893
toolchain.info("Building library %s (%s, %s)" %
894894
('CMSIS', target.name, toolchain_name))
895-
cmsis_src = join(MBED_TARGETS_PATH, "cmsis")
895+
cmsis_src = MBED_CMSIS_PATH
896896
resources = toolchain.scan_resources(cmsis_src)
897897

898898
toolchain.copy_files(resources.headers, build_target)
@@ -1154,7 +1154,7 @@ def static_analysis_scan(target, toolchain_name, cppcheck_cmd,
11541154
# CMSIS
11551155
toolchain.info("Static analysis for %s (%s, %s)" %
11561156
('CMSIS', target.name, toolchain_name))
1157-
cmsis_src = join(MBED_TARGETS_PATH, "cmsis")
1157+
cmsis_src = MBED_CMSIS_PATH
11581158
resources = toolchain.scan_resources(cmsis_src)
11591159

11601160
# Copy files before analysis

tools/paths.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
MBED_PLATFORM = join(ROOT, "platform")
3737
MBED_HAL = join(ROOT, "hal")
3838

39+
MBED_CMSIS_PATH = join(ROOT, "cmsis")
3940
MBED_TARGETS_PATH = join(ROOT, "targets")
4041

4142
MBED_LIBRARIES = join(BUILD_DIR, "mbed")

0 commit comments

Comments
 (0)