]> git.sur5r.net Git - u-boot/blobdiff - cpu/mcf5445x/config.mk
Add support for Freescale MX25 SOC
[u-boot] / cpu / mcf5445x / config.mk
index 88433f2f6d6e04494d46b662e528ea5a1547a049..b0b49f7b2623a5b6235b71b8604ac6d202dca01a 100644 (file)
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
-ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
+ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
 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