summaryrefslogtreecommitdiff
path: root/kernel/version.c
blob: 5d8b978c22e295330ff0f0f75c66fd74e1749c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* version.c */

/*
 * Copyright (c) 1997-2010, 2012-2014 Wind River Systems, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <stdint.h>
#include "version.h" /* generated by MAKE, at compile time */

static uint32_t kernel_version = KERNELVERSION;

/**
 *
 * @brief Return the kernel version of the present build
 *
 * The kernel version is a four-byte value, whose format is described in the
 * file "kernel_version.h".
 *
 * @return kernel version
 */
uint32_t sys_kernel_version_get(void)
{
	return kernel_version;
}