RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Functions
version.c File Reference

This source file contains the implementation of rtems_version(), rtems_version_control_key(), rtems_version_major(), rtems_version_minor(), and rtems_version_revision(). More...

#include <rtems/version.h>
#include <rtems/score/cpuopts.h>
#include "version-vc-key.h"

Functions

const char * rtems_version (void)
 Returns the version string.
 
int rtems_version_major (void)
 Returns the version's major number.
 
int rtems_version_minor (void)
 Returns the version's minor number.
 
int rtems_version_revision (void)
 Returns the version's revision number.
 
const char * rtems_version_control_key (void)
 Returns the version control key for the current version of code that has been built.
 
const char * rtems_version_release_label (void)
 Returns the revision label for the current version of code that has been built.
 
bool rtems_version_release_label_is_valid (void)
 Returns true, if the release label is valid, otherwise false.
 

Detailed Description

This source file contains the implementation of rtems_version(), rtems_version_control_key(), rtems_version_major(), rtems_version_minor(), and rtems_version_revision().

The version strings are created from the various pieces of version information. The main version number is part of the build system and is stamped into <rtems/score/cpuopts.h>. The revision label is determined by the build system and is a string. It can be used and so set when deploying the sources or the release label can be formed using the version control tool when the code is not released and being built with a version controlled repository.