Define TARGET_GCC_VERSION in target specific make files.
So that GCC refresh can be performed in a target specific way. Change-Id: I867e8b8fd671bef8c5af300e657a6da4fface032
This commit is contained in:
parent
a303510f13
commit
054ffd2e7c
5 changed files with 14 additions and 7 deletions
|
@ -34,6 +34,10 @@ ifeq ($(strip $(TARGET_ARCH_VARIANT)),)
|
|||
TARGET_ARCH_VARIANT := armv5te
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(TARGET_GCC_VERSION)),)
|
||||
TARGET_GCC_VERSION := 4.6
|
||||
endif
|
||||
|
||||
TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk
|
||||
ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
|
||||
$(error Unknown ARM architecture version: $(TARGET_ARCH_VARIANT))
|
||||
|
|
|
@ -34,6 +34,10 @@ ifeq ($(strip $(TARGET_ARCH_VARIANT)),)
|
|||
TARGET_ARCH_VARIANT := mips32r2-fp
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(TARGET_GCC_VERSION)),)
|
||||
TARGET_GCC_VERSION := 4.6
|
||||
endif
|
||||
|
||||
TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk
|
||||
ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
|
||||
$(error Unknown MIPS architecture variant: $(TARGET_ARCH_VARIANT))
|
||||
|
|
|
@ -22,6 +22,10 @@ ifeq ($(strip $(TARGET_ARCH_VARIANT)),)
|
|||
TARGET_ARCH_VARIANT := x86
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(TARGET_GCC_VERSION)),)
|
||||
TARGET_GCC_VERSION := 4.6
|
||||
endif
|
||||
|
||||
# Include the arch-variant-specific configuration file.
|
||||
# Its role is to define various ARCH_X86_HAVE_XXX feature macros,
|
||||
# plus initial values for TARGET_GLOBAL_CFLAGS
|
||||
|
|
|
@ -225,11 +225,6 @@ ifeq ($(TARGET_CPU_ABI),)
|
|||
endif
|
||||
TARGET_CPU_ABI2 := $(strip $(TARGET_CPU_ABI2))
|
||||
|
||||
# default target GCC version
|
||||
ifeq ($(strip $(TARGET_GCC_VERSION)),)
|
||||
TARGET_GCC_VERSION := 4.6
|
||||
endif
|
||||
|
||||
# $(1): os/arch
|
||||
define select-android-config-h
|
||||
build/core/combo/include/arch/$(1)/AndroidConfig.h
|
||||
|
|
|
@ -124,11 +124,11 @@ function setpaths()
|
|||
export ANDROID_EABI_TOOLCHAIN=
|
||||
local ARCH=$(get_build_var TARGET_ARCH)
|
||||
case $ARCH in
|
||||
x86) toolchaindir=x86/i686-linux-android-4.6/bin
|
||||
x86) toolchaindir=x86/i686-linux-android-$targetgccversion/bin
|
||||
;;
|
||||
arm) toolchaindir=arm/arm-linux-androideabi-$targetgccversion/bin
|
||||
;;
|
||||
mips) toolchaindir=mips/mipsel-linux-android-4.6/bin
|
||||
mips) toolchaindir=mips/mipsel-linux-android-$targetgccversion/bin
|
||||
;;
|
||||
*)
|
||||
echo "Can't find toolchain for unknown architecture: $ARCH"
|
||||
|
|
Loading…
Reference in a new issue