MIPS: Build microMIPS VDSO for microMIPS kernels

This change “MIPS: Build microMIPS VDSO for microMIPS kernels” in Linux kernel is authored by James Hogan <james.hogan [at] imgtec.com> on Tue May 24 09:35:11 2016 +0100.

MIPS: Build microMIPS VDSO for microMIPS kernels

MicroMIPS kernels may be expected to run on microMIPS only cores which
don't support the normal MIPS instruction set, so be sure to pass the
-mmicromips flag through to the VDSO cflags.

Fixes: ebb5e78cc634 ("MIPS: Initial implementation of a VDSO")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 4.4.x-
Patchwork: https://patchwork.linux-mips.org/patch/13349/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases including commit bb93078.

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/mips/vdso/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/vdso/Makefile b/arch/mips/vdso/Makefile
index fff01ed..3b4538e 100644
--- a/arch/mips/vdso/Makefile
+++ b/arch/mips/vdso/Makefile
@@ -5,6 +5,7 @@ obj-vdso-y := elf.o gettimeofday.o sigreturn.o
 ccflags-vdso := 
 	$(filter -I%,$(KBUILD_CFLAGS)) 
 	$(filter -E%,$(KBUILD_CFLAGS)) 
+	$(filter -mmicromips,$(KBUILD_CFLAGS)) 
 	$(filter -march=%,$(KBUILD_CFLAGS))
 cflags-vdso := $(ccflags-vdso) 
 	$(filter -W%,$(filter-out -Wa$(comma)%,$(KBUILD_CFLAGS))) 

The commit for this change in Linux stable tree is bb93078 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *