[U-Boot-Users] [PATCH] ColdFire: Get information from the correct GCC

Shinya Kuribayashi skuribay at ruby.dti.ne.jp
Thu May 1 05:42:47 CEST 2008


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





More information about the U-Boot mailing list