Changeset 526ebe8 in rtems for make/leaf.cfg


Ignore:
Timestamp:
03/24/98 18:44:25 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e6c92eef
Parents:
bdac86b5
Message:

Added rule to transform hppa1.1 to hppa1_1 since hppa1.1 is not a
valid cpp symbol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • make/leaf.cfg

    rbdac86b5 r526ebe8  
    127127        $(RM) -r $(CLOBBER_ADDITIONS) a.out
    128128
     129# Until RTEMS_CPU is removed from all the make configuration files,
     130# this will need to be here to transform hppa1.1 into hppa1_1 to
     131# make it a valid cpp symbol.  At some point in the near future,
     132# targopts.h should not define RTEMS_CPU.  As best I can tell,
     133# gcc cpp predefines eliminate the need for RTEMS_CPU_MODEL
     134# on some families but not on others.  For example, the i386
     135# family does not give us enough information from the predefines.
     136RTEMS_CPU_DEFINED=$(subst .,_,$(RTEMS_CPU))
     137
    129138# make the target dependent options file
    130139$(ARCH)/targopts.h-tmp: FORCE
     
    135144        @echo "#define __TARGET_OPTIONS_h"                     >>$@
    136145        @echo                                                  >>$@
    137         @echo "#ifdef $(RTEMS_CPU)"                            >>$@
    138         @echo "#undef $(RTEMS_CPU)"                            >>$@
     146        @echo "#ifdef $(RTEMS_CPU_DEFINED)"                    >>$@
     147        @echo "#undef $(RTEMS_CPU_DEFINED)"                    >>$@
    139148        @echo "#endif"                                         >>$@
    140         @echo "#define $(RTEMS_CPU) 1"                         >>$@
     149        @echo "#define $(RTEMS_CPU_DEFINED) 1"                 >>$@
    141150        @echo                                                  >>$@
    142151        @echo "#ifdef $(RTEMS_CPU_MODEL)"                      >>$@
Note: See TracChangeset for help on using the changeset viewer.