Subversion Repositories freemyipod

Rev

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

Rev 159 Rev 179
Line 1... Line 1...
1
NAME := embiosldr-ipodnano2g
1
NAME := embiosldr-ipodnano2g
2
BOOTADDR = 24008000
2
BOOTADDR = 24008000
3
 
3
 
4
TOOLSDIR ?= ../../../../tools/
4
EMBIOSDIR ?= ../../
5
 
5
 
6
CROSS   ?= arm-none-eabi-
6
CROSS   ?= arm-none-eabi-
7
CC      := $(CROSS)gcc
7
CC      := $(CROSS)gcc
8
AS      := $(CROSS)as
8
AS      := $(CROSS)as
9
LD      := $(CROSS)ld
9
LD      := $(CROSS)ld
10
OBJCOPY := $(CROSS)objcopy
10
OBJCOPY := $(CROSS)objcopy
11
UCLPACK := ucl2e10singleblk
11
UCLPACK := ucl2e10singleblk
12
CRYPTDFU := python $(TOOLSDIR)/ipodcrypt.py nano2g-cryptdfu
12
CRYPTDFU := python $(EMBIOSDIR)/tools/ipodcrypt.py nano2g-cryptdfu
13
 
13
 
14
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -mcpu=arm940t
14
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -mcpu=arm940t
15
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
15
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
16
 
16
 
17
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
17
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")