diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2010-06-21 00:18:29 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2010-06-21 00:18:29 +0000 |
| commit | 2b0ef19900295ef4e8da0fa52a13a04ccf76cb65 (patch) | |
| tree | 6c6e445a398904780e4843bedf7c543e238197b1 /firmware | |
| parent | a2ab719d57c2da0a66ece6d6ab1e2eb2a9192413 (diff) | |
| download | rockbox-2b0ef19900295ef4e8da0fa52a13a04ccf76cb65.zip rockbox-2b0ef19900295ef4e8da0fa52a13a04ccf76cb65.tar.gz rockbox-2b0ef19900295ef4e8da0fa52a13a04ccf76cb65.tar.bz2 rockbox-2b0ef19900295ef4e8da0fa52a13a04ccf76cb65.tar.xz | |
Don't autogenerate version.c. Just version.h is enough
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27003 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/SOURCES | 1 | ||||
| -rw-r--r-- | firmware/common/version.c | 23 | ||||
| -rw-r--r-- | firmware/firmware.make | 6 |
3 files changed, 25 insertions, 5 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index 3d9c60d..c95946d 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -64,6 +64,7 @@ libc/mktime.c #endif /* !defined(SIMULATOR)*/ /* Common */ +common/version.c common/config.c common/crc32.c #ifdef MI4_FORMAT diff --git a/firmware/common/version.c b/firmware/common/version.c new file mode 100644 index 0000000..762842c --- /dev/null +++ b/firmware/common/version.c @@ -0,0 +1,23 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2010 by Frank Gevaerts + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +#include "version.h" +const char rbversion[] = RBVERSION; diff --git a/firmware/firmware.make b/firmware/firmware.make index badd22a..3ccff00 100644 --- a/firmware/firmware.make +++ b/firmware/firmware.make @@ -17,7 +17,6 @@ FIRMLIB_OBJ := $(call c2obj, $(FIRMLIB_SRC)) ifeq (,$(findstring -DARCHOS_PLAYER,$(TARGET))) FIRMLIB_OBJ += $(BUILDDIR)/sysfont.o endif -FIRMLIB_OBJ += $(BUILDDIR)/version.o OTHER_SRC += $(FIRMLIB_SRC) FIRMLIB = $(BUILDDIR)/firmware/libfirmware.a @@ -51,8 +50,5 @@ ifneq ($(SVNVERSION),$(OLDSVNVERSION)) .PHONY: $(BUILDDIR)/version.h endif -$(BUILDDIR)/version.c: $(BUILDDIR)/version.h - $(TOOLSDIR)/genversion.sh c $(BUILDDIR) $(TOOLSDIR)/version.sh $(ROOTDIR) - $(BUILDDIR)/version.h: - $(TOOLSDIR)/genversion.sh h $(BUILDDIR) $(TOOLSDIR)/version.sh $(ROOTDIR) + $(TOOLSDIR)/genversion.sh $(BUILDDIR) $(TOOLSDIR)/version.sh $(ROOTDIR) |