diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-22 18:03:05 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-22 18:03:05 -0300 |
commit | 55234351119f417fb601a250b9f9425288961fd5 (patch) | |
tree | 950230382d64c56d5c7bd2bc847d6fe613906785 /libre/linux-libre-grsec/gnewsense-binutils-flag.patch | |
parent | 35cf0e4e7fc206c8b382365503b34036a8dbf255 (diff) | |
download | abslibre-55234351119f417fb601a250b9f9425288961fd5.tar.gz abslibre-55234351119f417fb601a250b9f9425288961fd5.tar.bz2 abslibre-55234351119f417fb601a250b9f9425288961fd5.zip |
add mips64el patches for linux-libre* kernels
Diffstat (limited to 'libre/linux-libre-grsec/gnewsense-binutils-flag.patch')
-rw-r--r-- | libre/linux-libre-grsec/gnewsense-binutils-flag.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libre/linux-libre-grsec/gnewsense-binutils-flag.patch b/libre/linux-libre-grsec/gnewsense-binutils-flag.patch new file mode 100644 index 000000000..5f2d44f99 --- /dev/null +++ b/libre/linux-libre-grsec/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 + + # |