diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-01-27 07:27:41 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-01-27 07:27:41 +0000 |
commit | 51405b94e825698f1941acd1cfa5aa2708739b76 (patch) | |
tree | e54ee2d9b127adc83931e79e46ccce73e5b1d60d /cpukit | |
parent | Cosmetics. (diff) | |
download | rtems-51405b94e825698f1941acd1cfa5aa2708739b76.tar.bz2 |
Dynamically derive __ __RTEMS_MAJOR__,
__RTEMS_MINOR__, __RTEMS_REVISION__ from _RTEMS_VERSION.
Add __RTEMS_MAJOR__, __RTEMS_MINOR__,__RTEMS_REVISION__ to cpuopt.h.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpukit/configure.ac b/cpukit/configure.ac index 8dd3e06c2b..c77a17cecb 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -122,6 +122,10 @@ typedef struct { ]) ]) +rtems_major=`echo _RTEMS_VERSION | sed "s/\..*//"` +rtems_minor=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/\..*//"` +rtems_revision=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/[[0-9]][[0-9]]*\.//;s/\..*//"` + cat >>cpuopts.tmp <<\_ACEOF /** * @file rtems/score/cpuopts.h @@ -197,6 +201,21 @@ RTEMS_CPUOPT([SIZEOF_CPU_CONTEXT], [$ac_cv_sizeof_CPU_CONTEXT], [The size of a 'CPU_CONTEXT', as computed by sizeof]) +RTEMS_CPUOPT([__RTEMS_MAJOR__], + [true], + [$rtems_major], + [major version portion of an RTEMS release]) + +RTEMS_CPUOPT([__RTEMS_MINOR__], + [true], + [$rtems_minor], + [minor version portion of an RTEMS release]) + +RTEMS_CPUOPT([__RTEMS_REVISION__], + [true], + [$rtems_revision], + [revision version portion of an RTEMS release]) + cat >>cpuopts.tmp <<\_ACEOF #endif /* _RTEMS_SCORE_CPUOPTS_H */ |