kernel: fix plt fixup related crashes when loading kernel modules on mips, (happened...
[10.03/openwrt.git] / target / linux / generic-2.6 / patches-2.6.30 / 202-mips-freestanding.patch
1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -607,6 +607,9 @@ ifdef CONFIG_PHYSICAL_START
4  load-y                 = $(CONFIG_PHYSICAL_START)
5  endif
6  
7 +# temporary until string.h is fixed
8 +cflags-y += -ffreestanding
9 +
10  cflags-y                       += -I$(srctree)/arch/mips/include/asm/mach-generic
11  drivers-$(CONFIG_PCI)          += arch/mips/pci/
12