1
0
Fork 0
forked from len0rd/rockbox

Move mknkboot.[ch] to beastpatcher folder.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23372 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-10-27 21:15:21 +00:00
parent 806bc7947b
commit b82963bd9d
5 changed files with 11 additions and 12 deletions

View file

@ -13,10 +13,10 @@ LDFLAGS := -g
CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \ CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat \ generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat \
lngdump telechips gigabeats creative hmac-sha1 mktccboot mknkboot rbspeexenc \ lngdump telechips gigabeats creative hmac-sha1 mktccboot rbspeexenc \
mkzenboot mk500boot mkzenboot mk500boot
all: scramble descramble sh2d rdf2binary mkboot mktccboot mknkboot mkzenboot \ all: scramble descramble sh2d rdf2binary mkboot mktccboot mkzenboot \
convbdf codepages uclpack rbspeexenc voicefont mk500boot convbdf codepages uclpack rbspeexenc voicefont mk500boot
scramble: scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o iaudio_bl_flash.o creative.o hmac-sha1.o scramble: scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o iaudio_bl_flash.o creative.o hmac-sha1.o
@ -52,9 +52,6 @@ mktccboot: mktccboot.c telechips.o
mk500boot: mk500boot.c mr500.c mk500boot: mk500boot.c mr500.c
$(SILENT)$(CC) $(CFLAGS) $+ -o $@ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
mknkboot: mknkboot.c
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
mkzenboot.o: mkzenboot.c mkzenboot.o: mkzenboot.c
$(SILENT)$(CC) $(CFLAGS) -DSTANDALONE -c -o $@ $+ $(SILENT)$(CC) $(CFLAGS) -DSTANDALONE -c -o $@ $+

2
tools/configure vendored
View file

@ -1608,7 +1608,7 @@ fi
appextra="recorder:gui" appextra="recorder:gui"
plugins="yes" plugins="yes"
swcodec="yes" swcodec="yes"
toolset="$gigabeatbitmaptools mknkboot" toolset="$gigabeatbitmaptools"
boottool="$rootdir/tools/scramble -gigabeats" boottool="$rootdir/tools/scramble -gigabeats"
bootoutput="nk.bin" bootoutput="nk.bin"
# architecture, manufacturer and model for the target-tree build # architecture, manufacturer and model for the target-tree build

View file

@ -1,4 +1,4 @@
CFLAGS=-Wall -W -DWITH_BOOTOBJS -DBEASTPATCHER -I../../../tools CFLAGS=-Wall -W -DWITH_BOOTOBJS -I../../../tools
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
OUTPUT=beastpatcher.exe OUTPUT=beastpatcher.exe
@ -30,17 +30,17 @@ CC = $(CROSS)gcc
all: $(OUTPUT) all: $(OUTPUT)
SOURCES = beastpatcher.c bootimg.c ../../../tools/mknkboot.c main.c SOURCES = beastpatcher.c bootimg.c mknkboot.c main.c
HEADERS = beastpatcher.h mtp_common.h bootimg.h ../../../tools/mknkboot.h HEADERS = beastpatcher.h mtp_common.h bootimg.h mknkboot.h
MTPSRCS_W32 = mtp_win32.c MTPSRCS_W32 = mtp_win32.c
MTPSRCS_MTP = mtp_libmtp.c MTPSRCS_MTP = mtp_libmtp.c
beastpatcher: $(SOURCES) $(HEADERS) $(MTPSRCS_MTP) beastpatcher: $(SOURCES) $(HEADERS) $(MTPSRCS_MTP)
gcc $(CFLAGS) -o beastpatcher $(SOURCES) $(MTPSRCS_MTP) $(LIBS) gcc $(CFLAGS) -DBEASTPATCHER -o beastpatcher $(SOURCES) $(MTPSRCS_MTP) $(LIBS)
strip beastpatcher strip beastpatcher
beastpatcher.exe: $(SOURCES) $(HEADERS) $(MTPSRCS_W32) $(WINLIBS) beastpatcher.exe: $(SOURCES) $(HEADERS) $(MTPSRCS_W32) $(WINLIBS)
$(CC) $(CFLAGS) -o beastpatcher.exe $(SOURCES) $(MTPSRCS_W32) $(WINLIBS) $(CC) $(CFLAGS) -DBEASTPATCHER -o beastpatcher.exe $(SOURCES) $(MTPSRCS_W32) $(WINLIBS)
$(CROSS)strip beastpatcher.exe $(CROSS)strip beastpatcher.exe
beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc beastpatcher-mac: beastpatcher-i386 beastpatcher-ppc
@ -60,5 +60,7 @@ bin2c: ../../../rbutil/tools/bin2c.c
bootimg.c: bootloader.bin bin2c bootimg.c: bootloader.bin bin2c
./bin2c bootloader.bin bootimg ./bin2c bootloader.bin bootimg
mknkboot: mknkboot.c
$(SILENT)$(NATIVECC) $(CFLAGS) $+ -o $@
clean: clean:
rm -f beastpatcher.exe beastpatcher-mac beastpatcher-i386 beastpatcher-ppc beastpatcher bin2c bootimg.c bootimg.h *~ rm -f beastpatcher.exe beastpatcher-mac beastpatcher-i386 beastpatcher-ppc beastpatcher bin2c bootimg.c bootimg.h mknkboot *~