Kumar Gala | d12d8af | 2016-10-05 12:01:54 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 1997-2010, 2012-2014 Wind River Systems, Inc. |
| 3 | * |
David B. Kinder | ac74d8b | 2017-01-18 17:01:01 -0800 | [diff] [blame] | 4 | * SPDX-License-Identifier: Apache-2.0 |
Kumar Gala | d12d8af | 2016-10-05 12:01:54 -0500 | [diff] [blame] | 5 | */ |
| 6 | |
Kumar Gala | 7890816 | 2017-04-19 10:32:08 -0500 | [diff] [blame] | 7 | #include <zephyr/types.h> |
Kumar Gala | d12d8af | 2016-10-05 12:01:54 -0500 | [diff] [blame] | 8 | #include "version.h" /* generated by MAKE, at compile time */ |
| 9 | |
Kumar Gala | d12d8af | 2016-10-05 12:01:54 -0500 | [diff] [blame] | 10 | /** |
Kumar Gala | d12d8af | 2016-10-05 12:01:54 -0500 | [diff] [blame] | 11 | * @brief Return the kernel version of the present build |
| 12 | * |
| 13 | * The kernel version is a four-byte value, whose format is described in the |
| 14 | * file "kernel_version.h". |
| 15 | * |
| 16 | * @return kernel version |
| 17 | */ |
Kumar Gala | a1b77fd | 2020-05-27 11:26:57 -0500 | [diff] [blame] | 18 | uint32_t sys_kernel_version_get(void) |
Kumar Gala | d12d8af | 2016-10-05 12:01:54 -0500 | [diff] [blame] | 19 | { |
Andrew Boie | 8e51f36 | 2017-09-07 12:01:43 -0700 | [diff] [blame] | 20 | return KERNELVERSION; |
Kumar Gala | d12d8af | 2016-10-05 12:01:54 -0500 | [diff] [blame] | 21 | } |