Skip to content

Commit 1c31d36

Browse files
committed
Add ARMC5 as an option for the -t argument
1 parent b809ec6 commit 1c31d36

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tools/options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from os import listdir
2222
from argparse import ArgumentParser, ArgumentTypeError
2323

24-
from .toolchains import TOOLCHAINS
24+
from .toolchains import TOOLCHAINS, EXTRA_TOOLCHAIN_NAMES
2525
from .targets import TARGET_NAMES, Target, update_target_data
2626
from .utils import (argparse_force_uppercase_type, argparse_deprecate,
2727
argparse_lowercase_hyphen_type, argparse_many,
@@ -45,6 +45,7 @@ def get_default_options_parser(add_clean=True, add_options=True,
4545
targetnames = TARGET_NAMES
4646
targetnames.sort()
4747
toolchainlist = list(TOOLCHAINS)
48+
toolchainlist.extend(EXTRA_TOOLCHAIN_NAMES)
4849
toolchainlist.sort()
4950

5051
parser.add_argument("-m", "--mcu",

tools/toolchains/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
u'IAR': iar.IAR
2727
}
2828

29+
EXTRA_TOOLCHAIN_NAMES = [
30+
u"ARMC5"
31+
]
32+
2933
TOOLCHAINS = set(TOOLCHAIN_CLASSES.keys())
3034

3135
# Top level re-exports

0 commit comments

Comments
 (0)