compile cache.c -mpcrel

This commit is contained in:
Markus Fröschle
2012-11-03 22:35:47 +00:00
parent 62f8897ad3
commit 63d30c3943
3 changed files with 6 additions and 1 deletions

View File

@@ -99,6 +99,8 @@ $(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
# the same for flush_and_invalidate_cache()
$(OBJDIR)/cache.c: CFLAGS += -mpcrel
$(OBJDIR)/%.o:$(SRCDIR)/%.c
$(CC) -c $(CFLAGS) $(INCLUDE) $< -o $@