mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 08:02:34 -05:00
Moved to one single .lds file for ALL builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3347 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a0086b61e1
commit
b0c6276b40
2 changed files with 19 additions and 5 deletions
|
|
@ -31,12 +31,11 @@ ifndef MEM
|
|||
MEM=2
|
||||
endif
|
||||
|
||||
LDS := $(FIRMWARE)/app.lds
|
||||
|
||||
ifdef DEBUG
|
||||
DEFINES := -DDEBUG
|
||||
CFLAGS += -g
|
||||
LDS := $(FIRMWARE)/gdb.lds
|
||||
else
|
||||
LDS := $(FIRMWARE)/app.lds
|
||||
endif
|
||||
|
||||
SRC := $(wildcard *.c)
|
||||
|
|
@ -76,7 +75,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) -E -P - >$@
|
||||
cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(DEFINES) -E -P - >$@
|
||||
|
||||
$(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a
|
||||
$(CC) -Os -nostdlib -o $(OBJDIR)/rockbox.elf $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue