diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-30 20:00:56 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-30 20:00:56 +0000 |
commit | 29a5373724d143d2629cafd8cc0c1961546c1bd6 (patch) | |
tree | 3b79dbdea69c1b3e81c6c1b9132609d35f62baca /rbutil/mkamsboot/Makefile | |
parent | ee378abe636a99a86cd9a6b98f37c667bca1bd8f (diff) | |
download | rockbox-29a5373724d143d2629cafd8cc0c1961546c1bd6.tar.gz rockbox-29a5373724d143d2629cafd8cc0c1961546c1bd6.zip |
mkamsboot: supports Fuze firmwares
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18936 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkamsboot/Makefile')
-rw-r--r-- | rbutil/mkamsboot/Makefile | 26 |
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 | ||
13 | BOOTIMAGES = bootimg_clip.o bootimg_e200v2.o bootimg_m200v2.o | 13 | BOOTIMAGES = bootimg_clip.o bootimg_e200v2.o bootimg_m200v2.o bootimg_fuze.o |
14 | BOOTHEADERS = bootimg_clip.h bootimg_e200v2.h bootimg_m200v2.h | 14 | BOOTHEADERS = bootimg_clip.h bootimg_e200v2.h bootimg_m200v2.h bootimg_fuze.h |
15 | 15 | ||
16 | CLIPFILES = dualboot-clip.o dualboot-clip.elf dualboot-clip.o \ | 16 | CLIPFILES = 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 \ | |||
22 | M200V2FILES = dualboot-m200v2.o dualboot-m200v2.elf dualboot-m200v2.o \ | 22 | M200V2FILES = 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 | ||
25 | FUZEFILES = dualboot-fuze.o dualboot-fuze.elf dualboot-fuze.o \ | ||
26 | dualboot-fuze.bin bootimg_fuze.c bootimg_fuze.h | ||
27 | |||
25 | all: mkamsboot | 28 | all: mkamsboot |
26 | 29 | ||
27 | $(LIBUCL): | 30 | $(LIBUCL): |
@@ -56,6 +59,23 @@ bootimg_clip.c bootimg_clip.h: dualboot-clip.bin bin2c | |||
56 | bootimg_clip.o: bootimg_clip.c | 59 | bootimg_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 | |||
64 | dualboot-fuze.o: dualboot.S | ||
65 | arm-elf-gcc -DSANSA_FUZE -c -o dualboot-fuze.o dualboot.S | ||
66 | |||
67 | dualboot-fuze.elf: dualboot-fuze.o | ||
68 | arm-elf-ld -e 0 -Ttext=0 -o dualboot-fuze.elf dualboot-fuze.o | ||
69 | |||
70 | dualboot-fuze.bin: dualboot-fuze.elf | ||
71 | arm-elf-objcopy -O binary dualboot-fuze.elf dualboot-fuze.bin | ||
72 | |||
73 | bootimg_fuze.c bootimg_fuze.h: dualboot-fuze.bin bin2c | ||
74 | ./bin2c dualboot-fuze.bin bootimg_fuze | ||
75 | |||
76 | bootimg_fuze.o: bootimg_fuze.c | ||
77 | gcc -c -o bootimg_fuze.o bootimg_fuze.c | ||
78 | |||
59 | # E200V2 | 79 | # E200V2 |
60 | 80 | ||
61 | dualboot-e200v2.o: dualboot.S | 81 | dualboot-e200v2.o: dualboot.S |
@@ -114,4 +134,4 @@ bin2c: bin2c.c | |||
114 | clean: | 134 | clean: |
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) |