summaryrefslogtreecommitdiff
path: root/rbutil/mkamsboot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/mkamsboot/Makefile')
-rw-r--r--rbutil/mkamsboot/Makefile26
1 files changed, 23 insertions, 3 deletions
diff --git a/rbutil/mkamsboot/Makefile b/rbutil/mkamsboot/Makefile
index ea8ca274c3..93a25aee00 100644
--- a/rbutil/mkamsboot/Makefile
+++ b/rbutil/mkamsboot/Makefile
@@ -10,8 +10,8 @@ LIBUCL=../../tools/ucl/src/libucl.a
10# 10#
11# If anyone reading this wants to improve this makefile, please do! 11# If anyone reading this wants to improve this makefile, please do!
12 12
13BOOTIMAGES = bootimg_clip.o bootimg_e200v2.o bootimg_m200v2.o 13BOOTIMAGES = bootimg_clip.o bootimg_e200v2.o bootimg_m200v2.o bootimg_fuze.o
14BOOTHEADERS = bootimg_clip.h bootimg_e200v2.h bootimg_m200v2.h 14BOOTHEADERS = bootimg_clip.h bootimg_e200v2.h bootimg_m200v2.h bootimg_fuze.h
15 15
16CLIPFILES = dualboot-clip.o dualboot-clip.elf dualboot-clip.o \ 16CLIPFILES = dualboot-clip.o dualboot-clip.elf dualboot-clip.o \
17 dualboot-clip.bin bootimg_clip.c bootimg_clip.h 17 dualboot-clip.bin bootimg_clip.c bootimg_clip.h
@@ -22,6 +22,9 @@ E200V2FILES = dualboot-e200v2.o dualboot-e200v2.elf dualboot-e200v2.o \
22M200V2FILES = dualboot-m200v2.o dualboot-m200v2.elf dualboot-m200v2.o \ 22M200V2FILES = dualboot-m200v2.o dualboot-m200v2.elf dualboot-m200v2.o \
23 dualboot-m200v2.bin bootimg_m200v2.c bootimg_m200v2.h 23 dualboot-m200v2.bin bootimg_m200v2.c bootimg_m200v2.h
24 24
25FUZEFILES = dualboot-fuze.o dualboot-fuze.elf dualboot-fuze.o \
26 dualboot-fuze.bin bootimg_fuze.c bootimg_fuze.h
27
25all: mkamsboot 28all: mkamsboot
26 29
27$(LIBUCL): 30$(LIBUCL):
@@ -56,6 +59,23 @@ bootimg_clip.c bootimg_clip.h: dualboot-clip.bin bin2c
56bootimg_clip.o: bootimg_clip.c 59bootimg_clip.o: bootimg_clip.c
57 gcc -c -o bootimg_clip.o bootimg_clip.c 60 gcc -c -o bootimg_clip.o bootimg_clip.c
58 61
62# FUZE
63
64dualboot-fuze.o: dualboot.S
65 arm-elf-gcc -DSANSA_FUZE -c -o dualboot-fuze.o dualboot.S
66
67dualboot-fuze.elf: dualboot-fuze.o
68 arm-elf-ld -e 0 -Ttext=0 -o dualboot-fuze.elf dualboot-fuze.o
69
70dualboot-fuze.bin: dualboot-fuze.elf
71 arm-elf-objcopy -O binary dualboot-fuze.elf dualboot-fuze.bin
72
73bootimg_fuze.c bootimg_fuze.h: dualboot-fuze.bin bin2c
74 ./bin2c dualboot-fuze.bin bootimg_fuze
75
76bootimg_fuze.o: bootimg_fuze.c
77 gcc -c -o bootimg_fuze.o bootimg_fuze.c
78
59# E200V2 79# E200V2
60 80
61dualboot-e200v2.o: dualboot.S 81dualboot-e200v2.o: dualboot.S
@@ -114,4 +134,4 @@ bin2c: bin2c.c
114clean: 134clean:
115 rm -f mkamsboot mkamsboot.o nrv2e_d8.o nrv2e_d8.elf nrv2e_d8.bin *~ \ 135 rm -f mkamsboot mkamsboot.o nrv2e_d8.o nrv2e_d8.elf nrv2e_d8.bin *~ \
116 bin2c uclimg.c uclimg.h uclimg.o md5.o \ 136 bin2c uclimg.c uclimg.h uclimg.o md5.o \
117 $(BOOTIMAGES) $(CLIPFILES) $(E200V2FILES) $(M200V2FILES) 137 $(BOOTIMAGES) $(CLIPFILES) $(E200V2FILES) $(M200V2FILES) $(FUZEFILES)