Patchwork [U-Boot] Fix M548x gcc 4.1.x detection

login
register
mail settings
Submitter Groleo Marius
Date Aug. 13, 2010, 7:11 a.m.
Message ID <AANLkTimMeJPBJJP26_drTFWTdAPocTy+-aRFBfJQVNM5@mail.gmail.com>
Download mbox | patch
Permalink /patch/71814/
State Superseded
Delegated to: Jason Jin
Headers show

Comments

Groleo Marius - Aug. 13, 2010, 7:11 a.m.
Fix the M548x falback 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(-)

Patch

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