]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.5.7/mips-loongson-3-fix-build-error-after-ld-version.sh-modification.patch
Linux 4.14.95
[thirdparty/kernel/stable-queue.git] / releases / 4.5.7 / mips-loongson-3-fix-build-error-after-ld-version.sh-modification.patch
CommitLineData
0f1e1820
GKH
1From 820880cdba0137baff6cc0e828c3c418c363ae44 Mon Sep 17 00:00:00 2001
2From: Huacai Chen <chenhc@lemote.com>
3Date: Thu, 17 Mar 2016 20:41:06 +0800
4Subject: MIPS: Loongson-3: Fix build error after ld-version.sh modification
5
6From: Huacai Chen <chenhc@lemote.com>
7
8commit 820880cdba0137baff6cc0e828c3c418c363ae44 upstream.
9
10Commit d5ece1cb074b2c ("Fix ld-version.sh to handle large 3rd version
11part") modifies the ld version description. This causes a build error
12on Loongson-3, so fix it.
13
14Signed-off-by: Huacai Chen <chenhc@lemote.com>
15Cc: Aurelien Jarno <aurelien@aurel32.net>
16Cc: Steven J . Hill <sjhill@realitydiluted.com>
17Cc: Fuxin Zhang <zhangfx@lemote.com>
18Cc: Zhangjin Wu <wuzhangjin@gmail.com>
19Cc: Huacai Chen <chenhc@lemote.com>
20Cc: linux-mips@linux-mips.org
21Patchwork: https://patchwork.linux-mips.org/patch/12890/
22Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
23Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24
25---
26 arch/mips/loongson64/Platform | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29--- a/arch/mips/loongson64/Platform
30+++ b/arch/mips/loongson64/Platform
31@@ -31,7 +31,7 @@ cflags-$(CONFIG_CPU_LOONGSON3) += -Wa,--
32 # can't easily be used safely within the kbuild framework.
33 #
34 ifeq ($(call cc-ifversion, -ge, 0409, y), y)
35- ifeq ($(call ld-ifversion, -ge, 22500000, y), y)
36+ ifeq ($(call ld-ifversion, -ge, 225000000, y), y)
37 cflags-$(CONFIG_CPU_LOONGSON3) += \
38 $(call cc-option,-march=loongson3a -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64)
39 else