aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/imports/qbs/Probes/IarProbe.qbs
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-07-24 15:30:52 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-07-26 14:00:47 +0000
commit1a9e852d7d6ea753f20d7e1f374c9f20a87d7f1e (patch)
tree7345cc2076dbc84993825392d7de58f520e76f6a /share/qbs/imports/qbs/Probes/IarProbe.qbs
parent7fb811f6cb51d752af551eb0739daafd4ae7560b (diff)
bare-metal: Add IAR STM8 toolchain support
This commit adds a basic support of the IAR Embedded Workbench toolchain for the STM8 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 STM8 v3.11.1 on Windows using the simple projects samples which come with the default IAR installer. Change-Id: Ibc116ceb33b7df49c3241d26fa97136255ba06dd Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/imports/qbs/Probes/IarProbe.qbs')
-rw-r--r--share/qbs/imports/qbs/Probes/IarProbe.qbs4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/qbs/imports/qbs/Probes/IarProbe.qbs b/share/qbs/imports/qbs/Probes/IarProbe.qbs
index 6e7fb7d64..c57878058 100644
--- a/share/qbs/imports/qbs/Probes/IarProbe.qbs
+++ b/share/qbs/imports/qbs/Probes/IarProbe.qbs
@@ -91,6 +91,10 @@ PathProbe {
versionMajor = parseInt(version / 100);
versionMinor = parseInt(version % 100);
versionPatch = 0;
+ } else if (architecture === "stm8") {
+ versionMajor = parseInt(version / 100);
+ versionMinor = parseInt(version % 100);
+ versionPatch = 0;
}
found = version && architecture && endianness;