zephyr/kernel/version.c
Andrew Boie 8e51f36bbf kernel: version: no need to store version in RAM
This is a build-time constant, just return it.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-09-07 16:34:50 -07:00

25 lines
486 B
C

/* version.c */
/*
* Copyright (c) 1997-2010, 2012-2014 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/types.h>
#include "version.h" /* generated by MAKE, at compile time */
/**
*
* @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
*/
u32_t sys_kernel_version_get(void)
{
return KERNELVERSION;
}