aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2021-01-18 14:57:52 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2021-01-21 08:18:52 +0000
commitf7e98f94a7ca3e0decdc2eb5e5e3b90f3fc64480 (patch)
tree26ba0cb23629a5881e24d65d65c3f111b4806b38 /src/app
parent16d4c79ec8ccaf9968103c75283272ac54aa8c2d (diff)
baremetal: Add support for HCS12 architectures to IAR toolchain
This patch adds the HCS12 architectures, provided by Freescale Semiconductor: * https://en.wikipedia.org/wiki/Motorola_68HC12 Change-Id: I9083bac9997e0dec50e0392040ce63beaa8a8f05 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/qbs-setup-toolchains/iarewprobe.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/app/qbs-setup-toolchains/iarewprobe.cpp b/src/app/qbs-setup-toolchains/iarewprobe.cpp
index 4f87590a6..8614f4818 100644
--- a/src/app/qbs-setup-toolchains/iarewprobe.cpp
+++ b/src/app/qbs-setup-toolchains/iarewprobe.cpp
@@ -65,7 +65,8 @@ static QStringList knownIarCompilerNames()
QStringLiteral("iccavr32"), QStringLiteral("iccsh"),
QStringLiteral("iccriscv"), QStringLiteral("icccf"),
QStringLiteral("iccm32c"), QStringLiteral("iccr32c"),
- QStringLiteral("iccm16c"), QStringLiteral("icccr16c")};
+ QStringLiteral("iccm16c"), QStringLiteral("icccr16c"),
+ QStringLiteral("icchcs12")};
}
static QString guessIarArchitecture(const QFileInfo &compiler)
@@ -107,6 +108,8 @@ static QString guessIarArchitecture(const QFileInfo &compiler)
return QStringLiteral("m16c");
if (baseName == QLatin1String("icccr16c"))
return QStringLiteral("cr16");
+ if (baseName == QLatin1String("icchcs12"))
+ return QStringLiteral("hcs12");
return {};
}
@@ -190,7 +193,8 @@ static Version dumpIarCompilerVersion(const QFileInfo &compiler)
|| arch == QLatin1String("m32c")
|| arch == QLatin1String("r32c")
|| arch == QLatin1String("m16c")
- || arch == QLatin1String("rc16")) {
+ || arch == QLatin1String("rc16")
+ || arch == QLatin1String("hcs12")) {
return Version{verCode / 100, verCode % 100};
}
@@ -249,6 +253,7 @@ static std::vector<ToolchainInstallInfo> installedIarsFromRegistry()
{QStringLiteral("EWR32C"), QStringLiteral("/r32c/bin/iccr32c.exe")},
{QStringLiteral("EWM16C"), QStringLiteral("/m16c/bin/iccm16c.exe")},
{QStringLiteral("EWCR16C"), QStringLiteral("/cr16c/bin/icccr16c.exe")},
+ {QStringLiteral("EWHCS12"), QStringLiteral("/hcs12/bin/icchcs12.exe")},
};
QSettings registry(QLatin1String(kRegistryNode), QSettings::NativeFormat);