From 914f7fd938ed8b1a9abcea57325010d464cdc55e Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Wed, 12 Dec 2012 16:22:54 -0800 Subject: [PATCH] Enable lunch command to pick up new toolchain version. Otherwise the previously exported value will be sticky and the value defined in the TARGET makefile is ignored. Change-Id: I13b9cca2d288f7ab09104c57e7cad9f23de2548a --- core/combo/TARGET_linux-arm.mk | 4 +++- core/combo/TARGET_linux-mips.mk | 4 +++- core/combo/TARGET_linux-x86.mk | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk index 99b2f8c06..bc781743f 100644 --- a/core/combo/TARGET_linux-arm.mk +++ b/core/combo/TARGET_linux-arm.mk @@ -34,8 +34,10 @@ ifeq ($(strip $(TARGET_ARCH_VARIANT)),) TARGET_ARCH_VARIANT := armv5te endif -ifeq ($(strip $(TARGET_GCC_VERSION)),) +ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),) TARGET_GCC_VERSION := 4.7 +else +TARGET_GCC_VERSION := $(TARGET_GCC_VERSION_EXP) endif TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk diff --git a/core/combo/TARGET_linux-mips.mk b/core/combo/TARGET_linux-mips.mk index dc2801868..c549af922 100644 --- a/core/combo/TARGET_linux-mips.mk +++ b/core/combo/TARGET_linux-mips.mk @@ -34,8 +34,10 @@ ifeq ($(strip $(TARGET_ARCH_VARIANT)),) TARGET_ARCH_VARIANT := mips32r2-fp endif -ifeq ($(strip $(TARGET_GCC_VERSION)),) +ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),) TARGET_GCC_VERSION := 4.6 +else +TARGET_GCC_VERSION := $(TARGET_GCC_VERSION_EXP) endif TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk diff --git a/core/combo/TARGET_linux-x86.mk b/core/combo/TARGET_linux-x86.mk index 187e2c2de..01b5d0298 100644 --- a/core/combo/TARGET_linux-x86.mk +++ b/core/combo/TARGET_linux-x86.mk @@ -22,8 +22,10 @@ ifeq ($(strip $(TARGET_ARCH_VARIANT)),) TARGET_ARCH_VARIANT := x86 endif -ifeq ($(strip $(TARGET_GCC_VERSION)),) +ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),) TARGET_GCC_VERSION := 4.6 +else +TARGET_GCC_VERSION := $(TARGET_GCC_VERSION_EXP) endif # Include the arch-variant-specific configuration file.