summaryrefslogtreecommitdiffstats
path: root/target/linux/ubicom32/patches-2.6.30/140-arch_cflags.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-17 16:21:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-17 16:21:13 +0000
commit6fd0f3502828de12aa3a30e4b3789b4616f498d3 (patch)
tree3722fba2aff85955e66689ee6a852ec6f224ab95 /target/linux/ubicom32/patches-2.6.30/140-arch_cflags.patch
parent79cdfd54568a4ef1ef67ead1bf5cd70bbd168c1e (diff)
downloadmaster-31e0f0ae-6fd0f3502828de12aa3a30e4b3789b4616f498d3.tar.gz
master-31e0f0ae-6fd0f3502828de12aa3a30e4b3789b4616f498d3.tar.bz2
master-31e0f0ae-6fd0f3502828de12aa3a30e4b3789b4616f498d3.zip
ubicom32: add a 2.6.30 patch contributed by ubicom, with my cleanups and fixes split out into separate patches
SVN-Revision: 18806
Diffstat (limited to 'target/linux/ubicom32/patches-2.6.30/140-arch_cflags.patch')
-rw-r--r--target/linux/ubicom32/patches-2.6.30/140-arch_cflags.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ubicom32/patches-2.6.30/140-arch_cflags.patch b/target/linux/ubicom32/patches-2.6.30/140-arch_cflags.patch
new file mode 100644
index 0000000000..aa1396e419
--- /dev/null
+++ b/target/linux/ubicom32/patches-2.6.30/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)