aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2021-01-25 18:05:42 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2021-01-26 15:41:41 +0000
commitdd07178bccc317d588b8738b60d04ca7896b0ade (patch)
tree58c78bbad6ddb3ef2f29cd673e5b0b7e31d14c22 /src
parent3fbff749c6e1a396fd4e03f6287f5180ff09c1f0 (diff)
baremetal: Add support for HCS08 architectures to IAR toolchain
This patch adds the HCS08 architectures, provided by Freescale Semiconductor: * https://en.wikipedia.org/wiki/Motorola_S08 Change-Id: Idd668e30bfeb69e588b93b15131e741924b66f40 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/app/qbs-setup-toolchains/iarewprobe.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/app/qbs-setup-toolchains/iarewprobe.cpp b/src/app/qbs-setup-toolchains/iarewprobe.cpp
index 8614f4818..63d32bfc3 100644
--- a/src/app/qbs-setup-toolchains/iarewprobe.cpp
+++ b/src/app/qbs-setup-toolchains/iarewprobe.cpp
@@ -66,7 +66,7 @@ static QStringList knownIarCompilerNames()
QStringLiteral("iccriscv"), QStringLiteral("icccf"),
QStringLiteral("iccm32c"), QStringLiteral("iccr32c"),
QStringLiteral("iccm16c"), QStringLiteral("icccr16c"),
- QStringLiteral("icchcs12")};
+ QStringLiteral("icchcs12"), QStringLiteral("iccs08")};
}
static QString guessIarArchitecture(const QFileInfo &compiler)
@@ -110,6 +110,8 @@ static QString guessIarArchitecture(const QFileInfo &compiler)
return QStringLiteral("cr16");
if (baseName == QLatin1String("icchcs12"))
return QStringLiteral("hcs12");
+ if (baseName == QLatin1String("iccs08"))
+ return QStringLiteral("hcs8");
return {};
}
@@ -194,7 +196,8 @@ static Version dumpIarCompilerVersion(const QFileInfo &compiler)
|| arch == QLatin1String("r32c")
|| arch == QLatin1String("m16c")
|| arch == QLatin1String("rc16")
- || arch == QLatin1String("hcs12")) {
+ || arch == QLatin1String("hcs12")
+ || arch == QLatin1String("hcs8")) {
return Version{verCode / 100, verCode % 100};
}
@@ -254,6 +257,7 @@ static std::vector<ToolchainInstallInfo> installedIarsFromRegistry()
{QStringLiteral("EWM16C"), QStringLiteral("/m16c/bin/iccm16c.exe")},
{QStringLiteral("EWCR16C"), QStringLiteral("/cr16c/bin/icccr16c.exe")},
{QStringLiteral("EWHCS12"), QStringLiteral("/hcs12/bin/icchcs12.exe")},
+ {QStringLiteral("EWS08"), QStringLiteral("/s08/bin/iccs08.exe")},
};
QSettings registry(QLatin1String(kRegistryNode), QSettings::NativeFormat);