mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
rk: Makefile set default CROSS_COMPILE for arm64
Change-Id: Ic56c2d521c971ebd6dc425cfdb32258492234000 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
5
Makefile
5
Makefile
@@ -320,6 +320,11 @@ include scripts/subarch.include
|
||||
# Default value for CROSS_COMPILE is not to prefix executables
|
||||
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
|
||||
ARCH ?= $(SUBARCH)
|
||||
ifeq ($(ARCH),arm64)
|
||||
ifneq ($(wildcard $(srctree)/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9),)
|
||||
CROSS_COMPILE ?= $(srctree)/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
|
||||
endif
|
||||
endif
|
||||
|
||||
# Architecture as present in compile.h
|
||||
UTS_MACHINE := $(ARCH)
|
||||
|
||||
Reference in New Issue
Block a user