summaryrefslogtreecommitdiffstats
path: root/lemote/gnewsense/tags/3.10.18-gnu_0loongsonlibre/gnewsense-binutils-flag.patch
diff options
context:
space:
mode:
authorAlexandre Oliva <lxoliva@fsfla.org>2013-11-05 21:59:53 +0000
committerAlexandre Oliva <lxoliva@fsfla.org>2013-11-05 21:59:53 +0000
commitaa78ab79c6cadbb0d7df71f38fdf8392704ecdbb (patch)
tree0c1ba0a9d3c6865dc14959e56f280b2b9dda52a5 /lemote/gnewsense/tags/3.10.18-gnu_0loongsonlibre/gnewsense-binutils-flag.patch
parent49cd7f5619205a83225232d7b31aeec912f74aa8 (diff)
downloadlinux-libre-raptor-aa78ab79c6cadbb0d7df71f38fdf8392704ecdbb.tar.gz
linux-libre-raptor-aa78ab79c6cadbb0d7df71f38fdf8392704ecdbb.zip
3.10.18-gnu_0loongsonlibre
Diffstat (limited to 'lemote/gnewsense/tags/3.10.18-gnu_0loongsonlibre/gnewsense-binutils-flag.patch')
-rw-r--r--lemote/gnewsense/tags/3.10.18-gnu_0loongsonlibre/gnewsense-binutils-flag.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/lemote/gnewsense/tags/3.10.18-gnu_0loongsonlibre/gnewsense-binutils-flag.patch b/lemote/gnewsense/tags/3.10.18-gnu_0loongsonlibre/gnewsense-binutils-flag.patch
new file mode 100644
index 000000000..5f2d44f99
--- /dev/null
+++ b/lemote/gnewsense/tags/3.10.18-gnu_0loongsonlibre/gnewsense-binutils-flag.patch
@@ -0,0 +1,28 @@
+Our binutils somehow ended up with a -mfix-gs2f-kernel, rather than
+-mfix-ls2f-kernel. Cope with it.
+
+Index: arch/mips/loongson/Platform
+===================================================================
+--- arch/mips/loongson/Platform.orig 2010-10-25 19:09:49.000000000 +0000
++++ arch/mips/loongson/Platform 2010-10-25 19:10:44.000000000 +0000
+@@ -10,6 +10,12 @@
+ $(call cc-option,-march=loongson2f,-march=r4600)
+ # Enable the workarounds for Loongson2f
+ ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS
++ ifneq ($(call as-option,-Wa$(comma)-mfix-gs2f-kernel,),)
++ cflags-$(CONFIG_CPU_NOP_WORKAROUNDS) += -Wa$(comma)-mfix-gs2f-kernel
++ ifneq ($(CONFIG_CPU_NOP_WORKAROUNDS),$(CONFIG_CPU_JUMP_WORKAROUNDS))
++ cflags-$(CONFIG_CPU_JUMP_WORKAROUNDS) += -Wa$(comma)-mfix-gs2f-kernel
++ endif
++ else
+ ifeq ($(call as-option,-Wa$(comma)-mfix-loongson2f-nop,),)
+ $(error only binutils >= 2.20.2 have needed option -mfix-loongson2f-nop)
+ else
+@@ -20,6 +26,7 @@
+ else
+ cflags-$(CONFIG_CPU_JUMP_WORKAROUNDS) += -Wa$(comma)-mfix-loongson2f-jump
+ endif
++ endif
+ endif
+
+ #
OpenPOWER on IntegriCloud