Subversion Repositories freemyipod

Rev

Rev 546 | Rev 661 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 546 Rev 660
Line 5... Line 5...
5
EMCOREDIR ?= ../../emcore/trunk/
5
EMCOREDIR ?= ../../emcore/trunk/
6
BOOTMENUDIR ?= ../bootmenu-ipodclassic/
6
BOOTMENUDIR ?= ../bootmenu-ipodclassic/
7
LIBBOOTDIR ?= ../../libs/boot/
7
LIBBOOTDIR ?= ../../libs/boot/
8
LIBPNGDIR ?= ../../libs/png/
8
LIBPNGDIR ?= ../../libs/png/
9
LIBUIDIR ?= ../../libs/ui/
9
LIBUIDIR ?= ../../libs/ui/
-
 
10
LIBMKFAT32DIR ?= ../../libs/mkfat32/
10
UMSBOOTDIR ?= ../../umsboot/
11
UMSBOOTDIR ?= ../../umsboot/
11
TOOLSDIR ?= ../../tools/
12
TOOLSDIR ?= ../../tools/
12
 
13
 
13
FLASHFILES = flashfiles/boot.emcorelib flashfiles/png.emcorelib flashfiles/ui.emcorelib \
14
FLASHFILES = flashfiles/boot.emcorelib flashfiles/png.emcorelib flashfiles/ui.emcorelib flashfiles/mkfat32.emcorelib \
14
             flashfiles/bootmenu-ipodclassic.emcoreapp flashfiles/background.png flashfiles/icons.png flashfiles/rockbox.png \
15
             flashfiles/bootmenu-ipodclassic.emcoreapp flashfiles/background.png flashfiles/icons.png flashfiles/rockbox.png \
15
             flashfiles/emcoreldr-ipodclassic.bin flashfiles/emcore-ipodclassic.ucl flashfiles/umsboot-ipodclassic.ucl
16
             flashfiles/emcoreldr-ipodclassic.bin flashfiles/emcore-ipodclassic.ucl flashfiles/umsboot-ipodclassic.ucl
16
 
17
 
17
ifeq ($(shell uname),WindowsNT)
18
ifeq ($(shell uname),WindowsNT)
18
CCACHE :=
19
CCACHE :=
Line 30... Line 31...
30
STUBEMBED := python tools/stubembed.py
31
STUBEMBED := python tools/stubembed.py
31
EMCOREBOOTCFG := python $(EMCOREDIR)/tools/emcorebootcfg.py
32
EMCOREBOOTCFG := python $(EMCOREDIR)/tools/emcorebootcfg.py
32
EMCOREEMBEDAPP := python $(EMCOREDIR)/tools/emcoreembedapp.py
33
EMCOREEMBEDAPP := python $(EMCOREDIR)/tools/emcoreembedapp.py
33
GENPWN := python $(EMCOREDIR)/tools/ipodcrypt.py s5l8702-genpwnage
34
GENPWN := python $(EMCOREDIR)/tools/ipodcrypt.py s5l8702-genpwnage
34
 
35
 
35
LIBINCLUDES := -I$(LIBBOOTDIR)/export -I$(LIBPNGDIR)/export -I$(LIBUIDIR)/export
36
LIBINCLUDES := -I$(LIBPNGDIR)/export -I$(LIBUIDIR)/export -I$(LIBMKFAT32DIR)/export
36
 
37
 
37
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMCOREDIR)/export $(LIBINCLUDES) -ffunction-sections -fdata-sections -mcpu=arm940t -DARM_ARCH=4
38
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMCOREDIR)/export $(LIBINCLUDES) -ffunction-sections -fdata-sections -mcpu=arm940t -DARM_ARCH=4
38
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --emit-relocs --gc-sections
39
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --emit-relocs --gc-sections
39
 
40
 
40
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
41
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
Line 170... Line 171...
170
 
171
 
171
flashfiles/ui.emcorelib: $(LIBUIDIR)/build/ui.emcorelib libui
172
flashfiles/ui.emcorelib: $(LIBUIDIR)/build/ui.emcorelib libui
172
	@echo [CP]     $@
173
	@echo [CP]     $@
173
	@cp $< $@
174
	@cp $< $@
174
 
175
 
-
 
176
$(LIBUIDIR)/build/mkfat32.emcorelib: libmkfat32
-
 
177
 
-
 
178
flashfiles/mkfat32.emcorelib: $(LIBMKFAT32DIR)/build/mkfat32.emcorelib libmkfat32
-
 
179
	@echo [CP]     $@
-
 
180
	@cp $< $@
-
 
181
 
175
$(UMSBOOTDIR)/build/ipodclassic/umsboot-ipodclassic.ucl: umsboot
182
$(UMSBOOTDIR)/build/ipodclassic/umsboot-ipodclassic.ucl: umsboot
176
 
183
 
177
flashfiles/umsboot-ipodclassic.ucl: $(UMSBOOTDIR)/build/ipodclassic/umsboot-ipodclassic.ucl umsboot
184
flashfiles/umsboot-ipodclassic.ucl: $(UMSBOOTDIR)/build/ipodclassic/umsboot-ipodclassic.ucl umsboot
178
	@echo [CP]     $@
185
	@echo [CP]     $@
179
	@cp $< $@
186
	@cp $< $@
Line 228... Line 235...
228
	@make -C $(LIBPNGDIR)
235
	@make -C $(LIBPNGDIR)
229
 
236
 
230
libui:
237
libui:
231
	@make -C $(LIBUIDIR)
238
	@make -C $(LIBUIDIR)
232
 
239
 
-
 
240
libmkfat32:
-
 
241
	@make -C $(LIBMKFAT32DIR)
-
 
242
 
233
$(UMSBOOTDIR)/build/ipodclassic/umsboot.bin: umsboot
243
$(UMSBOOTDIR)/build/ipodclassic/umsboot.bin: umsboot
234
 
244
 
235
umsboot:
245
umsboot:
236
	@make -C $(UMSBOOTDIR) ipodclassic
246
	@make -C $(UMSBOOTDIR) ipodclassic
237
 
247
 
238
clean:
248
clean:
239
	@rm -rf build
249
	@rm -rf build
240
 
250
 
241
.PHONY: all clean emcore emcoreldr-ipodclassic bootmenu-ipodclassic libboot libpng libui umsboot libucl flashfiles $(NAME)
251
.PHONY: all clean emcore emcoreldr-ipodclassic bootmenu-ipodclassic libboot libpng libui libmkfat32 umsboot libucl flashfiles $(NAME)