Sebastian Bøe | 12f8f76 | 2017-10-27 15:43:34 +0200 | [diff] [blame] | 1 | #ifndef _KERNEL_VERSION_H_ |
| 2 | #define _KERNEL_VERSION_H_ |
| 3 | |
Marc Herbert | a880fb1 | 2019-05-03 18:29:08 -0700 | [diff] [blame] | 4 | /* @templates@ values come from cmake/version.cmake */ |
| 5 | |
Sebastian Bøe | 12f8f76 | 2017-10-27 15:43:34 +0200 | [diff] [blame] | 6 | #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_ */ |