From: Guillaume Tucker Date: Tue, 9 Aug 2022 14:22:31 +0000 (+0200) Subject: selftests: fix LLVM build for i386 and x86_64 X-Git-Tag: baikal/mips/sdk6.1~165 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=c374071936b0cb3b8a2cac66a891a81c77c86df9;p=kernel.git selftests: fix LLVM build for i386 and x86_64 [ Upstream commit f08af57aff59154aadd88f35cd56eb4e1ee6defd ] Add missing cases for the i386 and x86_64 architectures when determining the LLVM target for building kselftest. Fixes: 50de0bb4ad44 ("selftests: Fix clang cross compilation") Signed-off-by: Guillaume Tucker Reviewed-by: Nathan Chancellor Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index f7900e75d2306..05400462c7799 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -10,12 +10,14 @@ endif CLANG_TARGET_FLAGS_arm := arm-linux-gnueabi CLANG_TARGET_FLAGS_arm64 := aarch64-linux-gnu CLANG_TARGET_FLAGS_hexagon := hexagon-linux-musl +CLANG_TARGET_FLAGS_i386 := i386-linux-gnu CLANG_TARGET_FLAGS_m68k := m68k-linux-gnu CLANG_TARGET_FLAGS_mips := mipsel-linux-gnu CLANG_TARGET_FLAGS_powerpc := powerpc64le-linux-gnu CLANG_TARGET_FLAGS_riscv := riscv64-linux-gnu CLANG_TARGET_FLAGS_s390 := s390x-linux-gnu CLANG_TARGET_FLAGS_x86 := x86_64-linux-gnu +CLANG_TARGET_FLAGS_x86_64 := x86_64-linux-gnu CLANG_TARGET_FLAGS := $(CLANG_TARGET_FLAGS_$(ARCH)) ifeq ($(CROSS_COMPILE),)