aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/iar.qbs
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-08-13 18:28:19 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-08-15 14:03:10 +0000
commit2ae6989a8605f9be15defd294f2726b01bd5f093 (patch)
treeabc8d11fe53e6d362ded379c1ecd42b226ad7093 /share/qbs/modules/cpp/iar.qbs
parent45cde14ce2b04cace352b0f59a80f4d30955d1e0 (diff)
baremetal: Add IAR MSP430 toolchain support
This commit adds a basic support of the IAR Embedded Workbench toolchain for the MSP430 processors family. To use it with Qt Creator, it is enough to add there a desired Kit with a custom IAR C/C++ compiler, and then set the following in the Kit's Qbs profile settings: * Key: qbs.toolchainType * Value: iar Tested with EW for MSP430 v7.12.4 on Windows using the simple projects samples which come with the default IAR installer. Change-Id: I6a31da1823fd08ba7bf41a315ac20e98f5ba77f6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/modules/cpp/iar.qbs')
-rw-r--r--share/qbs/modules/cpp/iar.qbs16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/iar.qbs b/share/qbs/modules/cpp/iar.qbs
index 8b8773f7c..b573a0964 100644
--- a/share/qbs/modules/cpp/iar.qbs
+++ b/share/qbs/modules/cpp/iar.qbs
@@ -88,6 +88,8 @@ CppModule {
return "iccavr" + compilerExtension;
case "stm8":
return "iccstm8" + compilerExtension;
+ case "msp430":
+ return "icc430" + compilerExtension;
}
}
compilerPath: FileInfo.joinPaths(toolchainInstallPath, compilerName)
@@ -102,6 +104,8 @@ CppModule {
return "aavr" + compilerExtension;
case "stm8":
return "iasmstm8" + compilerExtension;
+ case "msp430":
+ return "a430" + compilerExtension;
}
}
assemblerPath: FileInfo.joinPaths(toolchainInstallPath, assemblerName)
@@ -116,6 +120,8 @@ CppModule {
return "xlink" + compilerExtension;
case "stm8":
return "ilinkstm8" + compilerExtension;
+ case "msp430":
+ return "xlink" + compilerExtension;
}
}
linkerPath: FileInfo.joinPaths(toolchainInstallPath, linkerName)
@@ -130,6 +136,8 @@ CppModule {
return "xlib" + compilerExtension;
case "stm8":
return "iarchive" + compilerExtension;
+ case "msp430":
+ return "xlib" + compilerExtension;
}
}
property string archiverPath: FileInfo.joinPaths(toolchainInstallPath, archiverName)
@@ -146,6 +154,8 @@ CppModule {
return ".r90";
case "stm8":
return ".a";
+ case "msp430":
+ return ".r43";
}
}
@@ -159,6 +169,8 @@ CppModule {
return qbs.debugInformation ? ".d90" : ".a90";
case "stm8":
return ".out";
+ case "msp430":
+ return qbs.debugInformation ? ".d43" : ".a43";
}
}
@@ -172,6 +184,8 @@ CppModule {
return ".r90";
case "stm8":
return ".o";
+ case "msp430":
+ return ".r43";
}
}
@@ -185,6 +199,8 @@ CppModule {
return "ubrof";
case "stm8":
return "elf";
+ case "msp430":
+ return "ubrof";
}
}