Subversion Repositories freemyipod

Rev

Rev 914 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 914 Rev 918
Line 1... Line 1...
1
NAME := diskmode
1
NAME := diskmode
2
STACKSIZE := 4096
2
STACKSIZE := 4096
3
COMPRESS := true
3
COMPRESS := true
4
 
4
 
5
EMCOREDIR ?= ../../emcore/trunk/
5
EMCOREDIR ?= ../../emcore/trunk/
-
 
6
LIBBOOTDIR ?= ../../libs/boot/
6
 
7
 
7
ifeq ($(shell uname),WindowsNT)
8
ifeq ($(shell uname),WindowsNT)
8
CCACHE :=
9
CCACHE :=
9
else
10
else
10
CCACHE := $(shell which ccache)
11
CCACHE := $(shell which ccache)
Line 15... Line 16...
15
AS      := $(CROSS)as
16
AS      := $(CROSS)as
16
LD      := $(CROSS)ld
17
LD      := $(CROSS)ld
17
OBJCOPY := $(CROSS)objcopy
18
OBJCOPY := $(CROSS)objcopy
18
ELF2ECA := $(CROSS)elf2emcoreapp
19
ELF2ECA := $(CROSS)elf2emcoreapp
19
 
20
 
20
LIBINCLUDES :=
21
LIBINCLUDES := -I$(LIBBOOTDIR)/export
21
 
22
 
22
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMCOREDIR)/export $(LIBINCLUDES) -ffunction-sections -fdata-sections -mcpu=arm940t -DARM_ARCH=4 -marm
23
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMCOREDIR)/export $(LIBINCLUDES) -ffunction-sections -fdata-sections -mcpu=arm940t -DARM_ARCH=4 -marm
23
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --emit-relocs --gc-sections
24
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --emit-relocs --gc-sections
24
 
25
 
25
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
26
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")