Browse Source

Merge pull request #7 from Wackerbarth/DetailedBuildVersion

Provide both long and short version strings
AnHardt 10 years ago
parent
commit
e3acc84b99
26 changed files with 81 additions and 68 deletions
  1. 0
    2
      ArduinoAddons/Arduino_1.5.x/hardware/marlin/avr/platform.local.txt
  2. 1
    1
      ArduinoAddons/Arduino_1.6.x/hardware/marlin/avr/platform.local.txt
  3. 8
    3
      LinuxAddons/bin/generate_version_header_for_marlin
  4. 2
    2
      Marlin/Configuration.h
  5. 4
    3
      Marlin/Default_Version.h
  6. 1
    1
      Marlin/Marlin_main.cpp
  7. 8
    0
      Marlin/SanityCheck.h
  8. 2
    2
      Marlin/configurator/config/Configuration.h
  9. 4
    1
      Marlin/configurator/config/boards.h
  10. 15
    14
      Marlin/configurator/config/language.h
  11. 2
    2
      Marlin/example_configurations/Felix/Configuration.h
  12. 2
    2
      Marlin/example_configurations/Felix/Configuration_DUAL.h
  13. 2
    2
      Marlin/example_configurations/Hephestos/Configuration.h
  14. 2
    2
      Marlin/example_configurations/K8200/Configuration.h
  15. 2
    2
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  16. 2
    2
      Marlin/example_configurations/RigidBot/Configuration.h
  17. 2
    2
      Marlin/example_configurations/SCARA/Configuration.h
  18. 2
    2
      Marlin/example_configurations/WITBOX/Configuration.h
  19. 2
    2
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  20. 2
    2
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  21. 2
    2
      Marlin/example_configurations/delta/generic/Configuration.h
  22. 2
    2
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  23. 2
    2
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  24. 2
    2
      Marlin/example_configurations/makibox/Configuration.h
  25. 2
    2
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  26. 6
    9
      Marlin/language.h

+ 0
- 2
ArduinoAddons/Arduino_1.5.x/hardware/marlin/avr/platform.local.txt View File

1
-compiler.cpp.extra_flags=-DHAS_AUTOMATIC_VERSIONING
2
-recipe.hooks.prebuild.pattern=/usr/local/bin/generate_version_header_for_marlin "{build.source.path}" "{build.path}/_Version.h"

+ 1
- 1
ArduinoAddons/Arduino_1.6.x/hardware/marlin/avr/platform.local.txt View File

1
-compiler.cpp.extra_flags=-DHAS_AUTOMATIC_VERSIONING
1
+compiler.cpp.extra_flags=-DUSE_AUTOMATIC_VERSIONING
2
 build.custom_bin.path.macosx=/usr/local/bin/
2
 build.custom_bin.path.macosx=/usr/local/bin/
3
 build.custom_bin.path.linux=
3
 build.custom_bin.path.linux=
4
 recipe.hooks.prebuild0.pattern={build.custom_bin.path}generate_version_header_for_marlin "{build.source.path}" "{build.path}/_Version.h"
4
 recipe.hooks.prebuild0.pattern={build.custom_bin.path}generate_version_header_for_marlin "{build.source.path}" "{build.path}/_Version.h"

+ 8
- 3
LinuxAddons/bin/generate_version_header_for_marlin View File

21
   else
21
   else
22
     BRANCH=" $BRANCH"
22
     BRANCH=" $BRANCH"
23
   fi
23
   fi
24
-  VERSION=`git describe --tags --first-parent 2>/dev/null` 
24
+  VERSION=`git describe --tags --first-parent 2>/dev/null`
25
   if [ "x$VERSION" != "x" ] ; then
25
   if [ "x$VERSION" != "x" ] ; then
26
-    echo "#define BUILD_VERSION \"$VERSION\"" | sed "s/-/$BRANCH-/" >>"$OUTFILE"
26
+    echo "#define SHORT_BUILD_VERSION \"$VERSION\"" | sed "s/-.*/$BRANCH\"/" >>"$OUTFILE"
27
+    echo "#define DETAILED_BUILD_VERSION \"$VERSION\"" | sed "s/-/$BRANCH-/" >>"$OUTFILE"
28
+  else
29
+    VERSION=`git describe --tags --first-parent --always 2>/dev/null`
30
+    echo "#define SHORT_BUILD_VERSION \"$BRANCH\"" >>"$OUTFILE"
31
+    echo "#define DETAILED_BUILD_VERSION \"${BRANCH}-$VERSION\"" >>"$OUTFILE"
27
   fi
