From c91d7873c79103f9e6ef00cedbec7ad9410c7666 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 30 Oct 2008 00:13:29 +0000 Subject: 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 --- rbutil/mkamsboot/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'rbutil/mkamsboot/Makefile') 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) -- cgit