Browse Source

Move versioning to MarlinConfig.h

Scott Lahteine 8 years ago
parent
commit
24a1a16e5d
25 changed files with 57 additions and 186 deletions
  1. 0
    6
      Marlin/Configuration.h
  2. 1
    0
      Marlin/MarlinConfig.h
  3. 56
    48
      Marlin/Version.h
  4. 0
    6
      Marlin/example_configurations/Cartesio/Configuration.h
  5. 0
    6
      Marlin/example_configurations/Felix/Configuration.h
  6. 0
    6
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  7. 0
    6
      Marlin/example_configurations/Hephestos/Configuration.h
  8. 0
    6
      Marlin/example_configurations/Hephestos_2/Configuration.h
  9. 0
    6
      Marlin/example_configurations/K8200/Configuration.h
  10. 0
    6
      Marlin/example_configurations/K8400/Configuration.h
  11. 0
    6
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  12. 0
    6
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  13. 0
    6
      Marlin/example_configurations/RigidBot/Configuration.h
  14. 0
    6
      Marlin/example_configurations/SCARA/Configuration.h
  15. 0
    6
      Marlin/example_configurations/TAZ4/Configuration.h
  16. 0
    6
      Marlin/example_configurations/WITBOX/Configuration.h
  17. 0
    6
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  18. 0
    6
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  19. 0
    6
      Marlin/example_configurations/delta/generic/Configuration.h
  20. 0
    6
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  21. 0
    6
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  22. 0
    6
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  23. 0
    6
      Marlin/example_configurations/makibox/Configuration.h
  24. 0
    6
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  25. 0
    6
      Marlin/language.h

+ 0
- 6
Marlin/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 1
- 0
Marlin/MarlinConfig.h View File

@@ -25,6 +25,7 @@
25 25
 
26 26
 #include "macros.h"
27 27
 #include "boards.h"
28
+#include "Version.h"
28 29
 #include "Configuration.h"
29 30
 #include "Conditionals_LCD.h"
30 31
 #include "Configuration_adv.h"

+ 56
- 48
Marlin/Version.h View File

@@ -26,59 +26,67 @@
26 26
  * directive USE_AUTOMATIC_VERSIONING.
27 27
  */
28 28
 
29
-/**
30
- * Marlin release version identifier
31
- */
32
-#define SHORT_BUILD_VERSION "1.1.0-RCBugFix"
29
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
33 30
 
34
-/**
35
- * Verbose version identifier which should contain a reference to the location
36
- * from where the binary was downloaded or the source code was compiled.
37
- */
38
-#define DETAILED_BUILD_VERSION SHORT_BUILD_VERSION " (Github)"
31
+  #include "_Version.h"
39 32
 
40
-/**
41
- * The STRING_DISTRIBUTION_DATE represents when the binary file was built,
42
- * here we define this default string as the date where the latest release
43
- * version was tagged.
44
- */
45
-#define STRING_DISTRIBUTION_DATE "2016-04-27 12:00"
33
+#else
46 34
 
47
-/**
48
- * Required minimum Configuration.h and Configuration_adv.h file versions.
49
- *
50
- * You must increment this version number for every significant change such as,
51
- * but not limited to: ADD, DELETE RENAME OR REPURPOSE any directive/option on
52
- * the configuration files.
53
- */
54
-#define REQUIRED_CONFIGURATION_H_VERSION 010100
55
-#define REQUIRED_CONFIGURATION_ADV_H_VERSION 010100
35
+  /**
36
+   * Marlin release version identifier
37
+   */
38
+  #define SHORT_BUILD_VERSION "1.1.0-RCBugFix"
56 39
 
57
-/**
58
- * @todo: Missing documentation block
59
- */
60
-#define PROTOCOL_VERSION "1.0"
40
+  /**
41
+   * Verbose version identifier which should contain a reference to the location
42
+   * from where the binary was downloaded or the source code was compiled.
43
+   */
44
+  #define DETAILED_BUILD_VERSION SHORT_BUILD_VERSION " (Github)"
61 45
 
62
-/**
63
- * Defines a generic printer name to be output to the LCD after booting Marlin.
64
- */
65
-#define MACHINE_NAME "3D Printer"
46
+  /**
47
+   * The STRING_DISTRIBUTION_DATE represents when the binary file was built,
48
+   * here we define this default string as the date where the latest release
49
+   * version was tagged.
50
+   */
51
+  #define STRING_DISTRIBUTION_DATE "2016-04-27 12:00"
66 52
 
