Subversion Repositories freemyipod

Rev

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

Rev 462 Rev 520
Line 12... Line 12...
12
CC      := $(CCACHE) $(CROSS)gcc
12
CC      := $(CCACHE) $(CROSS)gcc
13
AS      := $(CROSS)as
13
AS      := $(CROSS)as
14
LD      := $(CROSS)ld
14
LD      := $(CROSS)ld
15
OBJCOPY := $(CROSS)objcopy
15
OBJCOPY := $(CROSS)objcopy
16
UCLPACK := ucl2e10singleblk
16
UCLPACK := ucl2e10singleblk
17
CRYPTNOR := python $(EMCOREDIR)/tools/ipodcrypt.py s5l8702-cryptnor
-
 
18
 
17
 
19
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -mcpu=arm926ej-s
18
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -mcpu=arm926ej-s
20
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
19
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
21
 
20
 
22
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
21
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
Line 31... Line 30...
31
 
30
 
32
all: $(NAME)
31
all: $(NAME)
33
 
32
 
34
-include $(OBJ:%=%.dep)
33
-include $(OBJ:%=%.dep)
35
 
34
 
36
$(NAME): build/$(NAME).8702
35
$(NAME): build/$(NAME).bin
37
 
-
 
38
build/$(NAME).8702: build/$(NAME).bin
-
 
39
	@echo [CNOR]   $<
-
 
40
	@$(CRYPTNOR) $^ $@
-
 
41
 
36
 
42
build/$(NAME).bin: build/$(NAME).elf
37
build/$(NAME).bin: build/$(NAME).elf
43
	@echo [OC]     $<
38
	@echo [OC]     $<
44
	@$(OBJCOPY) -O binary $^ $@
39
	@$(OBJCOPY) -O binary $^ $@
45
 
40