user_version.h 835 B

12345678910111213141516171819202122232425
  1. #ifndef __USER_VERSION_H__
  2. #define __USER_VERSION_H__
  3. #include "version.h" /* ESP firmware header */
  4. #include <buildinfo.h>
  5. #define NODE_VERSION_MAJOR ESP_SDK_VERSION_MAJOR
  6. #define NODE_VERSION_MINOR ESP_SDK_VERSION_MINOR
  7. #define NODE_VERSION_REVISION ESP_SDK_VERSION_PATCH
  8. #define NODE_VERSION_INTERNAL 0
  9. #define NODE_VERSION_STR(x) #x
  10. #define NODE_VERSION_XSTR(x) NODE_VERSION_STR(x)
  11. # define NODE_VERSION "NodeMCU " ESP_SDK_VERSION_STRING "." NODE_VERSION_XSTR(NODE_VERSION_INTERNAL) " " NODE_VERSION_LONG
  12. // Leave the space after # in the line above. It busts replacement of NODE_VERSION in the docker build which is not needed anymore with this PR.
  13. // Can be removed when the script is adapted
  14. #ifndef BUILD_DATE
  15. #define BUILD_DATE BUILDINFO_BUILD_DATE
  16. #endif
  17. extern char SDK_VERSION[];
  18. #endif /* __USER_VERSION_H__ */