Merge git://git.denx.de/u-boot into u-boot
[oweals/u-boot.git] / cpu / mcf5445x / config.mk
index d0c72fb6b0e88a0bd2f45f3b92f5f254e0a9d684..67efa07af75b80641f2c7ae0024682853d0a20ac 100644 (file)
 #
 
 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
+
+ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
+ifneq (,$(findstring GOT,$(shell $(LD) --help)))
+PLATFORM_LDFLAGS += --got=single
+endif
+endif