Merge git://git.denx.de/u-boot-arc
authorTom Rini <trini@konsulko.com>
Mon, 4 Jul 2016 15:46:21 +0000 (11:46 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 4 Jul 2016 15:46:21 +0000 (11:46 -0400)
arch/arc/config.mk
arch/arc/include/asm/global_data.h

index 74943d9..7c974f0 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
index e25b966..f0242f1 100644 (file)
@@ -7,9 +7,11 @@
 #ifndef        __ASM_ARC_GLOBAL_DATA_H
 #define __ASM_ARC_GLOBAL_DATA_H
 
+#ifndef __ASSEMBLY__
 /* Architecture-specific global data */
 struct arch_global_data {
 };
+#endif /* __ASSEMBLY__ */
 
 #include <asm-generic/global_data.h>