From b1da4d8277bc0d2cafb13a0d8c3760be7a2b3877 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 8 Oct 2009 16:35:34 +0000 Subject: [PATCH] 2009-10-08 Jie Zhang * bfin/Makefile.in (basiccrt.o, basiccrts.o): Use -mcpu=bf532-any for the default multilib. --- libgloss/ChangeLog | 5 +++++ libgloss/bfin/Makefile.in | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index e53e07abf..2f9f36296 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,8 @@ +2009-10-08 Jie Zhang + + * bfin/Makefile.in (basiccrt.o, basiccrts.o): Use + -mcpu=bf532-any for the default multilib. + 2009-09-28 Michael Eager * configure.in: Add microblaze-*-*. diff --git a/libgloss/bfin/Makefile.in b/libgloss/bfin/Makefile.in index 91a9b54c9..3ab3a18c1 100644 --- a/libgloss/bfin/Makefile.in +++ b/libgloss/bfin/Makefile.in @@ -99,10 +99,18 @@ ${SIM_BSP}: ${OBJS} ${SIM_OBJS} crt0.o: crt0.S basiccrt.o: basiccrt.S +ifeq (,$(findstring mcpu=,$(CFLAGS))) + $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $< +else $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $< +endif basiccrts.o: basiccrt.S +ifeq (,$(findstring mcpu=,$(CFLAGS))) + $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $< +else $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $< +endif basiccrt561.o: basiccrt.S ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))