diff options
author | Alexandre Oliva <lxoliva@fsfla.org> | 2010-09-27 12:19:17 +0000 |
---|---|---|
committer | Alexandre Oliva <lxoliva@fsfla.org> | 2010-09-27 12:19:17 +0000 |
commit | e85ea543d8393cbaa744c1062b2e29c3943f23a8 (patch) | |
tree | 86152848789e7d28b23c50f1aad8ab53d08bb5fc /lemote/gnewsense/tags/2.6.35.6-libre2-lemote_0lxo/gnewsense-binutils-flag.patch | |
parent | 2abd67babf4b4eedb84ddcbcc56baeb1e62514a8 (diff) | |
download | linux-libre-raptor-e85ea543d8393cbaa744c1062b2e29c3943f23a8.tar.gz linux-libre-raptor-e85ea543d8393cbaa744c1062b2e29c3943f23a8.zip |
2.6.35.6-libre2-lemote_0lxo
Diffstat (limited to 'lemote/gnewsense/tags/2.6.35.6-libre2-lemote_0lxo/gnewsense-binutils-flag.patch')
-rw-r--r-- | lemote/gnewsense/tags/2.6.35.6-libre2-lemote_0lxo/gnewsense-binutils-flag.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lemote/gnewsense/tags/2.6.35.6-libre2-lemote_0lxo/gnewsense-binutils-flag.patch b/lemote/gnewsense/tags/2.6.35.6-libre2-lemote_0lxo/gnewsense-binutils-flag.patch new file mode 100644 index 000000000..d58a589d6 --- /dev/null +++ b/lemote/gnewsense/tags/2.6.35.6-libre2-lemote_0lxo/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/Makefile +=================================================================== +--- arch/mips/Makefile.orig 2010-05-16 21:17:36.000000000 +0000 ++++ arch/mips/Makefile 2010-05-22 08:47:53.000000000 +0000 +@@ -138,6 +138,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 +@@ -148,6 +154,7 @@ + else + cflags-$(CONFIG_CPU_JUMP_WORKAROUNDS) += -Wa$(comma)-mfix-loongson2f-jump + endif ++ endif + endif + + cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ |