Implement the ability to embed a bootloader in sansapatcher - the --install option installs the embedded bootloader, and running without any parameters will cause a prompt to be displayed asking the user if they want to install, uninstall or cancel. sansapatcher now requres a PP5022.mi4 file (the Rockbox bootloader) in the current directory when building.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12794 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2007-03-15 23:26:47 +00:00
parent 4a81291284
commit e815601afb
6 changed files with 306 additions and 39 deletions

View file

@ -33,12 +33,11 @@ sansapatcher-ppc: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg.c
gcc -arch ppc $(CFLAGS) -o sansapatcher-ppc main.c sansapatcher.c sansaio-posix.c bootimg.c
strip sansapatcher-ppc
#mi42c: mi42c.c
# $(NATIVECC) $(CFLAGS) -o mi42c mi42c.c
bin2c: bin2c.c
$(NATIVECC) $(CFLAGS) -o bin2c bin2c.c
#bootimg.c: PP5022.mi4 mi42c
# ./mi42c PP5022.mi4 bootimg
bootimg.c: PP5022.mi4 bin2c
./bin2c PP5022.mi4 bootimg
clean:
rm -f sansapatcher.exe sansapatcher-mac sansapatcher-i386 sansapatcher-ppc sansapatcher mi42c *~
#bootimg.c bootimg.h
rm -f sansapatcher.exe sansapatcher-mac sansapatcher-i386 sansapatcher-ppc sansapatcher bin2c bootimg.c bootimg.h *~