From 358348530d69528ce36e6d767d51a47cd42ae1e5 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Mon, 19 Aug 2019 18:12:40 +0300 Subject: baremetal: Long live the IAR EW project generator for MSP430 Right now it is possible to generate a native projects for the IAR Embedded Workbench IDE, e.g. using the following command: qbs generate -g iarew7 -d -f profile: We need in a valid IAR EW QBS profile, from which the generator take a desired target architecture and other stuff. The IAR EW generator has a semi-intelligent logic, it parses a source QBS project and converts a compiler flags and other stuff to an appropriate configurations of the native IAR EW project. Currently it is supported only one 'iarew7' generator which allow to generate a projects for the IAR EW for MSP430 for all versions of 7 series. Tested with the IAR EW for MSP430 v7.12.4, using as the QBS bare-metal examples, and as other projects. Change-Id: Ic0bbc82e6ebb3b04bced639797976e432809171f Reviewed-by: Christian Kandeler --- src/lib/corelib/generators/generatorutils.cpp | 2 ++ src/lib/corelib/generators/generatorutils.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/lib/corelib') diff --git a/src/lib/corelib/generators/generatorutils.cpp b/src/lib/corelib/generators/generatorutils.cpp index 5c93c0502..9c00eef05 100644 --- a/src/lib/corelib/generators/generatorutils.cpp +++ b/src/lib/corelib/generators/generatorutils.cpp @@ -62,6 +62,8 @@ Architecture architecture(const Project &qbsProject) return Architecture::Mcs51; if (qbsArch == QLatin1String("stm8")) return Architecture::Stm8; + if (qbsArch == QLatin1String("msp430")) + return Architecture::Msp430; return Architecture::Unknown; } diff --git a/src/lib/corelib/generators/generatorutils.h b/src/lib/corelib/generators/generatorutils.h index 031636a7d..9348ab18c 100644 --- a/src/lib/corelib/generators/generatorutils.h +++ b/src/lib/corelib/generators/generatorutils.h @@ -45,6 +45,7 @@ enum class Architecture { Avr, Mcs51, Stm8, + Msp430, Unknown }; -- cgit v1.2.3