Clone of official tools
Diff: options.py
- Revision:
- 43:2a7da56ebd24
- Parent:
- 38:399953da035d
--- a/options.py Mon Nov 06 13:17:14 2017 -0600 +++ b/options.py Tue Sep 25 13:43:09 2018 -0500 @@ -14,16 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. """ +from __future__ import print_function, division, absolute_import + from json import load from os.path import join, dirname from os import listdir from argparse import ArgumentParser, ArgumentTypeError -from tools.toolchains import TOOLCHAINS -from tools.targets import TARGET_NAMES, Target, update_target_data -from tools.utils import argparse_force_uppercase_type, \ - argparse_lowercase_hyphen_type, argparse_many, \ - argparse_filestring_type, args_error, argparse_profile_filestring_type,\ - argparse_deprecate + +from .toolchains import TOOLCHAINS +from .targets import TARGET_NAMES, Target, update_target_data +from .utils import (argparse_force_uppercase_type, argparse_deprecate, + argparse_lowercase_hyphen_type, argparse_many, + argparse_filestring_type, args_error, + argparse_profile_filestring_type) FLAGS_DEPRECATION_MESSAGE = "Please use the --profile argument instead.\n"\ "Documentation may be found in "\ @@ -117,16 +120,6 @@ profiles.append(contents) return profiles - -def mcu_is_enabled(parser, mcu): - if "Cortex-A" in TARGET_MAP[mcu].core: - args_error( - parser, - ("%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") % (mcu, mcu)) - return True def extract_mcus(parser, options): try: