summaryrefslogtreecommitdiffstats
path: root/rbutil/mkamsboot/Makefile
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-10-30 00:13:29 +0000
committerDave Chapman <dave@dchapman.com>2008-10-30 00:13:29 +0000
commitc91d7873c79103f9e6ef00cedbec7ad9410c7666 (patch)
tree2f372cf9b19763446ce265d20d2f2307a2c0fac5 /rbutil/mkamsboot/Makefile
parente1b483848120507a909e95417e938324ed377bd5 (diff)
downloadrockbox-c91d7873c79103f9e6ef00cedbec7ad9410c7666.tar.gz
rockbox-c91d7873c79103f9e6ef00cedbec7ad9410c7666.tar.bz2
rockbox-c91d7873c79103f9e6ef00cedbec7ad9410c7666.zip
Add MD5 checksumming of the original firmware images - for extra safety, and also because some Fuze firmwares have the same ID (or what we thought was the ID) as the M200 firmwares. Plus a few minor cleanups.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18927 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkamsboot/Makefile')
-rw-r--r--rbutil/mkamsboot/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/rbutil/mkamsboot/Makefile b/rbutil/mkamsboot/Makefile
index d643930915..ea8ca274c3 100644
--- a/rbutil/mkamsboot/Makefile
+++ b/rbutil/mkamsboot/Makefile
@@ -20,18 +20,21 @@ E200V2FILES = dualboot-e200v2.o dualboot-e200v2.elf dualboot-e200v2.o \
dualboot-e200v2.bin bootimg_e200v2.c bootimg_e200v2.h
M200V2FILES = dualboot-m200v2.o dualboot-m200v2.elf dualboot-m200v2.o \
- dualboot-m200v2.bin bootimg_m200v2.c bootimg_m200v2.h
-
+ dualboot-m200v2.bin bootimg_m200v2.c bootimg_m200v2.h
+
all: mkamsboot
$(LIBUCL):
make -C ../../tools/ucl/src libucl.a
-mkamsboot.o: mkamsboot.c $(BOOTHEADERS) uclimg.h
+md5.o: md5.c md5.h
+ gcc $(CFLAGS) -c -o md5.o -W -Wall md5.c
+
+mkamsboot.o: mkamsboot.c $(BOOTHEADERS) uclimg.h md5.h
gcc $(CFLAGS) -c -o mkamsboot.o -W -Wall mkamsboot.c
-mkamsboot: mkamsboot.o $(BOOTIMAGES) uclimg.o $(LIBUCL)
- gcc -o mkamsboot mkamsboot.o $(BOOTIMAGES) uclimg.o $(LIBUCL)
+mkamsboot: mkamsboot.o $(BOOTIMAGES) uclimg.o md5.o $(LIBUCL)
+ gcc -o mkamsboot mkamsboot.o $(BOOTIMAGES) uclimg.o md5.o $(LIBUCL)
# Rules for our test ARM application - assemble, link, then extract
# the binary code
@@ -110,5 +113,5 @@ bin2c: bin2c.c
clean:
rm -f mkamsboot mkamsboot.o nrv2e_d8.o nrv2e_d8.elf nrv2e_d8.bin *~ \
- bin2c uclimg.c uclimg.h uclimg.o \
+ bin2c uclimg.c uclimg.h uclimg.o md5.o \
$(BOOTIMAGES) $(CLIPFILES) $(E200V2FILES) $(M200V2FILES)