32
   fi
28
-  URL=`git config --local --get remote.origin.url | sed "sx.*github.com:xhttps://github.com/x" | sed "sx\.gitx/x"`
33
+  URL=`git config --local --get remote.origin.url | sed "sx.*github.com.xhttps://github.com/x" | sed "sx\.gitx/x"`
29
   if [ "x$URL" != "x" ] ; then
34
   if [ "x$URL" != "x" ] ; then
30
     echo "#define SOURCE_CODE_URL  \""$URL"\"" >>"$OUTFILE"
35
     echo "#define SOURCE_CODE_URL  \""$URL"\"" >>"$OUTFILE"
31
     echo "// Deprecated URL definition" >>"$OUTFILE"
36
     echo "// Deprecated URL definition" >>"$OUTFILE"

+ 2
- 2
Marlin/Configuration.h View File

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

+ 4
- 3
Marlin/Default_Version.h View File

3
  * It takes the place of an automatically created "_Version.h" which is generated during the build process
3
  * It takes the place of an automatically created "_Version.h" which is generated during the build process
4
  */
4
  */
5
 
5
 
6
-// #error "You must specify the following parameter related to your distribution"
6
+// #error "You must specify the following parameters related to your distribution"
7
 
7
 
8
 #if true
8
 #if true
9
-  #define BUILD_VERSION "1.0.3 dev"
10
-  #define STRING_DISTRIBUTION_DATE "2015-06-00 12:00"
9
+  #define SHORT_BUILD_VERSION "1.1.0 dev"
10
+  #define DETAILED_BUILD_VERSION "1.1.0 Development From Archive"
11
+  #define STRING_DISTRIBUTION_DATE "2015-08-00 12:00"
11
   // It might also be appropriate to define a location where additional information can be found
12
   // It might also be appropriate to define a location where additional information can be found
12
   #define SOURCE_CODE_URL  "http:// ..."
13
   #define SOURCE_CODE_URL  "http:// ..."
13
 #endif
14
 #endif

+ 1
- 1
Marlin/Marlin_main.cpp View File

638
   MCUSR = 0;
638
   MCUSR = 0;
639
 
639
 
640
   SERIAL_ECHOPGM(MSG_MARLIN);
640
   SERIAL_ECHOPGM(MSG_MARLIN);
641
-  SERIAL_ECHOLNPGM(" " BUILD_VERSION);
641
+  SERIAL_ECHOLNPGM(" " SHORT_BUILD_VERSION);
642
 
642
 
643
   #ifdef STRING_DISTRIBUTION_DATE
643
   #ifdef STRING_DISTRIBUTION_DATE
644
     #ifdef STRING_CONFIG_H_AUTHOR
644
     #ifdef STRING_CONFIG_H_AUTHOR

+ 8
- 0
Marlin/SanityCheck.h View File

378
     #error BTENABLED has been replaced with BLUETOOTH. Please update your configuration.
378
     #error BTENABLED has been replaced with BLUETOOTH. Please update your configuration.
379
   #endif
379
   #endif
380
 
380
 
381
+  #ifdef CUSTOM_MENDEL_NAME
382
+    #error CUSTOM_MENDEL_NAME deprecated - use CUSTOM_MACHINE_NAME instead
383
+  #endif
384
+
385
+  #ifdef HAS_AUTOMATIC_VERSIONING
386
+    #error HAS_AUTOMATIC_VERSIONING deprecated - use USE_AUTOMATIC_VERSIONING instead
387
+  #endif
388
+
381
 #endif //SANITYCHECK_H
389
 #endif //SANITYCHECK_H

+ 2
- 2
Marlin/configurator/config/Configuration.h View File

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

+ 4
- 1
Marlin/configurator/config/boards.h View File

16
 #define BOARD_RAMPS_13_EEF      36   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
16
 #define BOARD_RAMPS_13_EEF      36   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
17
 #define BOARD_RAMPS_13_SF       38   // RAMPS 1.3 / 1.4 (Power outputs: Spindle, Controller Fan)
17
 #define BOARD_RAMPS_13_SF       38   // RAMPS 1.3 / 1.4 (Power outputs: Spindle, Controller Fan)
18
 #define BOARD_FELIX2            37   // Felix 2.0+ Electronics Board (RAMPS like)
18
 #define BOARD_FELIX2            37   // Felix 2.0+ Electronics Board (RAMPS like)
