Clone of official tools
Diff: toolchains/iar.py
- Revision:
- 30:f12ce67666d0
- Parent:
- 29:1210849dba19
- Child:
- 31:8ea194f6145b
diff -r 1210849dba19 -r f12ce67666d0 toolchains/iar.py --- a/toolchains/iar.py Mon Aug 29 11:18:36 2016 +0100 +++ b/toolchains/iar.py Mon Aug 29 11:56:59 2016 +0100 @@ -17,7 +17,6 @@ import re from os import remove from os.path import join, exists, dirname, splitext, exists -from distutils.spawn import find_executable from tools.toolchains import mbedToolchain, TOOLCHAIN_PATHS from tools.hooks import hook_tool @@ -51,12 +50,6 @@ cpuchoice = "Cortex-M7" else: cpuchoice = target.core - - if not TOOLCHAIN_PATHS['IAR']: - exe = find_executable('iccarm') - if exe: - TOOLCHAIN_PATHS['IAR'] = dirname(dirname(exe)) - # flags_cmd are used only by our scripts, the project files have them already defined, # using this flags results in the errors (duplication) # asm accepts --cpu Core or --fpu FPU, not like c/c++ --cpu=Core @@ -108,8 +101,6 @@ self.ar = join(IAR_BIN, "iarchive") self.elf2bin = join(IAR_BIN, "ielftool") - self.toolchain_path = TOOLCHAIN_PATHS['IAR'] - def parse_dependencies(self, dep_path): return [(self.CHROOT if self.CHROOT else '')+path.strip() for path in open(dep_path).readlines() if (path and not path.isspace())]