mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Initial attempt at c200 support - you now need both a "firmware.mi4" file (c200 bootloader) and "PP5022.mi4" file (e200 bootloader) to compile. sansapatcher should detect the device type and install the correct bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14755 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dbbc8358ce
commit
8d145a5574
5 changed files with 121 additions and 30 deletions
|
|
@ -14,30 +14,33 @@ CC = $(CROSS)gcc
|
|||
|
||||
all: $(OUTPUT)
|
||||
|
||||
sansapatcher: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg.c
|
||||
gcc $(CFLAGS) -o sansapatcher main.c sansapatcher.c sansaio-posix.c bootimg.c
|
||||
sansapatcher: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg_c200.c bootimg_e200.c
|
||||
gcc $(CFLAGS) -o sansapatcher main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c
|
||||
strip sansapatcher
|
||||
|
||||
sansapatcher.exe: main.c sansapatcher.c sansaio-win32.c parttypes.h bootimg.c
|
||||
$(CC) $(CFLAGS) -o sansapatcher.exe main.c sansapatcher.c sansaio-win32.c bootimg.c
|
||||
sansapatcher.exe: main.c sansapatcher.c sansaio-win32.c parttypes.h bootimg_c200.c bootimg_e200.c
|
||||
$(CC) $(CFLAGS) -o sansapatcher.exe main.c sansapatcher.c sansaio-win32.c bootimg_c200.c bootimg_e200.c
|
||||
$(CROSS)strip sansapatcher.exe
|
||||
|
||||
sansapatcher-mac: sansapatcher-i386 sansapatcher-ppc
|
||||
lipo -create sansapatcher-ppc sansapatcher-i386 -output sansapatcher-mac
|
||||
|
||||
sansapatcher-i386: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg.c
|
||||
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bin/i386/program -arch i386 $(CFLAGS) -o sansapatcher-i386 main.c sansapatcher.c sansaio-posix.c bootimg.c
|
||||
sansapatcher-i386: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg_c200.c bootimg_e200.c
|
||||
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bin/i386/program -arch i386 $(CFLAGS) -o sansapatcher-i386 main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c
|
||||
strip sansapatcher-i386
|
||||
|
||||
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
|
||||
sansapatcher-ppc: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg_c200.c bootimg_e200.c
|
||||
gcc -arch ppc $(CFLAGS) -o sansapatcher-ppc main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c
|
||||
strip sansapatcher-ppc
|
||||
|
||||
bin2c: bin2c.c
|
||||
$(NATIVECC) $(CFLAGS) -o bin2c bin2c.c
|
||||
|
||||
bootimg.c: PP5022.mi4 bin2c
|
||||
./bin2c PP5022.mi4 bootimg
|
||||
bootimg_c200.c: firmware.mi4 bin2c
|
||||
./bin2c firmware.mi4 bootimg_c200
|
||||
|
||||
bootimg_e200.c: PP5022.mi4 bin2c
|
||||
./bin2c PP5022.mi4 bootimg_e200
|
||||
|
||||
clean:
|
||||
rm -f sansapatcher.exe sansapatcher-mac sansapatcher-i386 sansapatcher-ppc sansapatcher bin2c bootimg.c bootimg.h *~
|
||||
rm -f sansapatcher.exe sansapatcher-mac sansapatcher-i386 sansapatcher-ppc sansapatcher bin2c bootimg_c200.c bootimg_c200.h bootimg_e200.c bootimg_e200.h *~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue