Makefile: Set compilers path to default Linux
This commit is contained in:
parent
71dd258dd9
commit
cdbd1bbbf2
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
|
@ -311,7 +311,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
|
||||||
# Default value for CROSS_COMPILE is not to prefix executables
|
# Default value for CROSS_COMPILE is not to prefix executables
|
||||||
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
|
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
|
||||||
ARCH ?=arm64
|
ARCH ?=arm64
|
||||||
CROSS_COMPILE= $(srctree)/toolchain/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
|
CROSS_COMPILE ?=$(CONFIG_CROSS_COMPILE:"%"=%)
|
||||||
|
|
||||||
# Architecture as present in compile.h
|
# Architecture as present in compile.h
|
||||||
UTS_MACHINE := $(ARCH)
|
UTS_MACHINE := $(ARCH)
|
||||||
|
|
@ -373,7 +373,7 @@ HOST_LOADLIBES := $(HOST_LFS_LIBS)
|
||||||
AS = $(CROSS_COMPILE)as
|
AS = $(CROSS_COMPILE)as
|
||||||
LD = $(CROSS_COMPILE)ld
|
LD = $(CROSS_COMPILE)ld
|
||||||
LDGOLD = $(CROSS_COMPILE)ld.gold
|
LDGOLD = $(CROSS_COMPILE)ld.gold
|
||||||
CC = $(srctree)/toolchain/clang/host/linux-x86/clang-4639204/bin/clang
|
CC = $(CROSS_COMPILE)gcc
|
||||||
CPP = $(CC) -E
|
CPP = $(CC) -E
|
||||||
AR = $(CROSS_COMPILE)ar
|
AR = $(CROSS_COMPILE)ar
|
||||||
NM = $(CROSS_COMPILE)nm
|
NM = $(CROSS_COMPILE)nm
|
||||||
|
|
@ -507,7 +507,7 @@ endif
|
||||||
|
|
||||||
ifeq ($(cc-name),clang)
|
ifeq ($(cc-name),clang)
|
||||||
ifneq ($(CROSS_COMPILE),)
|
ifneq ($(CROSS_COMPILE),)
|
||||||
CLANG_TRIPLE ?= $(srctree)/toolchain/clang/host/linux-x86/clang-4639204/bin/aarch64-linux-gnu-
|
CLANG_TRIPLE ?= $(CROSS_COMPILE)
|
||||||
CLANG_FLAGS := --target=$(notdir $(CLANG_TRIPLE:%-=%))
|
CLANG_FLAGS := --target=$(notdir $(CLANG_TRIPLE:%-=%))
|
||||||
ifeq ($(shell $(srctree)/scripts/clang-android.sh $(CC) $(CLANG_FLAGS)), y)
|
ifeq ($(shell $(srctree)/scripts/clang-android.sh $(CC) $(CLANG_FLAGS)), y)
|
||||||
$(error "Clang with Android --target detected. Did you specify CLANG_TRIPLE?")
|
$(error "Clang with Android --target detected. Did you specify CLANG_TRIPLE?")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue