summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-19 13:11:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-19 13:11:13 +0000
commit9572c41d0911684bdcd4c3d14c8b19ff8def65b3 (patch)
tree121088ad6afc896efe18741ea91af4f6dcd5b9f7 /make
parentRegenerated. (diff)
downloadrtems-9572c41d0911684bdcd4c3d14c8b19ff8def65b3.tar.bz2
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
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.
Diffstat (limited to 'make')
-rw-r--r--make/custom/force386.cfg3
-rw-r--r--make/custom/i386ex.cfg3
2 files changed, 6 insertions, 0 deletions
diff --git a/make/custom/force386.cfg b/make/custom/force386.cfg
index 10640dc2bb..57c832e2b9 100644
--- a/make/custom/force386.cfg
+++ b/make/custom/force386.cfg
@@ -25,6 +25,9 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# to enable it.
HAS_NETWORKING=no
+# This BSP does not support librdbg
+HAS_RDBG=no
+
# This section makes the target dependent options file.
# NDEBUG (C library)
diff --git a/make/custom/i386ex.cfg b/make/custom/i386ex.cfg
index cb85c78fba..a3dee793eb 100644
--- a/make/custom/i386ex.cfg
+++ b/make/custom/i386ex.cfg
@@ -21,6 +21,9 @@ CPU_CFLAGS =
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
+# This BSP does not support librdbg
+HAS_RDBG=no
+
# This section makes the target dependent options file.
# NDEBUG (C library)