From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Thu, 01 May 2008 12:42:47 +0900 Subject: [U-Boot-Users] [PATCH] ColdFire: Get information from the correct GCC In-Reply-To: <1209575423-1244-1-git-send-email-Tsi-Chung.Liew@freescale.com> References: <1209575423-1244-1-git-send-email-Tsi-Chung.Liew@freescale.com> Message-ID: <48193C37.6030106@ruby.dti.ne.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Tsi-Chung Liew wrote: > cpu/mcf523x/config.mk | 2 +- > cpu/mcf52x2/config.mk | 2 +- > cpu/mcf532x/config.mk | 2 +- > cpu/mcf5445x/config.mk | 2 +- > cpu/mcf547x_8x/config.mk | 2 +- > 6 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/cpu/mcf5227x/config.mk b/cpu/mcf5227x/config.mk > index 8d60fd6..2e50696 100644 > --- a/cpu/mcf5227x/config.mk > +++ b/cpu/mcf5227x/config.mk > @@ -24,7 +24,7 @@ > # > > PLATFORM_RELFLAGS += -ffixed-d7 -msep-data > -ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2) > +ifeq ($(findstring 4.2,$(shell $(CROSS_COMPILE)gcc --version)),4.2) > PLATFORM_CPPFLAGS += -mcpu=5208 -fPIC > else > PLATFORM_CPPFLAGS += -m5307 -fPIC Let me make sure the intention of this change. With or without this change, we can always evaluate $(CROSS_COMPILE)gcc --version, right? Or am I missing something? There are several $(CC)/$(AR)/$(AS)/$(CPP) users in cpu/*/Makefile & cpu/*/config.mk. I'm wondering whether we need to fix all these usages or not. Thanks in advance, Shinya