From 0b60866b01ef1c5d3424ca587323627ee8af20c4 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Mon, 18 Feb 2019 17:31:07 +0300 Subject: 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 --- share/qbs/imports/qbs/ModUtils/utils.js | 3 --- 1 file changed, 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"; } -- cgit v1.2.3