aboutsummaryrefslogtreecommitdiff
path: root/board/voiceblue/Makefile
diff options
context:
space:
mode:
authorWolfgang Denk2005-08-12 22:56:51 +0200
committerWolfgang Denk2005-08-12 22:56:51 +0200
commite5445288318de74e1fb63920e7ed7bf48088c3c2 (patch)
treea39cc55a33fe3491158d9334edb3a4fbad6ed0d9 /board/voiceblue/Makefile
parentea99a7388118aa868c7bf8a7bb5689d8a84ede25 (diff)
VoiceBlue update: eeprom tool can also store firmware version now.
eeprom.bin is runable by jumping at load address. Patch by Ladislav Michl, 23 May 2005
Diffstat (limited to 'board/voiceblue/Makefile')
-rw-r--r--board/voiceblue/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/board/voiceblue/Makefile b/board/voiceblue/Makefile
index 44be6ca8981..3b3e5239e63 100644
--- a/board/voiceblue/Makefile
+++ b/board/voiceblue/Makefile
@@ -32,21 +32,23 @@ SOBJS := setup.o
gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
LOAD_ADDR = 0x10400000
+LDSCRIPT = $(TOPDIR)/board/$(BOARDDIR)/eeprom.lds
all: $(LIB) eeprom.srec eeprom.bin
$(LIB): $(OBJS) $(SOBJS)
$(AR) crv $@ $(OBJS) $(SOBJS)
-eeprom.srec: eeprom.o
- $(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e $(<:.o=) $^ \
+eeprom.srec: eeprom.o eeprom_start.o
+ $(LD) -T $(LDSCRIPT) -g -Ttext $(LOAD_ADDR) \
+ -o $(<:.o=) -e $(<:.o=) $^ \
-L../../examples -lstubs \
-L../../lib_generic -lgeneric \
-L$(gcclibdir) -lgcc
$(OBJCOPY) -O srec $(<:.o=) $@
eeprom.bin: eeprom.srec
- $(OBJCOPY) -O binary $< $@ 2>/dev/null
+ $(OBJCOPY) -I srec -O binary $< $@ 2>/dev/null
clean:
rm -f $(SOBJS) $(OBJS) eeprom eeprom.srec eeprom.bin