Changeset 51405b9 in rtems


Ignore:
Timestamp:
Jan 27, 2007, 7:27:41 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Children:
4b3a3e1d
Parents:
7246b0c9
Message:

Dynamically derive RTEMS_MAJOR,
RTEMS_MINOR, RTEMS_REVISION from _RTEMS_VERSION.
Add
RTEMS_MAJOR, RTEMS_MINOR,RTEMS_REVISION to cpuopt.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/configure.ac

    r7246b0c9 r51405b9  
    122122])
    123123])
     124
     125rtems_major=`echo _RTEMS_VERSION | sed "s/\..*//"`
     126rtems_minor=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/\..*//"`
     127rtems_revision=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/[[0-9]][[0-9]]*\.//;s/\..*//"`
    124128
    125129cat >>cpuopts.tmp <<\_ACEOF
     
    197201  [$ac_cv_sizeof_CPU_CONTEXT],
    198202  [The size of a 'CPU_CONTEXT', as computed by sizeof])
     203
     204RTEMS_CPUOPT([__RTEMS_MAJOR__],
     205  [true],
     206  [$rtems_major],
     207  [major version portion of an RTEMS release])
     208
     209RTEMS_CPUOPT([__RTEMS_MINOR__],
     210  [true],
     211  [$rtems_minor],
     212  [minor version portion of an RTEMS release])
     213
     214RTEMS_CPUOPT([__RTEMS_REVISION__],
     215  [true],
     216  [$rtems_revision],
     217  [revision version portion of an RTEMS release])
    199218
    200219cat >>cpuopts.tmp <<\_ACEOF
Note: See TracChangeset for help on using the changeset viewer.