2017-10-27 21:43:34 +08:00
|
|
|
#ifndef _KERNEL_VERSION_H_
|
|
|
|
#define _KERNEL_VERSION_H_
|
|
|
|
|
2022-02-04 17:27:13 +08:00
|
|
|
/* KERNEL and ZEPHYR_VERSION @templates@ values come from cmake/version.cmake
|
|
|
|
* BUILD_VERSION @template@ will be 'git describe', alternatively user defined BUILD_VERSION.
|
|
|
|
*/
|
2019-05-04 09:29:08 +08:00
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
#cmakedefine ZEPHYR_VERSION_CODE @ZEPHYR_VERSION_CODE@
|
|
|
|
#define ZEPHYR_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
|
|
|
|
|
|
|
#define KERNELVERSION @KERNELVERSION@
|
|
|
|
#define KERNEL_VERSION_NUMBER @KERNEL_VERSION_NUMBER@
|
|
|
|
#define KERNEL_VERSION_MAJOR @KERNEL_VERSION_MAJOR@
|
|
|
|
#define KERNEL_VERSION_MINOR @KERNEL_VERSION_MINOR@
|
|
|
|
#define KERNEL_PATCHLEVEL @KERNEL_PATCHLEVEL@
|
|
|
|
#define KERNEL_VERSION_STRING @KERNEL_VERSION_STRING@
|
|
|
|
|
2022-02-04 17:27:13 +08:00
|
|
|
#define BUILD_VERSION @BUILD_VERSION@
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
#endif /* _KERNEL_VERSION_H_ */
|