build: kernel: Set prefix based on KERNEL_ARCH
KERNEL_ARCH specifies the kernel architecture, not TARGET_ARCH. Change-Id: I97407caa15cacf53489e8ebb31f5c059991a9493
This commit is contained in:
parent
e7573daa4c
commit
9689bb9dba
1 changed files with 3 additions and 3 deletions
|
@ -214,11 +214,11 @@ endif
|
|||
TARGET_KERNEL_CROSS_COMPILE_PREFIX := $(strip $(TARGET_KERNEL_CROSS_COMPILE_PREFIX))
|
||||
ifneq ($(TARGET_KERNEL_CROSS_COMPILE_PREFIX),)
|
||||
KERNEL_TOOLCHAIN_PREFIX ?= $(TARGET_KERNEL_CROSS_COMPILE_PREFIX)
|
||||
else ifeq ($(TARGET_ARCH),arm64)
|
||||
else ifeq ($(KERNEL_ARCH),arm64)
|
||||
KERNEL_TOOLCHAIN_PREFIX ?= aarch64-linux-androidkernel-
|
||||
else ifeq ($(TARGET_ARCH),arm)
|
||||
else ifeq ($(KERNEL_ARCH),arm)
|
||||
KERNEL_TOOLCHAIN_PREFIX ?= arm-linux-androidkernel-
|
||||
else ifeq ($(TARGET_ARCH),x86)
|
||||
else ifeq ($(KERNEL_ARCH),x86)
|
||||
KERNEL_TOOLCHAIN_PREFIX ?= x86_64-linux-androidkernel-
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue