Point arm toolchain to the new gcc-4.6 one.
Tested build mysid-eng, sojus-eng, trygon-eng, yakju-eng. Change-Id: I742cf9fcf2407b9098c99136d67161ecf062ac01 Conflicts: core/combo/TARGET_linux-arm.mk
This commit is contained in:
parent
c7a10ddd31
commit
1f87795eef
4 changed files with 11 additions and 9 deletions
|
@ -43,7 +43,7 @@ include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
|
|||
|
||||
# You can set TARGET_TOOLS_PREFIX to get gcc from somewhere else
|
||||
ifeq ($(strip $(TARGET_TOOLS_PREFIX)),)
|
||||
TARGET_TOOLCHAIN_ROOT := prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-linux-androideabi-4.4.x
|
||||
TARGET_TOOLCHAIN_ROOT := prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-linux-androideabi-4.6
|
||||
TARGET_TOOLS_PREFIX := $(TARGET_TOOLCHAIN_ROOT)/bin/arm-linux-androideabi-
|
||||
endif
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@ ABP:=$(PWD)/$(HOST_OUT_EXECUTABLES)
|
|||
endif
|
||||
|
||||
# Add the ARM toolchain bin dir if it actually exists
|
||||
ifneq ($(wildcard $(PWD)/prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-linux-androideabi-4.4.x/bin),)
|
||||
ifneq ($(wildcard $(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-linux-androideabi-4.6/bin),)
|
||||
# this should be copied to HOST_OUT_EXECUTABLES instead
|
||||
ABP:=$(ABP):$(PWD)/prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-linux-androideabi-4.4.x/bin
|
||||
ABP:=$(ABP):$(PWD)/prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-linux-androideabi-4.6/bin
|
||||
endif
|
||||
|
||||
# Add the x86 toolchain bin dir if it actually exists
|
||||
|
@ -22,6 +22,7 @@ ifneq ($(wildcard $(PWD)/prebuilt/$(HOST_PREBUILT_TAG)/toolchain/i686-android-li
|
|||
endif
|
||||
ANDROID_BUILD_PATHS := $(ABP)
|
||||
ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG)
|
||||
ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG)
|
||||
|
||||
# The "dumpvar" stuff lets you say something like
|
||||
#
|
||||
|
|
|
@ -112,12 +112,13 @@ function setpaths()
|
|||
# and in with the new
|
||||
CODE_REVIEWS=
|
||||
prebuiltdir=$(getprebuilt)
|
||||
gccprebuiltdir=$(get_abs_build_var ANDROID_GCC_PREBUILTS)
|
||||
|
||||
# The gcc toolchain does not exists for windows/cygwin. In this case, do not reference it.
|
||||
export ANDROID_EABI_TOOLCHAIN=
|
||||
toolchaindir=toolchain/arm-linux-androideabi-4.4.x/bin
|
||||
if [ -d "$prebuiltdir/$toolchaindir" ]; then
|
||||
export ANDROID_EABI_TOOLCHAIN=$prebuiltdir/$toolchaindir
|
||||
toolchaindir=arm/arm-linux-androideabi-4.6/bin
|
||||
if [ -d "$gccprebuiltdir/$toolchaindir" ]; then
|
||||
export ANDROID_EABI_TOOLCHAIN=$gccprebuiltdir/$toolchaindir
|
||||
fi
|
||||
|
||||
export ARM_EABI_TOOLCHAIN=
|
||||
|
|
|
@ -144,13 +144,13 @@ def SetupToolsPath():
|
|||
uname = "darwin-ppc"
|
||||
elif uname == "Linux":
|
||||
uname = "linux-x86"
|
||||
prefix = "./prebuilt/" + uname + "/toolchain/arm-linux-androideabi-4.4.x/bin/"
|
||||
prefix = "./prebuilts/gcc/" + uname + "/arm/arm-linux-androideabi-4.6/bin/"
|
||||
addr2line_cmd = prefix + "arm-linux-androideabi-addr2line"
|
||||
|
||||
if (not os.path.exists(addr2line_cmd)):
|
||||
try:
|
||||
prefix = os.environ['ANDROID_BUILD_TOP'] + "/prebuilt/" + uname + \
|
||||
"/toolchain/arm-linux-androideabi-4.4.x/bin/"
|
||||
prefix = os.environ['ANDROID_BUILD_TOP'] + "/prebuilts/gcc/" + \
|
||||
uname + "/arm/arm-linux-androideabi-4.6/bin/"
|
||||
except:
|
||||
prefix = "";
|
||||
|
||||
|
|
Loading…
Reference in a new issue