Subversion Repositories freemyipod

Rev

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

Rev 424 Rev 427
Line 1... Line 1...
1
NAME := embiosldr-ipodnano2g
1
NAME := emcoreldr-ipodnano2g
2
 
2
 
3
EMBIOSDIR ?= ../../
3
EMCOREDIR ?= ../../
4
 
4
 
5
CROSS   ?= arm-none-eabi-
5
CROSS   ?= arm-none-eabi-
6
CC      := $(CROSS)gcc
6
CC      := $(CROSS)gcc
7
AS      := $(CROSS)as
7
AS      := $(CROSS)as
8
LD      := $(CROSS)ld
8
LD      := $(CROSS)ld
9
OBJCOPY := $(CROSS)objcopy
9
OBJCOPY := $(CROSS)objcopy
10
UCLPACK := ucl2e10singleblk
10
UCLPACK := ucl2e10singleblk
11
CRYPTDFU := python $(EMBIOSDIR)/tools/ipodcrypt.py s5l8701-cryptdfu
11
CRYPTDFU := python $(EMCOREDIR)/tools/ipodcrypt.py s5l8701-cryptdfu
12
 
12
 
13
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -mcpu=arm940t
13
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -mcpu=arm940t
14
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
14
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
15
 
15
 
16
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
16
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
Line 73... Line 73...
73
else
73
else
74
	@sed -e 's/.*://' -e 's/\\$$//' < $@.dep.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $@.dep
74
	@sed -e 's/.*://' -e 's/\\$$//' < $@.dep.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $@.dep
75
endif
75
endif
76
	@rm -f $@.dep.tmp
76
	@rm -f $@.dep.tmp
77
 
77
 
78
build/__embios_%.o: $(EMBIOSDIR)/export/%.S
78
build/__emcore_%.o: $(EMCOREDIR)/export/%.S
79
	@echo [CC]     $<
79
	@echo [CC]     $<
80
ifeq ($(shell uname),WindowsNT)
80
ifeq ($(shell uname),WindowsNT)
81
	@-if not exist $(subst /,\,$(dir $@)) md $(subst /,\,$(dir $@))
81
	@-if not exist $(subst /,\,$(dir $@)) md $(subst /,\,$(dir $@))
82
else
82
else
83
	@-mkdir -p $(dir $@)
83
	@-mkdir -p $(dir $@)