]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arc: Use "-mcpu=archs" instead of deprecated "-marchs" for ARC HS
authorAlexey Brodkin <abrodkin@synopsys.com>
Thu, 16 Jun 2016 08:55:00 +0000 (10:55 +0200)
committerAlexey Brodkin <abrodkin@synopsys.com>
Mon, 4 Jul 2016 08:43:40 +0000 (11:43 +0300)
Newer ARC toolchains don't support "-marchs" option any longer.
Instead "-mcpu=archs" should be used. What's also important older
toiolchains that support ARC HS cores will also happily accept
"-mcpu=archs" so that's a very safe move.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/config.mk

index 74943d9ffe5cd55bf1bb82ff52cae313a9206daa..7c974f005585b29ad5b75f024dee03774ea9a3c3 100644 (file)
@@ -43,11 +43,11 @@ PLATFORM_CPPFLAGS += -marcem
 endif
 
 ifdef CONFIG_CPU_ARCHS34
-PLATFORM_CPPFLAGS += -marchs
+PLATFORM_CPPFLAGS += -mcpu=archs
 endif
 
 ifdef CONFIG_CPU_ARCHS38
-PLATFORM_CPPFLAGS += -marchs
+PLATFORM_CPPFLAGS += -mcpu=archs
 endif
 
 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2