19
+#define BOARD_RIGIDBOARD        42   // Invent-A-Part RigidBoard
19
 #define BOARD_GEN6              5    // Gen6
20
 #define BOARD_GEN6              5    // Gen6
20
 #define BOARD_GEN6_DELUXE       51   // Gen6 deluxe
21
 #define BOARD_GEN6_DELUXE       51   // Gen6 deluxe
21
 #define BOARD_SANGUINOLOLU_11   6    // Sanguinololu < 1.2
22
 #define BOARD_SANGUINOLOLU_11   6    // Sanguinololu < 1.2
42
 #define BOARD_GEN3_MONOLITHIC   22   // Gen3 Monolithic Electronics
43
 #define BOARD_GEN3_MONOLITHIC   22   // Gen3 Monolithic Electronics
43
 #define BOARD_MEGATRONICS       70   // Megatronics
44
 #define BOARD_MEGATRONICS       70   // Megatronics
44
 #define BOARD_MEGATRONICS_2     701  // Megatronics v2.0
45
 #define BOARD_MEGATRONICS_2     701  // Megatronics v2.0
45
-#define BOARD_MEGATRONICS_1     702  // Minitronics v1.0
46
+#define BOARD_MINITRONICS       702  // Minitronics v1.0/1.1
46
 #define BOARD_MEGATRONICS_3     703  // Megatronics v3.0
47
 #define BOARD_MEGATRONICS_3     703  // Megatronics v3.0
47
 #define BOARD_OMCA_A            90   // Alpha OMCA board
48
 #define BOARD_OMCA_A            90   // Alpha OMCA board
48
 #define BOARD_OMCA              91   // Final OMCA board
49
 #define BOARD_OMCA              91   // Final OMCA board
49
 #define BOARD_RAMBO             301  // Rambo
50
 #define BOARD_RAMBO             301  // Rambo
51
+#define BOARD_MINIRAMBO         302  // Mini-Rambo
52
+#define BOARD_MEGACONTROLLER    310  // Mega controller
50
 #define BOARD_ELEFU_3           21   // Elefu Ra Board (v3)
53
 #define BOARD_ELEFU_3           21   // Elefu Ra Board (v3)
51
 #define BOARD_5DPRINT           88   // 5DPrint D8 Driver Board
54
 #define BOARD_5DPRINT           88   // 5DPrint D8 Driver Board
52
 #define BOARD_LEAPFROG          999  // Leapfrog
55
 #define BOARD_LEAPFROG          999  // Leapfrog

+ 15
- 14
Marlin/configurator/config/language.h View File

20
 // de       German
20
 // de       German
21
 // es       Spanish
21
 // es       Spanish
22
 // ru       Russian
22
 // ru       Russian
23
+// bg       Bulgarian
23
 // it       Italian
24
 // it       Italian
24
 // pt       Portuguese
25
 // pt       Portuguese
25
 // pt-br    Portuguese (Brazil)
26
 // pt-br    Portuguese (Brazil)
37
   #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
38
   #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
38
 #endif
39
 #endif
39
 
40
 
40
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
41
   #include "_Version.h"
42
   #include "_Version.h"
43
+#else
44
+  #include "Default_Version.h"
42
 #endif
45
 #endif
43
 
46
 
44
 #define PROTOCOL_VERSION "1.0"
47
 #define PROTOCOL_VERSION "1.0"
45
 
48
 
46
 #if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
49
 #if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
47
   #define MACHINE_NAME "Ultimaker"
50
   #define MACHINE_NAME "Ultimaker"
48
-  #define SOURCE_CODE_URL "http://firmware.ultimaker.com"
51
+  #define SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
49
 #elif MB(RUMBA)
52
 #elif MB(RUMBA)
50
   #define MACHINE_NAME "Rumba"
53
   #define MACHINE_NAME "Rumba"
51
 #elif MB(3DRAG)
54
 #elif MB(3DRAG)
63
   #define MACHINE_NAME "3D Printer"
66
   #define MACHINE_NAME "3D Printer"
64
 #endif
67
 #endif
65
 
68
 
66
-#ifdef CUSTOM_MENDEL_NAME
67
-  #error CUSTOM_MENDEL_NAME deprecated - use CUSTOM_MACHINE_NAME
68
-  #define CUSTOM_MACHINE_NAME CUSTOM_MENDEL_NAME
69
-#endif
70
-
71
 #ifdef CUSTOM_MACHINE_NAME
69
 #ifdef CUSTOM_MACHINE_NAME
72
   #undef MACHINE_NAME
