[U-Boot] Bug in mcf547x_8x/config.mk

Hi,
I'm not sure what is the purpose of the code below, found in u-boot-2010.06/arch/m68k/cpu/mcf547x_8x/config.mk
26 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data 27 ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1) 28 PLATFORM_CPPFLAGS += -mcpu=5485 -fPIC 29 else 30 PLATFORM_CPPFLAGS += -m5407 -fPIC 31 endif
Either it filters out all 4.1.x gcc versions or all x.4.1. I tend to belive it's the first one. In this case, line 27 should be 27 ifneq ($(findstring 4.1.,$(shell $(CC) --version)),4.1.) Notice the extra dot.

Fix the fallback to -m5407 arch when gcc 4.1.x is detected.
Signed-off-by: Marius Groleo groleo@gmail.com --- arch/m68k/cpu/mcf547x_8x/config.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/m68k/cpu/mcf547x_8x/config.mk b/arch/m68k/cpu/mcf547x_8x/config.mk index 83102ab..9cc0783 100644 --- a/arch/m68k/cpu/mcf547x_8x/config.mk +++ b/arch/m68k/cpu/mcf547x_8x/config.mk @@ -24,7 +24,7 @@ #
PLATFORM_RELFLAGS += -ffixed-d7 -msep-data -ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1) +ifneq ($(findstring 4.1.,$(shell $(CC) --version)),4.1.) PLATFORM_CPPFLAGS += -mcpu=5485 -fPIC else PLATFORM_CPPFLAGS += -m5407 -fPIC -- 1.7.0.4
participants (1)
-
Groleo Marius