OSDN Git Service

MIPS: vdso: Allow clang's --target flag in VDSO cflags
authorPaul Burton <paul.burton@mips.com>
Mon, 6 Aug 2018 22:24:27 +0000 (15:24 -0700)
committerPaul Burton <paul.burton@mips.com>
Mon, 6 Aug 2018 22:53:33 +0000 (15:53 -0700)
commitee67855ecd9d02da348af11ec8474698b886a0e6
tree1c5d74afd7dbbae3167eb2f59d0703965eb9e3fe
parent4467f7ad7dbb0af5136fadb32dba37bc0388194f
MIPS: vdso: Allow clang's --target flag in VDSO cflags

The MIPS VDSO code filters out a subset of known-good flags from
KBUILD_CFLAGS to use when building VDSO libraries. When we build using
clang we need to allow the --target flag through, otherwise we'll
generally attempt to build the VDSO for the architecture of the build
machine rather than for MIPS.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20154/
Cc: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
arch/mips/vdso/Makefile