Prepared for ROM builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4938 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d659282f6d
commit
f209eb9a83
1 changed files with 5 additions and 1 deletions
|
@ -39,6 +39,10 @@ ifndef MEM
|
|||
MEM=2
|
||||
endif
|
||||
|
||||
ifdef ARCHOS_ROM
|
||||
ROMBUILD=-DARCHOS_ROM
|
||||
endif
|
||||
|
||||
LDS := $(FIRMWARE)/app.lds
|
||||
|
||||
ifdef DEBUG
|
||||
|
@ -106,7 +110,7 @@ $(OBJDIR)/librockbox.a:
|
|||
# MEM should be passed on to this makefile with the chosen memory size given
|
||||
# in number of MB
|
||||
$(LINKFILE): $(LDS)
|
||||
cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@
|
||||
cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
||||
|
||||
$(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a
|
||||
$(CC) -Os -nostdlib -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map
|
||||
|
|
Loading…
Reference in a new issue