From c2ec077d8f7ad1d229d0d27420ada5e61f61bf31 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 11 Jul 2013 18:49:42 +0200 Subject: [PATCH] software: share SDRAM linker script --- software/{videomixer/linker.ld => libbase/linker-sdram.ld} | 0 software/videomixer/Makefile | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename software/{videomixer/linker.ld => libbase/linker-sdram.ld} (100%) diff --git a/software/videomixer/linker.ld b/software/libbase/linker-sdram.ld similarity index 100% rename from software/videomixer/linker.ld rename to software/libbase/linker-sdram.ld diff --git a/software/videomixer/Makefile b/software/videomixer/Makefile index b4e6c183..347dccc7 100644 --- a/software/videomixer/Makefile +++ b/software/videomixer/Makefile @@ -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 \ -- 2.30.2