67
-/**
68
- * The SOURCE_CODE_URL is the location where users will find the Marlin Source
69
- * Code which is installed on the device. In most cases —unless the manufacturer
70
- * has a distinct Github fork— the Source Code URL should just be the main
71
- * Marlin repository.
72
- */
73
-#define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
53
+  /**
54
+   * Required minimum Configuration.h and Configuration_adv.h file versions.
55
+   *
56
+   * You must increment this version number for every significant change such as,
57
+   * but not limited to: ADD, DELETE RENAME OR REPURPOSE any directive/option on
58
+   * the configuration files.
59
+   */
60
+  #define REQUIRED_CONFIGURATION_H_VERSION 010100
61
+  #define REQUIRED_CONFIGURATION_ADV_H_VERSION 010100
74 62
 
75
-/**
76
- * Default generic printer UUID.
77
- */
78
-#define DEFAULT_MACHINE_UUID "cede2a2f-41a2-4748-9b12-c55c62f367ff"
63
+  /**
64
+   * @todo: Missing documentation block
65
+   */
66
+  #define PROTOCOL_VERSION "1.0"
79 67
 
80
-/**
81
- * The WEBSITE_URL is the location where users can get more information such as
82
- * documentation about a specific Marlin release.
83
- */
84
-#define WEBSITE_URL "http://marlinfw.org"
68
+  /**
69
+   * Defines a generic printer name to be output to the LCD after booting Marlin.
70
+   */
71
+  #define MACHINE_NAME "3D Printer"
72
+
73
+  /**
74
+   * The SOURCE_CODE_URL is the location where users will find the Marlin Source
75
+   * Code which is installed on the device. In most cases —unless the manufacturer
76
+   * has a distinct Github fork— the Source Code URL should just be the main
77
+   * Marlin repository.
78
+   */
79
+  #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
80
+
81
+  /**
82
+   * Default generic printer UUID.
83
+   */
84
+  #define DEFAULT_MACHINE_UUID "cede2a2f-41a2-4748-9b12-c55c62f367ff"
85
+
86
+  /**
87
+   * The WEBSITE_URL is the location where users can get more information such as
88
+   * documentation about a specific Marlin release.
89
+   */
90
+  #define WEBSITE_URL "http://marlinfw.org"
91
+
92
+#endif // USE_AUTOMATIC_VERSIONING

+ 0
- 6
Marlin/example_configurations/Cartesio/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/Felix/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/Hephestos_2/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/K8200/Configuration.h View File

@@ -90,12 +90,6 @@
90 90
 
91 91
 // @section info
92 92
 
93
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
94
-  #include "_Version.h"
95
-#else
96
-  #include "Version.h"
97
-#endif
98
-
99 93
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
100 94
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
101 95
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/K8400/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/K8400/Dual-head/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -108,12 +108,6 @@
108 108
 
109 109
 // @section info
110 110
 
111
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
112
-  #include "_Version.h"
113
-#else
114
-  #include "Version.h"
115
-#endif
116
-
117 111
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
118 112
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
119 113
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/TAZ4/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -89,12 +89,6 @@
89 89
 
90 90
 // @section info
91 91
 
92
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
93
-  #include "_Version.h"
94
-#else
95
-  #include "Version.h"
96
-#endif
97
-
98 92
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
99 93
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
100 94
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

@@ -76,12 +76,6 @@
76 76
 
77 77
 // @section info
78 78
 
79
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
80
-  #include "_Version.h"
81
-#else
82
-  #include "Version.h"
83
-#endif
84
-
85 79
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
86 80
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
87 81
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/makibox/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -83,12 +83,6 @@
83 83
 
84 84
 // @section info
85 85
 
86
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
87
-  #include "_Version.h"
88
-#else
89
-  #include "Version.h"
90
-#endif
91
-
92 86
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
93 87
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
94 88
 // build by the user have been successfully uploaded into firmware.

+ 0
- 6
Marlin/language.h View File

@@ -68,12 +68,6 @@
68 68
 // pt_utf8    Portuguese (UTF8)
69 69
 // ru         Russian
70 70
 
71
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
72
-  #include "_Version.h"
73
-#else
74
-  #include "Version.h"
75
-#endif
76
-
77 71
 #ifdef DEFAULT_SOURCE_CODE_URL
78 72
   #undef  SOURCE_CODE_URL
79 73
   #define SOURCE_CODE_URL DEFAULT_SOURCE_CODE_URL

Loading…
Cancel
Save