Assign ANYREC before checking if this is a DEBUG build or not, without this
the FM rec debug build fails miserably. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3292 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c1f6d586b2
commit
572ced56cf
1 changed files with 3 additions and 4 deletions
|
@ -23,15 +23,14 @@ INCLUDES= -I$(FIRMWARE)/include -I$(FIRMWARE)/export -I. -I$(OBJDIR)
|
||||||
CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES)
|
CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES)
|
||||||
AFLAGS += -small -relax
|
AFLAGS += -small -relax
|
||||||
|
|
||||||
|
# Check if this is a kind of Recorder
|
||||||
|
ANYREC = $(findstring RECORDER, $(TARGET))
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
DEFINES := -DDEBUG
|
DEFINES := -DDEBUG
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
LDS := $(FIRMWARE)/gdb.lds
|
LDS := $(FIRMWARE)/gdb.lds
|
||||||
else
|
else
|
||||||
|
|
||||||
# Check if this is a kind of Recorder
|
|
||||||
ANYREC = $(findstring RECORDER, $(TARGET))
|
|
||||||
|
|
||||||
ifeq ($(ANYREC), RECORDER)
|
ifeq ($(ANYREC), RECORDER)
|
||||||
LDS := $(FIRMWARE)/app.lds
|
LDS := $(FIRMWARE)/app.lds
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue