mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Initial integration of a --format option, based on fat32format.exe. The main limitation is that it only works on disks with 512-byte sectors - it needs adapting to the 2048-byte sector ipods. It has only been tested on Linux and Mac OS X, with a 60GB ipod Color, but appears to work.... When this feature has been more widely tested, the intention is to add code to convert the information in an Apple Partition Map (which can currently be read by ipodpatcher) to a DOS partition table, and hence allow conversion of Macpods to Winpods.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13643 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9e0dfa1a53
commit
56780e3e41
6 changed files with 617 additions and 15 deletions
|
|
@ -22,25 +22,27 @@ endif
|
|||
NATIVECC = gcc
|
||||
CC = $(CROSS)gcc
|
||||
|
||||
SRC = main.c ipodpatcher.c fat32format.c parttypes.h
|
||||
|
||||
all: $(OUTPUT)
|
||||
|
||||
ipodpatcher: main.c ipodpatcher.c ipodio-posix.c parttypes.h $(BOOTSRC)
|
||||
gcc $(CFLAGS) -o ipodpatcher main.c ipodpatcher.c ipodio-posix.c $(BOOTSRC)
|
||||
ipodpatcher: $(SRC) ipodio-posix.c $(BOOTSRC)
|
||||
gcc $(CFLAGS) -o ipodpatcher $(SRC) ipodio-posix.c $(BOOTSRC)
|
||||
strip ipodpatcher
|
||||
|
||||
ipodpatcher.exe: main.c ipodpatcher.c ipodio-win32.c parttypes.h $(BOOTSRC)
|
||||
$(CC) $(CFLAGS) -o ipodpatcher.exe main.c ipodpatcher.c ipodio-win32.c $(BOOTSRC)
|
||||
ipodpatcher.exe: $(SRC) ipodio-win32.c $(BOOTSRC)
|
||||
$(CC) $(CFLAGS) -o ipodpatcher.exe $(SRC) ipodio-win32.c $(BOOTSRC)
|
||||
$(CROSS)strip ipodpatcher.exe
|
||||
|
||||
ipodpatcher-mac: ipodpatcher-i386 ipodpatcher-ppc
|
||||
lipo -create ipodpatcher-ppc ipodpatcher-i386 -output ipodpatcher-mac
|
||||
|
||||
ipodpatcher-i386: main.c ipodpatcher.c ipodio-posix.c parttypes.h $(BOOTSRC)
|
||||
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bin/i386/program -arch i386 $(CFLAGS) -o ipodpatcher-i386 main.c ipodpatcher.c ipodio-posix.c $(BOOTSRC)
|
||||
ipodpatcher-i386: $(SRC) ipodio-posix.c $(BOOTSRC)
|
||||
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bin/i386/program -arch i386 $(CFLAGS) -o ipodpatcher-i386 $(SRC) ipodio-posix.c $(BOOTSRC)
|
||||
strip ipodpatcher-i386
|
||||
|
||||
ipodpatcher-ppc: main.c ipodpatcher.c ipodio-posix.c parttypes.h $(BOOTSRC)
|
||||
gcc -arch ppc $(CFLAGS) -o ipodpatcher-ppc main.c ipodpatcher.c ipodio-posix.c $(BOOTSRC)
|
||||
ipodpatcher-ppc: $(SRC) ipodio-posix.c $(BOOTSRC)
|
||||
gcc -arch ppc $(CFLAGS) -o ipodpatcher-ppc $(SRC) ipodio-posix.c $(BOOTSRC)
|
||||
strip ipodpatcher-ppc
|
||||
|
||||
ipod2c: ipod2c.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue