blob: 4cb43adcb44dcdd31ef45d4b0fbd9d518979e66a [file] [log] [blame]
Sebastian Bøe12f8f762017-10-27 15:43:34 +02001#ifndef _KERNEL_VERSION_H_
2#define _KERNEL_VERSION_H_
3
Marc Herberta880fb12019-05-03 18:29:08 -07004/* @templates@ values come from cmake/version.cmake */
5
Sebastian Bøe12f8f762017-10-27 15:43:34 +02006#cmakedefine ZEPHYR_VERSION_CODE @ZEPHYR_VERSION_CODE@
7#define ZEPHYR_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
8
9#define KERNELVERSION @KERNELVERSION@
10#define KERNEL_VERSION_NUMBER @KERNEL_VERSION_NUMBER@
11#define KERNEL_VERSION_MAJOR @KERNEL_VERSION_MAJOR@
12#define KERNEL_VERSION_MINOR @KERNEL_VERSION_MINOR@
13#define KERNEL_PATCHLEVEL @KERNEL_PATCHLEVEL@
14#define KERNEL_VERSION_STRING @KERNEL_VERSION_STRING@
15
16#endif /* _KERNEL_VERSION_H_ */