current GIT hash is now available to firmware source code

This commit is contained in:
rusefi 2019-02-02 19:51:39 -05:00
parent f6117c7783
commit d4bbbc506d
3 changed files with 9 additions and 5 deletions

View File

@ -1,9 +1,12 @@
// This file was generated by Version2Header
// Sat Feb 02 19:45:56 EST 2019
// Sat Feb 02 19:51:11 EST 2019
#ifndef GIT_HASH
#ifndef GIT_HASH
#define GIT_HASH "d46ebf97de076858e7654ba198dc2b19b1c4470d"
#define GIT_HASH "6709070817d11e1190e87dc26cd09d807e2a6497"
#endif
#ifndef VCS_VERSION
#define VCS_VERSION "16628"
#define VCS_VERSION "16629"
#endif

Binary file not shown.

View File

@ -70,10 +70,11 @@ public class Version2Header {
BufferedWriter bw = new BufferedWriter(new FileWriter("svnversion.h"));
bw.write("// This file was generated by Version2Header" + NL);
bw.write("// " + new Date() + NL);
bw.write("#ifndef " + GIT_HASH_TAG + NL);
bw.write(NL + NL);
bw.write("#ifndef " + GIT_HASH_TAG + NL);
bw.write("#define " + GIT_HASH_TAG + " \"" + gitHash + "\"" + NL);
bw.write("#endif" + NL);
bw.write(NL + NL);
bw.write("#ifndef " + HEADER_TAG + NL);
bw.write("#define " + HEADER_TAG + " \"" + version + "\"" + NL);
bw.write("#endif" + NL);