Skip to content

Commit

Permalink
AndroidKernel: For support 32-bit kernel compile
Browse files Browse the repository at this point in the history
This file only support arm64 kernel compile currently, now we need
to supprot arm kenrel compile, so add this change.

Change-Id: I171ead43c9450886d9e096fc58a2729dee3439a1
Signed-off-by: lijuang <[email protected]>
  • Loading branch information
lijuang authored and Naitik Bharadiya committed Jan 31, 2020
1 parent 0ca7a05 commit 148fe3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AndroidKernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,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
Expand Down

0 comments on commit 148fe3c

Please sign in to comment.