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 <lijuang@codeaurora.org>
  • Loading branch information
lijuang committed Oct 30, 2019
1 parent f0f5319 commit e477fee
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 @@ -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
Expand Down

0 comments on commit e477fee

Please sign in to comment.