Merge branch 'master' of git://www.denx.de/git/u-boot-video
[oweals/u-boot.git] / cpu / mcf5445x / config.mk
index d0c72fb6b0e88a0bd2f45f3b92f5f254e0a9d684..88433f2f6d6e04494d46b662e528ea5a1547a049 100644 (file)
@@ -24,4 +24,8 @@
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
+ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
+PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
+else
 PLATFORM_CPPFLAGS += -m5407 -fPIC
+endif