[arch][arm] Don't use the arm64 compiler to compile arm code

When compiling a component in arm mode within an arm64 kernel
TOOLCHAIN_PREFIX points to the arm64 compiler and should not
be used here.

Change-Id: I78ac1112826b5fdda325b370779226cfe699f70e
This commit is contained in:
Arve Hjønnevåg
2016-05-26 21:22:40 -07:00
committed by Travis Geiselbrecht
parent 692b75138c
commit 060236b7ed

View File

@@ -4,12 +4,17 @@ ARCH_arm_TOOLCHAIN_INCLUDED := 1
# try to find the toolchain
ifndef ARCH_arm_TOOLCHAIN_PREFIX
FOUNDTOOL=
$(info $(TOOLCHAIN_PREFIX))
# if TOOLCHAIN_PREFIX is not empty, try to use it first
# if TOOLCHAIN_PREFIX is not empty and ARCH_arm64_TOOLCHAIN_PREFIX is empty,
# try to use TOOLCHAIN_PREFIX first
ifneq ($(TOOLCHAIN_PREFIX),)
ifeq ($(ARCH_arm64_TOOLCHAIN_PREFIX),)
ARCH_arm_TOOLCHAIN_PREFIX := $(TOOLCHAIN_PREFIX)
FOUNDTOOL=$(shell which $(ARCH_arm_TOOLCHAIN_PREFIX)gcc)
endif
endif
# try a series of common arm toolchain prefixes in the path
ifeq ($(FOUNDTOOL),)