add models, vusolo/vuuno/vuultimo/vusolo2/vuduo2
[vuplus_openvuplus] / meta-bsp / vuduo2 / recipes / linux / linux-vuplus-2.6.37 / bmips-no-array-bounds.patch
diff --git a/meta-bsp/vuduo2/recipes/linux/linux-vuplus-2.6.37/bmips-no-array-bounds.patch b/meta-bsp/vuduo2/recipes/linux/linux-vuplus-2.6.37/bmips-no-array-bounds.patch
new file mode 100644 (file)
index 0000000..09ad253
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/arch/mips/Makefile b/arch/mips/Makefile
+index 7c1102e..70e029e 100644
+--- a/arch/mips/Makefile
++++ b/arch/mips/Makefile
+@@ -162,6 +162,8 @@ cflags-$(CONFIG_CPU_R4000_WORKAROUNDS)     += $(call cc-option,-mfix-r4000,)
+ cflags-$(CONFIG_CPU_R4400_WORKAROUNDS)        += $(call cc-option,-mfix-r4400,)
+ cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS)        += $(call cc-option,-mno-daddi,)
++cflags-$(CONFIG_BRCMSTB) += -Wno-array-bounds -Wno-unused-but-set-variable
++
+ ifdef CONFIG_CPU_SB1
+ ifdef CONFIG_SB1_PASS_1_WORKAROUNDS
+ KBUILD_AFLAGS_MODULE += -msb1-pass1-workarounds