summaryrefslogtreecommitdiffstats
path: root/firmware/common
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2014-08-27 20:47:46 -0400
committerMichael Sevakis <jethead71@rockbox.org>2014-08-28 15:48:56 +0200
commit21e2b595c2797c226699cf19a2a2ad4abf22b210 (patch)
tree172d26fe3d2673266560c1fad0378028e2dbe033 /firmware/common
parent25f73d62079b63e4420fd037ad9460004179b026 (diff)
downloadrockbox-21e2b595c2797c226699cf19a2a2ad4abf22b210.tar.gz
rockbox-21e2b595c2797c226699cf19a2a2ad4abf22b210.tar.bz2
rockbox-21e2b595c2797c226699cf19a2a2ad4abf22b210.zip
Prevent spurious recompiles on account of changed version.
After a local commit, any file that included version.h would have to be recompiled on account of the changed version string. This changes version.h in the build directory to rbversion.h and includes the preprocessor macro from rbversion.h in firmware/common/version.c so that only that one file needs to be recompiled after a local commit rather than a whole slew of them. Change-Id: I900d97e3a24a0610698283416d97b4fa3a3a2cf6 Reviewed-on: http://gerrit.rockbox.org/937 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested: Michael Sevakis <jethead71@rockbox.org>
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/version.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/version.c b/firmware/common/version.c
index 762842c6de..bb856e4219 100644
--- a/firmware/common/version.c
+++ b/firmware/common/version.c
@@ -19,5 +19,5 @@
*
****************************************************************************/
-#include "version.h"
+#include "rbversion.h"
const char rbversion[] = RBVERSION;