|
28 | 28 | import fnmatch
|
29 | 29 |
|
30 | 30 | from tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException, ToolException, InvalidReleaseTargetException
|
31 |
| -from tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_DRIVERS, MBED_PLATFORM, MBED_HAL, MBED_CONFIG_FILE |
| 31 | +from tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_DRIVERS, MBED_PLATFORM, MBED_HAL, MBED_HEADER, MBED_CONFIG_FILE |
32 | 32 | from tools.targets import TARGET_NAMES, TARGET_MAP
|
33 | 33 | from tools.libraries import Library
|
34 | 34 | from tools.toolchains import TOOLCHAIN_CLASSES
|
@@ -714,7 +714,7 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, clean=F
|
714 | 714 | toolchain.info("Building library %s (%s, %s)" % ('MBED', target.name, toolchain_name))
|
715 | 715 |
|
716 | 716 | # Common Headers
|
717 |
| - toolchain.copy_files(['mbed.h'], MBED_LIBRARIES) |
| 717 | + toolchain.copy_files([MBED_HEADER], MBED_LIBRARIES) |
718 | 718 | toolchain.copy_files(toolchain.scan_resources(MBED_DRIVERS).headers, MBED_LIBRARIES)
|
719 | 719 | toolchain.copy_files(toolchain.scan_resources(MBED_PLATFORM).headers, MBED_LIBRARIES)
|
720 | 720 | toolchain.copy_files(toolchain.scan_resources(MBED_HAL).headers, MBED_LIBRARIES)
|
@@ -943,7 +943,7 @@ def static_analysis_scan(target, toolchain_name, CPPCHECK_CMD, CPPCHECK_MSG_FORM
|
943 | 943 | toolchain.info("Static analysis for %s (%s, %s)" % ('MBED', target.name, toolchain_name))
|
944 | 944 |
|
945 | 945 | # Common Headers
|
946 |
| - toolchain.copy_files(['mbed.h'], MBED_LIBRARIES) |
| 946 | + toolchain.copy_files([MBED_HEADER], MBED_LIBRARIES) |
947 | 947 | toolchain.copy_files(toolchain.scan_resources(MBED_DRIVERS).headers, MBED_LIBRARIES)
|
948 | 948 | toolchain.copy_files(toolchain.scan_resources(MBED_PLATFORM).headers, MBED_LIBRARIES)
|
949 | 949 | toolchain.copy_files(toolchain.scan_resources(MBED_HAL).headers, MBED_LIBRARIES)
|
|
0 commit comments