Changeset ea35fdc in rtems


Ignore:
Timestamp:
Jan 27, 2007, 7:21:27 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
7364df6
Parents:
8db96e5
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

    r8db96e5 rea35fdc  
    103103])
    104104])
     105
     106rtems_major=`echo _RTEMS_VERSION | sed "s/\..*//"`
     107rtems_minor=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/\..*//"`
     108rtems_revision=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/[[0-9]][[0-9]]*\.//;s/\..*//"`
    105109
    106110cat >>cpuopts.tmp <<\_ACEOF
     
    173177  [$ac_cv_sizeof_CPU_CONTEXT],
    174178  [The size of a 'CPU_CONTEXT', as computed by sizeof])
     179
     180RTEMS_CPUOPT([__RTEMS_MAJOR__],
     181  [true],
     182  [$rtems_major],
     183  [major version portion of an RTEMS release])
     184
     185RTEMS_CPUOPT([__RTEMS_MINOR__],
     186  [true],
     187  [$rtems_minor],
     188  [minor version portion of an RTEMS release])
     189
     190RTEMS_CPUOPT([__RTEMS_REVISION__],
     191  [true],
     192  [$rtems_revision],
     193  [revision version portion of an RTEMS release])
    175194
    176195cat >>cpuopts.tmp <<\_ACEOF
Note: See TracChangeset for help on using the changeset viewer.