Add support for automatic toolchain search (for preset-based projects).
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 29 Apr 2010 14:33:08 +0000 (14:33 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 29 Apr 2010 14:33:08 +0000 (14:33 +0000)
NOTE: this has to be tested with suitable toolchains installed. In my case the only toolchain found is for i386 target.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3572 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BRoutePage.py

index d8e6d3707e38512d7ce7ffb6562e1766b3c74edd..5b48a1745291be41c5f4d2e686d5fc2a159dc211 100644 (file)
@@ -82,6 +82,10 @@ class BRoutePage(BWizardPage):
                 tm = ToolchainManager()
                 suitable_toolchains = tm.suitableToolchains(target)
                 if len(suitable_toolchains) == 1:
+                    toolchain = suitable_toolchains.pop()
+                    toolchain_info = tm._validateToolchain(toolchain)
+                    toolchain_info["path"] = toolchain
+                    self.setProjectInfo("TOOLCHAIN", toolchain_info)
                     return self.wizard().pageIndex(BOutputPage)
                 else:
                     return self.wizard().pageIndex(BToolchainPage)