Switch to kernel 3.3.8(solo2)
[vuplus_openvuplus] / meta-bsp / common / recipes / linux / linux-vuplus-3.3.8 / bmips-no-array-bounds.patch
diff --git a/meta-bsp/common/recipes/linux/linux-vuplus-3.3.8/bmips-no-array-bounds.patch b/meta-bsp/common/recipes/linux/linux-vuplus-3.3.8/bmips-no-array-bounds.patch
new file mode 100644 (file)
index 0000000..c372fd3
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/arch/mips/Makefile b/arch/mips/Makefile
+index 4fedf5a..e7f3f34 100644
+--- a/arch/mips/Makefile
++++ b/arch/mips/Makefile
+@@ -157,7 +157,7 @@ ifeq (,$(findstring march=octeon, $(cflags-$(CONFIG_CPU_CAVIUM_OCTEON))))
+ cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -Wa,-march=octeon
+ endif
+ cflags-$(CONFIG_CAVIUM_CN63XXP1) += -Wa,-mfix-cn63xxp1
+-cflags-$(CONFIG_CPU_BMIPS)    += -march=mips32 -Wa,-mips32 -Wa,--trap
++cflags-$(CONFIG_CPU_BMIPS)    += -march=mips32 -Wa,-mips32 -Wa,--trap -Wno-array-bounds
+ cflags-$(CONFIG_CPU_R4000_WORKAROUNDS)        += $(call cc-option,-mfix-r4000,)
+ cflags-$(CONFIG_CPU_R4400_WORKAROUNDS)        += $(call cc-option,-mfix-r4400,)