diff --git a/AndroidKernel.mk b/AndroidKernel.mk index a1d51ed8edaa5..1ba0b65f2adc4 100644 --- a/AndroidKernel.mk +++ b/AndroidKernel.mk @@ -76,7 +76,11 @@ KERNEL_GCC_NOANDROID_CHK := $(shell (echo "int main() {return 0;}" | $(KERNEL_CR real_cc := ifeq ($(KERNEL_LLVM_SUPPORT),true) -real_cc := REAL_CC=$(KERNEL_LLVM_BIN) CLANG_TRIPLE=aarch64-linux-gnu- + ifeq ($(KERNEL_ARCH), arm64) + real_cc := REAL_CC=$(KERNEL_LLVM_BIN) CLANG_TRIPLE=aarch64-linux-gnu- + else + real_cc := REAL_CC=$(KERNEL_LLVM_BIN) CLANG_TRIPLE=arm-linux-gnueabihf + endif else ifeq ($(strip $(KERNEL_GCC_NOANDROID_CHK)),0) KERNEL_CFLAGS := KCFLAGS=-mno-android