Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: build_api.py
- Revision:
- 41:2a77626a4c21
- Parent:
- 40:7d3fa6b99b2b
- Child:
- 43:2a7da56ebd24
diff -r 7d3fa6b99b2b -r 2a77626a4c21 build_api.py
--- a/build_api.py Tue Oct 10 16:56:30 2017 -0500
+++ b/build_api.py Wed Oct 25 14:46:50 2017 -0500
@@ -439,6 +439,18 @@
# Set the toolchain's configuration data
toolchain.set_config_data(toolchain.config.get_config_data())
+ if (hasattr(toolchain.target, "release_versions") and
+ "5" not in toolchain.target.release_versions and
+ "rtos" in toolchain.config.lib_config_data):
+ if "Cortex-A" in toolchain.target.core:
+ raise NotSupportedException(
+ ("%s Will be supported in mbed OS 5.6. "
+ "To use the %s, please checkout the mbed OS 5.4 release branch. "
+ "See https://developer.mbed.org/platforms/Renesas-GR-PEACH/#important-notice "
+ "for more information") % (toolchain.target.name, toolchain.target.name))
+ else:
+ raise NotSupportedException("Target does not support mbed OS 5")
+
return resources
def build_project(src_paths, build_path, target, toolchain_name,
@@ -559,17 +571,6 @@
try:
# Call unified scan_resources
resources = scan_resources(src_paths, toolchain, inc_dirs=inc_dirs)
- if (hasattr(toolchain.target, "release_versions") and
- "5" not in toolchain.target.release_versions and
- "rtos" in toolchain.config.lib_config_data):
- if "Cortex-A" in toolchain.target.core:
- raise NotSupportedException(
- ("%s Will be supported in mbed OS 5.6. "
- "To use the %s, please checkout the mbed OS 5.4 release branch. "
- "See https://developer.mbed.org/platforms/Renesas-GR-PEACH/#important-notice "
- "for more information") % (toolchain.target.name, toolchain.target.name))
- else:
- raise NotSupportedException("Target does not support mbed OS 5")
# Change linker script if specified
if linker_script is not None:
