Skip to content

Commit

Permalink
Merge pull request #2614 from MarceloSalazar/uvision_default
Browse files Browse the repository at this point in the history
Change default uvision exporter to uvision5
  • Loading branch information
sg- authored Sep 22, 2016
2 parents 4fa65a6 + 64d3381 commit 6fce892
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/export/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
from project_generator_definitions.definitions import ProGenDef

EXPORTERS = {
'uvision': uvision4.Uvision4,
'uvision4': uvision4.Uvision4,
'uvision': uvision5.Uvision5,
'uvision4': uvision4.Uvision4, # deprecated - to be removed in future version
'uvision5': uvision5.Uvision5,
'lpcxpresso': codered.CodeRed,
'gcc_arm': makefile.GccArm,
Expand Down
3 changes: 3 additions & 0 deletions tools/export/uvision4.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def get_toolchain(self):

def generate(self):
""" Generates the project files """

print "WARNING: exporting to uVision4 is deprecated and will be removed in a future version"

project_data = self.progen_get_project_data()
tool_specific = {}
# Expand tool specific settings by uvision specific settings which are required
Expand Down
4 changes: 2 additions & 2 deletions tools/test/export/build_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def handle_log_files(project_dir, tool, name):
created project files
"""
log = ''
if tool == 'uvision' or tool == 'uvision5':
if tool == 'uvision' or tool == 'uvision4':
log = path.join(project_dir, "build", "build_log.txt")
elif tool == 'iar':
log = path.join(project_dir, 'build_log.txt')
Expand Down Expand Up @@ -129,7 +129,7 @@ def generate_and_build(self, clean=False):

def main():
"""Entry point"""
toolchainlist = ["iar", "uvision", "uvision5"]
toolchainlist = ["iar", "uvision", "uvision4"]
default_tests = [test_name_known("MBED_BLINKY")]
targetnames = TARGET_NAMES
targetnames.sort()
Expand Down

0 comments on commit 6fce892

Please sign in to comment.