]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vdso32: Don't use KBUILD_CPPFLAGS unconditionally
authorWill Deacon <will@kernel.org>
Fri, 4 Oct 2019 14:44:45 +0000 (15:44 +0100)
committerWill Deacon <will@kernel.org>
Mon, 7 Oct 2019 12:32:05 +0000 (13:32 +0100)
commite4a4498fcea3aacb210550465f19d11f8a43d23e
tree3b0a4f0a4a7554cb367077614d343389e3eff79e
parent0c85976188e9431673e0fb194a41dfc15fb160f9
arm64: vdso32: Don't use KBUILD_CPPFLAGS unconditionally

KBUILD_CPPFLAGS is defined differently depending on whether the main
compiler is clang or not. This means that it is not possible to build
the compat vDSO with GCC if the rest of the kernel is built with clang.

Define VDSO_CPPFLAGS directly to break this dependency and allow a clang
kernel to build a compat vDSO with GCC:

  $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
    CROSS_COMPILE_COMPAT=arm-linux-gnueabihf- CC=clang \
    COMPATCC=arm-linux-gnueabihf-gcc

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/vdso32/Makefile