summaryrefslogtreecommitdiffstats
path: root/target/linux/ubicom32/patches-2.6.32/140-arch_cflags.patch
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-23 10:43:53 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-23 10:43:53 +0000
commit250089c5e97cc8490a42e9885e429ff217dbd533 (patch)
tree3eac3e565ec64f61d64b536e14d9a001e2d02405 /target/linux/ubicom32/patches-2.6.32/140-arch_cflags.patch
parent9eedef7a46e7431de4b98a808503571c1a8570eb (diff)
[ubicom32]: add 2.6.32 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19823 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ubicom32/patches-2.6.32/140-arch_cflags.patch')
-rw-r--r--target/linux/ubicom32/patches-2.6.32/140-arch_cflags.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ubicom32/patches-2.6.32/140-arch_cflags.patch b/target/linux/ubicom32/patches-2.6.32/140-arch_cflags.patch
new file mode 100644
index 000000000..aa1396e41
--- /dev/null
+++ b/target/linux/ubicom32/patches-2.6.32/140-arch_cflags.patch
@@ -0,0 +1,13 @@
+--- a/arch/ubicom32/Makefile
++++ b/arch/ubicom32/Makefile
+@@ -54,8 +54,8 @@ CFLAGS_MODULE += -mno-fastcall
+ #
+ # Some CFLAG additions based on specific CPU type.
+ #
+-cflags-$(CONFIG_UBICOM32_V3) := -march=ubicom32v3 -DIP5000
+-cflags-$(CONFIG_UBICOM32_V4) := -march=ubicom32v4 -DIP7000
++cflags-$(CONFIG_UBICOM32_V3) := -march=ubicom32v3 -mno-fdpic -DIP5000
++cflags-$(CONFIG_UBICOM32_V4) := -march=ubicom32v4 -mno-fdpic -DIP7000
+
+ ldflags-$(CONFIG_LINKER_RELAXATION) := --relax
+ LDFLAGS_vmlinux := $(ldflags-y)