Changeset 9572c41 in rtems for make


Ignore:
Timestamp:
Apr 19, 1999, 1:11:13 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
196094eb
Parents:
4ad3d37
Message:

Patch from Ralf Corsepius <corsepiu@…>:

This is an attempt to work-around a couple of nasty bugs in librdbg's
Makefiles and configuration:

Configure and build RTEMS as below:

configure --enable-networking --enable-rdbg --target=i386-rtems
make RTEMS_BSP=i386ex

After a few minutes you will notice that building aborts in librdbg ....

Analysis:

1) librdbg is tried to be built, though librdbg is not supported and the

required directory hierarchy librdbg/i386/i386ex/ is not existant.

The cause for this is incorrect setting of HAS_RDBG in most
make/custom/*.cfg files (except pc386.cfg). At the moment all
custom/*.cfg files (except pc386.cfg) in general are required to contain
HAS_RDBG=no. However, having HAS_NETWORKING=no in most custom/*.cfg
files and the toplevel configure script suppress building librdbg for
all CPUs except of i386.

=> The i386ex BSP falls though this scheme and librdbg is tried to be

build (CPU=i386 and HAS_NETWORKING=yes).

2) The Makefile.ins below lib/librdbg in general support i386/pc386 only

and are not capable to be used for multiple CPUs or BSPs (RPCGEN
generates it's target and bsp-specific files into librdbg/, therefore no
other CPU or BSP can ever be built afterwards). This problem is hidden
until now, because only a single CPU/BSP pair (i386/pc386) is really
supported.

3) The Makefile.ins below lib/librdbg can delete source files due to

improper handling of source files (make clean removes the *.x files in
the source-tree when configuring inside of the source-tree).

The patch below tries to work-around these problems for the i386ex and
the pc386 BSPs. This work-around is rather fragile (it applies rpcgen
-D, I don't know how portable this is) and incomplete (all custom/*.cfg
except of pc386.cfg should contain HAS_RDBG=no), nevertheless it should
work.

Location:
make/custom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • make/custom/force386.cfg

    r4ad3d37 r9572c41  
    2525# to enable it.
    2626HAS_NETWORKING=no
     27
     28# This BSP does not support librdbg
     29HAS_RDBG=no
    2730
    2831#  This section makes the target dependent options file.
  • make/custom/i386ex.cfg

    r4ad3d37 r9572c41  
    2121# -O4 is ok for RTEMS
    2222CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
     23
     24# This BSP does not support librdbg
     25HAS_RDBG=no
    2326
    2427#  This section makes the target dependent options file.
Note: See TracChangeset for help on using the changeset viewer.