blob: 476d97eabbbdb50a88f3d2223baad0b2d4b860a0 [file] [log] [blame]
Torsten Rasmussen2c757f92023-03-23 08:43:01 +01001#ifndef _@VERSION_TYPE@_VERSION_H_
2#define _@VERSION_TYPE@_VERSION_H_
Sebastian Bøe12f8f762017-10-27 15:43:34 +02003
Torsten Rasmussen2c757f92023-03-23 08:43:01 +01004/* @templates@ values come from cmake/version.cmake
5 * BUILD_VERSION related @template@ values will be 'git describe',
6 * alternatively user defined BUILD_VERSION.
Torsten Rasmussen91709772022-02-04 10:27:13 +01007 */
Marc Herberta880fb12019-05-03 18:29:08 -07008
Sebastian Bøe12f8f762017-10-27 15:43:34 +02009#cmakedefine ZEPHYR_VERSION_CODE @ZEPHYR_VERSION_CODE@
Torsten Rasmussen2c757f92023-03-23 08:43:01 +010010#cmakedefine ZEPHYR_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
Sebastian Bøe12f8f762017-10-27 15:43:34 +020011
Torsten Rasmussen2c757f92023-03-23 08:43:01 +010012#define @VERSION_TYPE@VERSION @@VERSION_TYPE@VERSION@
13#define @VERSION_TYPE@_VERSION_NUMBER @@VERSION_TYPE@_VERSION_NUMBER@
14#define @VERSION_TYPE@_VERSION_MAJOR @@VERSION_TYPE@_VERSION_MAJOR@
15#define @VERSION_TYPE@_VERSION_MINOR @@VERSION_TYPE@_VERSION_MINOR@
16#define @VERSION_TYPE@_PATCHLEVEL @@VERSION_TYPE@_PATCHLEVEL@
Torsten Rasmussen738999e2024-01-26 11:18:09 +010017#define @VERSION_TYPE@_TWEAK @@VERSION_TYPE@_VERSION_TWEAK@
Torsten Rasmussen2c757f92023-03-23 08:43:01 +010018#define @VERSION_TYPE@_VERSION_STRING "@@VERSION_TYPE@_VERSION_STRING@"
Sebastian Bøe12f8f762017-10-27 15:43:34 +020019
Torsten Rasmussen2c757f92023-03-23 08:43:01 +010020#define @BUILD_VERSION_NAME@ @@BUILD_VERSION_NAME@@
Jamie McCrae77a00f12023-08-18 09:47:26 +010021@@VERSION_TYPE@_VERSION_CUSTOMIZATION@
Torsten Rasmussen91709772022-02-04 10:27:13 +010022
Torsten Rasmussen2c757f92023-03-23 08:43:01 +010023#endif /* _@VERSION_TYPE@_VERSION_H_ */