70
   #undef MACHINE_NAME
73
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
71
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
77
   #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
75
   #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
78
 #endif
76
 #endif
79
 
77
 
80
-#ifndef BUILD_VERSION
81
-  #define BUILD_VERSION "V1; Sprinter/grbl mashup for gen6"
78
+#ifndef DETAILED_BUILD_VERSION
79
+  #error BUILD_VERSION Information must be specified
82
 #endif
80
 #endif
83
 
81
 
84
 #ifndef MACHINE_UUID
82
 #ifndef MACHINE_UUID
122
 #define MSG_INVALID_EXTRUDER                "Invalid extruder"
120
 #define MSG_INVALID_EXTRUDER                "Invalid extruder"
123
 #define MSG_INVALID_SOLENOID                "Invalid solenoid"
121
 #define MSG_INVALID_SOLENOID                "Invalid solenoid"
124
 #define MSG_ERR_NO_THERMISTORS              "No thermistors - no temperature"
122
 #define MSG_ERR_NO_THERMISTORS              "No thermistors - no temperature"
125
-#define MSG_HEATING                         "Heating..."
126
-#define MSG_HEATING_COMPLETE                "Heating done."
127
-#define MSG_BED_HEATING                     "Bed Heating."
128
-#define MSG_BED_DONE                        "Bed done."
129
-#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
123
+#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
130
 #define MSG_COUNT_X                         " Count X: "
124
 #define MSG_COUNT_X                         " Count X: "
131
 #define MSG_ERR_KILLED                      "Printer halted. kill() called!"
125
 #define MSG_ERR_KILLED                      "Printer halted. kill() called!"
132
 #define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
126
 #define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
195
 #define MSG_KP                              " Kp: "
189
 #define MSG_KP                              " Kp: "
196
 #define MSG_KI                              " Ki: "
190
 #define MSG_KI                              " Ki: "
197
 #define MSG_KD                              " Kd: "
191
 #define MSG_KD                              " Kd: "
192
+#define MSG_B                               "B:"
193
+#define MSG_T                               "T:"
198
 #define MSG_AT                              " @:"
194
 #define MSG_AT                              " @:"
199
 #define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
195
 #define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
200
 #define MSG_PID_DEBUG                       " PID_DEBUG "
196
 #define MSG_PID_DEBUG                       " PID_DEBUG "
213
 #define MSG_T_MAXTEMP                       "MAXTEMP triggered"
209
 #define MSG_T_MAXTEMP                       "MAXTEMP triggered"
214
 #define MSG_T_MINTEMP                       "MINTEMP triggered"
210
 #define MSG_T_MINTEMP                       "MINTEMP triggered"
215
 
211
 
212
+// Debug
213
+#define MSG_DEBUG_ECHO                      "DEBUG ECHO ENABLED"
214
+#define MSG_DEBUG_INFO                      "DEBUG INFO ENABLED"
215
+#define MSG_DEBUG_ERRORS                    "DEBUG ERRORS ENABLED"
216
+#define MSG_DEBUG_DRYRUN                    "DEBUG DRYRUN ENABLED"
216
 
217
 
217
 // LCD Menu Messages
218
 // LCD Menu Messages
218
 
219
 

+ 2
- 2
Marlin/example_configurations/Felix/Configuration.h View File

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

+ 2
- 2
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

+ 2
- 2
Marlin/example_configurations/Hephestos/Configuration.h View File

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

+ 2
- 2
Marlin/example_configurations/K8200/Configuration.h View File

43
 
43
 
44
 // @section info
44
 // @section info
45
 
45
 
46
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
46
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
47
   #include "_Version.h"
47
   #include "_Version.h"
48
 #else
48
 #else
49
   #include "Default_Version.h"
49
   #include "Default_Version.h"
54
 // build by the user have been successfully uploaded into firmware.
54
 // build by the user have been successfully uploaded into firmware.
55
 #define STRING_CONFIG_H_AUTHOR "(K8200, CONSULitAS)" // Who made the changes.
55
 #define STRING_CONFIG_H_AUTHOR "(K8200, CONSULitAS)" // Who made the changes.
56
 #define SHOW_BOOTSCREEN
56
 #define SHOW_BOOTSCREEN
57
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
57
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
58
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
58
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
59
 
59
 
60
 // @section machine
60
 // @section machine

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

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "RepRapWorld.com" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "RepRapWorld.com" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

+ 2
- 2
Marlin/example_configurations/RigidBot/Configuration.h View File

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

