software: share SDRAM linker script

This commit is contained in:
Sebastien Bourdeauducq 2013-07-11 18:49:42 +02:00
parent 25506c1ab5
commit c2ec077d8f
2 changed files with 4 additions and 2 deletions

View File

@ -15,10 +15,12 @@ all: videomixer.bin videomixer.fbi
%.fbi: %.bin
$(M2DIR)/tools/mkmmimg $< write $@
videomixer.elf: linker.ld $(OBJECTS) libs
videomixer.elf: $(OBJECTS) libs
%.elf:
$(LD) $(LDFLAGS) -T $< -N -o $@ \
$(LD) $(LDFLAGS) \
-T $(M2DIR)/software/libbase/linker-sdram.ld \
-N -o $@ \
$(M2DIR)/software/libbase/crt0.o \
$(OBJECTS) \
-L$(M2DIR)/software/libbase \