fixed -mpcrel cflags for cache.c and bas_printf.c

This commit is contained in:
Markus Fröschle
2012-11-03 22:41:08 +00:00
parent 809e93715e
commit a096d8f517

View File

@@ -98,9 +98,9 @@ endif
$(OBJDIR)/init_fpga.o: CFLAGS += -mbitfield
# compile printf pc-relative so it can be used as well before and after copy of BaS
$(OBJDIR)/printf.o: CFLAGS += -mpcrel
$(OBJDIR)/bas_printf.o: CFLAGS += -mpcrel
# the same for flush_and_invalidate_cache()
$(OBJDIR)/cache.c: CFLAGS += -mpcrel
$(OBJDIR)/cache.o: CFLAGS += -mpcrel
$(OBJDIR)/%.o:$(SRCDIR)/%.c
$(CC) -c $(CFLAGS) $(INCLUDE) $< -o $@