]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/Makefile
[MIPS] Check for GCC r10k-cache-barrier support
[linux-2.6-omap-h63xx.git] / arch / mips / Makefile
index 72097dacabd3fe68dbae4296199aba7f21c2c6ec..1c62381f5c230c6b42bcb7ef95ff6148df553a4e 100644 (file)
@@ -482,10 +482,13 @@ endif
 # be 16kb aligned or the handling of the current variable will break.
 # Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys
 #
-#core-$(CONFIG_SGI_IP28)               += arch/mips/sgi-ip22/ arch/mips/arc/arc_con.o
+ifdef CONFIG_SGI_IP28
+  ifeq ($(call cc-option-yn,-mr10k-cache-barrier=1), n)
+      $(error gcc doesn't support needed option -mr10k-cache-barrier=1)
+  endif
+endif
 core-$(CONFIG_SGI_IP28)                += arch/mips/sgi-ip22/
 cflags-$(CONFIG_SGI_IP28)      += -mr10k-cache-barrier=1 -Iinclude/asm-mips/mach-ip28
-#cflags-$(CONFIG_SGI_IP28)     += -Iinclude/asm-mips/mach-ip28
 load-$(CONFIG_SGI_IP28)                += 0xa800000020004000
 
 #