+ 2
- 2
Marlin/example_configurations/SCARA/Configuration.h View File

63
 
63
 
64
 // @section info
64
 // @section info
65
 
65
 
66
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
66
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
67
   #include "_Version.h"
67
   #include "_Version.h"
68
 #else
68
 #else
69
   #include "Default_Version.h"
69
   #include "Default_Version.h"
74
 // build by the user have been successfully uploaded into firmware.
74
 // build by the user have been successfully uploaded into firmware.
75
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
75
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
76
 #define SHOW_BOOTSCREEN
76
 #define SHOW_BOOTSCREEN
77
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
77
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
78
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
78
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
79
 
79
 
80
 // @section machine
80
 // @section machine

+ 2
- 2
Marlin/example_configurations/WITBOX/Configuration.h View File

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(bq Witbox)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(bq Witbox)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

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

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

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

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

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

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

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

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

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

42
 
42
 
43
 // @section info
43
 // @section info
44
 
44
 
45
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
45
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
46
   #include "_Version.h"
46
   #include "_Version.h"
47
 #else
47
 #else
48
   #include "Default_Version.h"
48
   #include "Default_Version.h"
53
 // build by the user have been successfully uploaded into firmware.
53
 // build by the user have been successfully uploaded into firmware.
54
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
54
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
55
 #define SHOW_BOOTSCREEN
55
 #define SHOW_BOOTSCREEN
56
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
56
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
57
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
57
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
58
 
58
 
59
 // @section machine
59
 // @section machine

+ 2
- 2
Marlin/example_configurations/makibox/Configuration.h View File

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

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

38
 
38
 
39
 // @section info
39
 // @section info
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
 #else
43
 #else
44
   #include "Default_Version.h"
44
   #include "Default_Version.h"
49
 // build by the user have been successfully uploaded into firmware.
49
 // build by the user have been successfully uploaded into firmware.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
 #define SHOW_BOOTSCREEN
51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
 
54
 
55
 // @section machine
55
 // @section machine

+ 6
- 9
Marlin/language.h View File

38
   #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
38
   #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
39
 #endif
39
 #endif
40
 
40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
   #include "_Version.h"
42
   #include "_Version.h"
43
+#else
44
+  #include "Default_Version.h"
43
 #endif
45
 #endif
44
 
46
 
45
 #define PROTOCOL_VERSION "1.0"
47
 #define PROTOCOL_VERSION "1.0"
64
   #define MACHINE_NAME "3D Printer"
66
   #define MACHINE_NAME "3D Printer"
65
 #endif
67
 #endif
66
 
68
 
67
-#ifdef CUSTOM_MENDEL_NAME
68
-  #error CUSTOM_MENDEL_NAME deprecated - use CUSTOM_MACHINE_NAME
69
-  #define CUSTOM_MACHINE_NAME CUSTOM_MENDEL_NAME
70
-#endif
71
-
72
 #ifdef CUSTOM_MACHINE_NAME
69
 #ifdef CUSTOM_MACHINE_NAME
73
   #undef MACHINE_NAME
70
   #undef MACHINE_NAME
74
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
71
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
78
   #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
75
   #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
79
 #endif
76
 #endif
80
 
77
 
81
-#ifndef BUILD_VERSION
82
-  #define BUILD_VERSION "V1; Sprinter/grbl mashup for gen6"
78
+#ifndef DETAILED_BUILD_VERSION
79
+  #error BUILD_VERSION Information must be specified
83
 #endif
80
 #endif
84
 
81
 
85
 #ifndef MACHINE_UUID
82
 #ifndef MACHINE_UUID
123
 #define MSG_INVALID_EXTRUDER                "Invalid extruder"
120
 #define MSG_INVALID_EXTRUDER                "Invalid extruder"
124
 #define MSG_INVALID_SOLENOID                "Invalid solenoid"
121
 #define MSG_INVALID_SOLENOID                "Invalid solenoid"
125
 #define MSG_ERR_NO_THERMISTORS              "No thermistors - no temperature"
122
 #define MSG_ERR_NO_THERMISTORS              "No thermistors - no temperature"
126
-#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
123
+#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
127
 #define MSG_COUNT_X                         " Count X: "
124
 #define MSG_COUNT_X                         " Count X: "
128
 #define MSG_ERR_KILLED                      "Printer halted. kill() called!"
125
 #define MSG_ERR_KILLED                      "Printer halted. kill() called!"
129
 #define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
126
 #define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"

Loading…
Cancel
Save