summaryrefslogtreecommitdiffstats
path: root/flash/bootloader/Makefile
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-10-30 00:17:45 +0000
committerJens Arnold <amiconn@rockbox.org>2008-10-30 00:17:45 +0000
commite13e318c3748a0db8e2a81447fb8e234a6c2581b (patch)
tree554c1a93510cfc26613e76751450ff51d2d11a8b /flash/bootloader/Makefile
parentc91d7873c79103f9e6ef00cedbec7ad9410c7666 (diff)
downloadrockbox-e13e318c3748a0db8e2a81447fb8e234a6c2581b.tar.gz
rockbox-e13e318c3748a0db8e2a81447fb8e234a6c2581b.zip
Use the asm optimised UCL decompressor for the flash bootloader as well. Verified working on Player, Recorder v1, Ondio SP and Ondio FM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18928 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'flash/bootloader/Makefile')
-rw-r--r--flash/bootloader/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/flash/bootloader/Makefile b/flash/bootloader/Makefile
index e7bd17aae9..edc32113c6 100644
--- a/flash/bootloader/Makefile
+++ b/flash/bootloader/Makefile
@@ -46,7 +46,7 @@ endif
SRC := $(wildcard *.c)
-OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
+OBJS := $(SRC:%.c=$(OBJDIR)/%.o) $(OBJDIR)/sh_nrv2e_d8.o
ifdef NO_ROM
LINKFILE = $(OBJDIR)/no_rom.lds
@@ -64,9 +64,12 @@ ifndef NO_ROM
$(TOOLSDIR)/scramble $(OBJDIR)/$(TARGET).bin $(OBJDIR)/$(TARGET).ajz
endif
-$(OBJDIR)/$(TARGET).elf : $(OBJS)
- $(CC) -Os -nostdlib -o $(OBJDIR)/$(TARGET).elf -L$(OBJDIR) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$(TARGET).map
+$(OBJDIR)/$(TARGET).elf : $(OBJS)
+ $(CC) -Os -nostdlib -o $@ $(OBJS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$(TARGET).map
+# cross-reference, saves code duplication
+$(OBJDIR)/sh_nrv2e_d8.o : ../../firmware/decompressor/sh_nrv2e_d8.S
+ $(CC) $(CFLAGS) -c $< -o $@
clean:
-rm -f \