Skip to content
Snippets Groups Projects
Commit f9d877a6 authored by TsiChung Liew's avatar TsiChung Liew
Browse files

ColdFire: Add CPU compile flag for mcf5301x and mcf532x


Add CPU compile flag -mcpu=53015 in cpu/config.mk

Signed-off-by: default avatarTsiChung Liew <tsicliew@gmail.com>
parent 0e8a7555
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,20 @@ ...@@ -24,8 +24,20 @@
# #
PLATFORM_RELFLAGS += -ffixed-d7 -msep-data PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
is5301x:=$(shell grep CONFIG_MCF5301x $(TOPDIR)/include/$(cfg))
is532x:=$(shell grep CONFIG_MCF532x $(TOPDIR)/include/$(cfg))
ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1) ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x)))
PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC
endif
ifneq (,$(findstring CONFIG_MCF532x,$(is532x)))
PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC
endif
else else
PLATFORM_CPPFLAGS += -m5307 -fPIC PLATFORM_CPPFLAGS += -m5307 -fPIC
endif endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment