diff options
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 3d9c60de6c..c95946dd0d 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -64,6 +64,7 @@ libc/mktime.c | |||
64 | #endif /* !defined(SIMULATOR)*/ | 64 | #endif /* !defined(SIMULATOR)*/ |
65 | 65 | ||
66 | /* Common */ | 66 | /* Common */ |
67 | common/version.c | ||
67 | common/config.c | 68 | common/config.c |
68 | common/crc32.c | 69 | common/crc32.c |
69 | #ifdef MI4_FORMAT | 70 | #ifdef MI4_FORMAT |
diff --git a/firmware/common/version.c b/firmware/common/version.c new file mode 100644 index 0000000000..762842c6de --- /dev/null +++ b/firmware/common/version.c | |||
@@ -0,0 +1,23 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2010 by Frank Gevaerts | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #include "version.h" | ||
23 | const char rbversion[] = RBVERSION; | ||
diff --git a/firmware/firmware.make b/firmware/firmware.make index badd22ae76..3ccff00dde 100644 --- a/firmware/firmware.make +++ b/firmware/firmware.make | |||
@@ -17,7 +17,6 @@ FIRMLIB_OBJ := $(call c2obj, $(FIRMLIB_SRC)) | |||
17 | ifeq (,$(findstring -DARCHOS_PLAYER,$(TARGET))) | 17 | ifeq (,$(findstring -DARCHOS_PLAYER,$(TARGET))) |
18 | FIRMLIB_OBJ += $(BUILDDIR)/sysfont.o | 18 | FIRMLIB_OBJ += $(BUILDDIR)/sysfont.o |
19 | endif | 19 | endif |
20 | FIRMLIB_OBJ += $(BUILDDIR)/version.o | ||
21 | OTHER_SRC += $(FIRMLIB_SRC) | 20 | OTHER_SRC += $(FIRMLIB_SRC) |
22 | 21 | ||
23 | FIRMLIB = $(BUILDDIR)/firmware/libfirmware.a | 22 | FIRMLIB = $(BUILDDIR)/firmware/libfirmware.a |
@@ -51,8 +50,5 @@ ifneq ($(SVNVERSION),$(OLDSVNVERSION)) | |||
51 | .PHONY: $(BUILDDIR)/version.h | 50 | .PHONY: $(BUILDDIR)/version.h |
52 | endif | 51 | endif |
53 | 52 | ||
54 | $(BUILDDIR)/version.c: $(BUILDDIR)/version.h | ||
55 | $(TOOLSDIR)/genversion.sh c $(BUILDDIR) $(TOOLSDIR)/version.sh $(ROOTDIR) | ||
56 | |||
57 | $(BUILDDIR)/version.h: | 53 | $(BUILDDIR)/version.h: |
58 | $(TOOLSDIR)/genversion.sh h $(BUILDDIR) $(TOOLSDIR)/version.sh $(ROOTDIR) | 54 | $(TOOLSDIR)/genversion.sh $(BUILDDIR) $(TOOLSDIR)/version.sh $(ROOTDIR) |