Extract the validateToolchain function from the BToolchainPage in order to use it...
[bertos.git] / wizard / bertos_utils.py
index 8a73185d71822b74f2881b1d0af0716697d2b821..b57801a0fe6ef6db2658d510cc071d941ad35adb 100644 (file)
@@ -358,6 +358,10 @@ def getToolchainInfo(output):
         info["thread"] = thread[0].split("Thread model: ")[1]
     return info
 
+def getToolchainName(toolchain_info):
+    name = "GCC " + toolchain_info["version"] + " - " + toolchain_info["target"].strip()
+    return name
+
 def loadSourceTree(project):
     fileList = [f for f in os.walk(project.info("SOURCES_PATH"))]
     project.setInfo("FILE_LIST", fileList)