Browse Source

Move versioning to MarlinConfig.h

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

6
Marlin/Configuration.h

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

1
Marlin/MarlinConfig.h

@ -25,6 +25,7 @@
#include "macros.h"
#include "boards.h"
#include "Version.h"
#include "Configuration.h"
#include "Conditionals_LCD.h"
#include "Configuration_adv.h"

104
Marlin/Version.h

@ -26,59 +26,67 @@
* directive USE_AUTOMATIC_VERSIONING.
*/
/**
* Marlin release version identifier
*/
#define SHORT_BUILD_VERSION "1.1.0-RCBugFix"
#if ENABLED(USE_AUTOMATIC_VERSIONING)
/**
* Verbose version identifier which should contain a reference to the location
* from where the binary was downloaded or the source code was compiled.
*/
#define DETAILED_BUILD_VERSION SHORT_BUILD_VERSION " (Github)"
#include "_Version.h"
/**
* The STRING_DISTRIBUTION_DATE represents when the binary file was built,
* here we define this default string as the date where the latest release
* version was tagged.
*/
#define STRING_DISTRIBUTION_DATE "2016-04-27 12:00"
#else
/**
* Required minimum Configuration.h and Configuration_adv.h file versions.
*
* You must increment this version number for every significant change such as,
* but not limited to: ADD, DELETE RENAME OR REPURPOSE any directive/option on
* the configuration files.
*/
#define REQUIRED_CONFIGURATION_H_VERSION 010100
#define REQUIRED_CONFIGURATION_ADV_H_VERSION 010100
/**
* Marlin release version identifier
*/
#define SHORT_BUILD_VERSION "1.1.0-RCBugFix"
/**
* @todo: Missing documentation block
*/
#define PROTOCOL_VERSION "1.0"
/**
* Verbose version identifier which should contain a reference to the location
* from where the binary was downloaded or the source code was compiled.
*/
#define DETAILED_BUILD_VERSION SHORT_BUILD_VERSION " (Github)"
/**
* Defines a generic printer name to be output to the LCD after booting Marlin.
*/
#define MACHINE_NAME "3D Printer"
/**
* The STRING_DISTRIBUTION_DATE represents when the binary file was built,
* here we define this default string as the date where the latest release
* version was tagged.
*/
#define STRING_DISTRIBUTION_DATE "2016-04-27 12:00"
/**
* The SOURCE_CODE_URL is the location where users will find the Marlin Source
* Code which is installed on the device. In most cases unless the manufacturer
* has a distinct Github fork the Source Code URL should just be the main
* Marlin repository.
*/
#define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
/**
* Required minimum Configuration.h and Configuration_adv.h file versions.
*
* You must increment this version number for every significant change such as,
* but not limited to: ADD, DELETE RENAME OR REPURPOSE any directive/option on
* the configuration files.
*/
#define REQUIRED_CONFIGURATION_H_VERSION 010100
#define REQUIRED_CONFIGURATION_ADV_H_VERSION 010100
/**
* Default generic printer UUID.
*/
#define DEFAULT_MACHINE_UUID "cede2a2f-41a2-4748-9b12-c55c62f367ff"
/**
* @todo: Missing documentation block
*/
#define PROTOCOL_VERSION "1.0"
/**
* The WEBSITE_URL is the location where users can get more information such as
* documentation about a specific Marlin release.
*/
#define WEBSITE_URL "http://marlinfw.org"
/**
* Defines a generic printer name to be output to the LCD after booting Marlin.
*/
#define MACHINE_NAME "3D Printer"
/**
* The SOURCE_CODE_URL is the location where users will find the Marlin Source
* Code which is installed on the device. In most cases unless the manufacturer
* has a distinct Github fork the Source Code URL should just be the main
* Marlin repository.
*/
#define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
/**
* Default generic printer UUID.
*/
#define DEFAULT_MACHINE_UUID "cede2a2f-41a2-4748-9b12-c55c62f367ff"
/**
* The WEBSITE_URL is the location where users can get more information such as
* documentation about a specific Marlin release.
*/
#define WEBSITE_URL "http://marlinfw.org"
#endif // USE_AUTOMATIC_VERSIONING

6
Marlin/example_configurations/Cartesio/Configuration.h

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

6
Marlin/example_configurations/Felix/Configuration.h

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

6
Marlin/example_configurations/Felix/DUAL/Configuration.h

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

6
Marlin/example_configurations/Hephestos/Configuration.h

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

6
Marlin/example_configurations/Hephestos_2/Configuration.h

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

6
Marlin/example_configurations/K8200/Configuration.h

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

6
Marlin/example_configurations/K8400/Configuration.h

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

6
Marlin/example_configurations/K8400/Dual-head/Configuration.h

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

6
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h

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

6
Marlin/example_configurations/RigidBot/Configuration.h

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

6
Marlin/example_configurations/SCARA/Configuration.h

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

6
Marlin/example_configurations/TAZ4/Configuration.h

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

6
Marlin/example_configurations/WITBOX/Configuration.h

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

6
Marlin/example_configurations/adafruit/ST7565/Configuration.h

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

6
Marlin/example_configurations/delta/biv2.5/Configuration.h

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

6
Marlin/example_configurations/delta/generic/Configuration.h

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

6
Marlin/example_configurations/delta/kossel_mini/Configuration.h

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

6
Marlin/example_configurations/delta/kossel_pro/Configuration.h

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

6
Marlin/example_configurations/delta/kossel_xl/Configuration.h

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

6
Marlin/example_configurations/makibox/Configuration.h

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

6
Marlin/example_configurations/tvrrug/Round2/Configuration.h

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

6
Marlin/language.h

@ -68,12 +68,6 @@
// pt_utf8 Portuguese (UTF8)
// ru Russian
#if ENABLED(USE_AUTOMATIC_VERSIONING)
#include "_Version.h"
#else
#include "Version.h"
#endif
#ifdef DEFAULT_SOURCE_CODE_URL
#undef SOURCE_CODE_URL
#define SOURCE_CODE_URL DEFAULT_SOURCE_CODE_URL

Loading…
Cancel
Save