diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2019-02-18 17:31:07 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2019-02-19 10:31:06 +0000 |
commit | 0b60866b01ef1c5d3424ca587323627ee8af20c4 (patch) | |
tree | 698112afb6c213cccb08e3d8d80fd637a417f2b6 | |
parent | d31669ae719e84a5480afc0f6d71734d45686a73 (diff) |
bare-metal: Fix architecture name for 8-bit AVR mcu's
The pre-defined '__AVR_ARCH__' macro just defines a machine
specific type of a core:
https://www.microchip.com/webdoc/AVRLibcReferenceManual/using_tools_1using_avr_gcc_mach_opt.html
Each core may differ in the size of a RAM, ROM, FLASH, presence
of an additional instructions or a periphery, but an architecture
always is 8-bit RISC AVR.
Change-Id: I39b12e6b4cf4a24a1c5c27c61c31a6e01437acea
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | share/qbs/imports/qbs/ModUtils/utils.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/share/qbs/imports/qbs/ModUtils/utils.js b/share/qbs/imports/qbs/ModUtils/utils.js index c315971a2..5ba16de24 100644 --- a/share/qbs/imports/qbs/ModUtils/utils.js +++ b/share/qbs/imports/qbs/ModUtils/utils.js @@ -563,9 +563,6 @@ function guessArchitecture(m) { architecture += "64"; } else if (hasAnyOf(m, ["__AVR__"])) { architecture = "avr"; - var avrSuffix = m["__AVR_ARCH__"]; - if (avrSuffix) - architecture += avrSuffix; } else if (hasAnyOf(m, ["__AVR32__"])) { architecture = "avr32"; } |