|
@@ -29,15 +29,9 @@ cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/
|
|
is5301x:=$(shell grep CONFIG_MCF5301x $(TOPDIR)/include/$(cfg))
|
|
is5301x:=$(shell grep CONFIG_MCF5301x $(TOPDIR)/include/$(cfg))
|
|
is532x:=$(shell grep CONFIG_MCF532x $(TOPDIR)/include/$(cfg))
|
|
is532x:=$(shell grep CONFIG_MCF532x $(TOPDIR)/include/$(cfg))
|
|
|
|
|
|
-ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
|
|
|
|
-
|
|
|
|
ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x)))
|
|
ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x)))
|
|
PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC
|
|
PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC
|
|
endif
|
|
endif
|
|
ifneq (,$(findstring CONFIG_MCF532x,$(is532x)))
|
|
ifneq (,$(findstring CONFIG_MCF532x,$(is532x)))
|
|
PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC
|
|
PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC
|
|
endif
|
|
endif
|
|
-
|
|
|
|
-else
|
|
|
|
-PLATFORM_CPPFLAGS += -m5307 -fPIC
|
|
|
|
-endif
|
|
|