2023-03-23 15:43:01 +08:00
|
|
|
#ifndef _@VERSION_TYPE@_VERSION_H_
|
|
|
|
#define _@VERSION_TYPE@_VERSION_H_
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2024-02-06 13:22:34 +08:00
|
|
|
/* The template values come from cmake/version.cmake
|
|
|
|
* BUILD_VERSION related template values will be 'git describe',
|
2023-03-23 15:43:01 +08:00
|
|
|
* alternatively user defined BUILD_VERSION.
|
2022-02-04 17:27:13 +08:00
|
|
|
*/
|
2019-05-04 09:29:08 +08:00
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
#cmakedefine ZEPHYR_VERSION_CODE @ZEPHYR_VERSION_CODE@
|
2023-03-23 15:43:01 +08:00
|
|
|
#cmakedefine ZEPHYR_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2024-01-26 19:19:29 +08:00
|
|
|
#define @VERSION_TYPE@VERSION @@VERSION_TYPE@VERSION@
|
|
|
|
#define @VERSION_TYPE@_VERSION_NUMBER @@VERSION_TYPE@_VERSION_NUMBER@
|
|
|
|
#define @VERSION_TYPE@_VERSION_MAJOR @@VERSION_TYPE@_VERSION_MAJOR@
|
|
|
|
#define @VERSION_TYPE@_VERSION_MINOR @@VERSION_TYPE@_VERSION_MINOR@
|
|
|
|
#define @VERSION_TYPE@_PATCHLEVEL @@VERSION_TYPE@_PATCHLEVEL@
|
|
|
|
#define @VERSION_TYPE@_TWEAK @@VERSION_TYPE@_VERSION_TWEAK@
|
|
|
|
#define @VERSION_TYPE@_VERSION_STRING "@@VERSION_TYPE@_VERSION_STRING@"
|
|
|
|
#define @VERSION_TYPE@_VERSION_EXTENDED_STRING "@@VERSION_TYPE@_VERSION_EXTENDED_STRING@"
|
|
|
|
#define @VERSION_TYPE@_VERSION_TWEAK_STRING "@@VERSION_TYPE@_VERSION_TWEAK_STRING@"
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2023-03-23 15:43:01 +08:00
|
|
|
#define @BUILD_VERSION_NAME@ @@BUILD_VERSION_NAME@@
|
2023-08-18 16:47:26 +08:00
|
|
|
@@VERSION_TYPE@_VERSION_CUSTOMIZATION@
|
2022-02-04 17:27:13 +08:00
|
|
|
|
2023-03-23 15:43:01 +08:00
|
|
|
#endif /* _@VERSION_TYPE@_VERSION_H_ */
|