]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vdso32: Pass '--target' option to clang via VDSO_CAFLAGS
authorWill Deacon <will@kernel.org>
Mon, 7 Oct 2019 11:27:59 +0000 (12:27 +0100)
committerWill Deacon <will@kernel.org>
Mon, 7 Oct 2019 12:32:09 +0000 (13:32 +0100)
commit2ecb73f03f574aa8b38aac64d4144c41c16f6c33
tree6b2b1d915ee5b0d8256dde49b786493a1f222d01
parente4a4498fcea3aacb210550465f19d11f8a43d23e
arm64: vdso32: Pass '--target' option to clang via VDSO_CAFLAGS

Directly passing the '--target' option to clang by appending to
COMPATCC does not work if COMPATCC has been specified explicitly as
an argument to Make unless the 'override' directive is used, which is
ugly and different to what is done in the top-level Makefile.

Move the '--target' option for clang out of COMPATCC and into
VDSO_CAFLAGS, where it will be picked up when compiling and assembling
the 32-bit vDSO under clang.

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