forked from len0rd/rockbox
Backport r21652 and give mkamsboot "1.1RC".
git-svn-id: svn://svn.rockbox.org/rockbox/branches/bootloader_ams_pp@21653 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3086d4b837
commit
cc1801c530
2 changed files with 6 additions and 4 deletions
|
|
@ -2,6 +2,9 @@
|
|||
CFLAGS=-I../../tools/ucl/include -Wall
|
||||
LIBUCL=../../tools/ucl/src/libucl.a
|
||||
|
||||
#change for releases
|
||||
APPVERSION=1.1RC
|
||||
|
||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||
OUTPUT=mkamsboot.exe
|
||||
CFLAGS+=-mno-cygwin
|
||||
|
|
@ -32,7 +35,7 @@ md5.o: md5.c md5.h
|
|||
$(CC) $(CFLAGS) -c -o md5.o -W -Wall md5.c
|
||||
|
||||
mkamsboot.o: mkamsboot.c dualboot.h md5.h
|
||||
$(CC) $(CFLAGS) -c -o mkamsboot.o -W -Wall mkamsboot.c
|
||||
$(CC) $(CFLAGS) -c -o mkamsboot.o -W -Wall mkamsboot.c -DVERSION=\"$(APPVERSION)\"
|
||||
|
||||
$(OUTPUT): mkamsboot.o md5.o dualboot.o $(LIBUCL)
|
||||
$(CC) $(CFLAGS) -o $(OUTPUT) mkamsboot.o md5.o dualboot.o $(LIBUCL)
|
||||
|
|
|
|||
|
|
@ -109,8 +109,6 @@ execution to the uncompressed firmware.
|
|||
#define O_BINARY 0
|
||||
#endif
|
||||
|
||||
#define VERSION "1.0"
|
||||
|
||||
/* Supported models */
|
||||
enum {
|
||||
MODEL_UNKNOWN = -1,
|
||||
|
|
@ -603,8 +601,9 @@ int main(int argc, char* argv[])
|
|||
|
||||
sum.md5 = md5sum;
|
||||
|
||||
/* VERSION comes frome the Makefile */
|
||||
fprintf(stderr,
|
||||
"mkamsboot v" VERSION " - (C) Dave Chapman and Rafaël Carré 2008\n"
|
||||
"mkamsboot Version " VERSION " - (C) Dave Chapman and Rafaël Carré 2008\n"
|
||||
"This is free software; see the source for copying conditions. There is NO\n"
|
||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||
"\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue