From: Ralf Baechle Date: Thu, 19 Feb 2015 12:47:20 +0000 (+0100) Subject: MIPS: Makefile: Pass -march option on Loongson3A cores X-Git-Tag: fixes-v4.0-rc1~21^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8140f36af2a8b63fd507bd8c1fa00df7819e0de;p=pandora-kernel.git MIPS: Makefile: Pass -march option on Loongson3A cores The loongson 3A cores do not select a suitable -march option so the build system uses the default one from the toolchain. This may or may not be suitable for a loongson 3A build. In order to avoid that, we explicitly set a suitable -march option for that core. Furthermore, some very old compilers don't support -march= at all and there is the possibility of toolchain combinations such as GCC 4.9 and binutils 2.24 for which -march=loongson3a will result in MIPS64 R2 code being generated but then rejected by GAS. So treat the Longsoon 3A as an R2 CPU. Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed