--- linux-2.6.28/arch/mips/Makefile
+++ linux-2.6.28/arch/mips/Makefile
@@ -647,6 +647,9 @@
 # cflags-$(CONFIG_AMAZON_S) += -save-temps
 load-$(CONFIG_AMAZON_S) += 0xFFFFFFFF80002000
 
+# temporary until string.h is fixed
+cflags-y += -ffreestanding
+
 cflags-y			+= -I$(srctree)/arch/mips/include/asm/mach-generic
 drivers-$(CONFIG_PCI)		+= arch/mips/pci/
 
