source: rtems/c/Makefile.in @ ecec2ba

4.104.114.84.95
Last change on this file since ecec2ba was 4721cf1, checked in by Joel Sherrill <joel.sherrill@…>, on 12/03/98 at 23:54:14

Patch from Emmanuel Raguet <raguet@…> to add remote debug server
and RPC support to RTEMS. Thanks. :) Email follows:

Hello,

For Xmas, here is the Remote Debugger on RTEMS !

Here are 2 patches for the Remote Debugger on RTEMS for pc386 from Linux
host :

  • one for RTEMS it self,
  • one for GDB-4.17.

1/ RTEMS patch
--------------

This patch adds 2 libraries :

  • a simplified SUN RPC library
  • the Remote Debugger library

The configuration command is the following :
../rtems4/configure --target=i386-rtemself --enable-rtemsbsp=pc386
--enable-rdbg

The SUN RPC library is built only if networking is set.
The RDBG library is built if networking and enable-rdbg are set.

The function used to initialize the debugger is :

rtems_rdbg_initialize ();

A special function has been created to force a task to be
in a "debug" state : enterRdbg().
The use of this function is not mandatory.

2/ GDB-4.17 patch
-----------------

This patch create a new RTEMS target for GDB-4.17.

The configuration command is the following :
./configure --enable-shared --target=i386RTEMS

To connect to a target, use :

target rtems [your_site_address]

Then, attach the target using : attach 1

And... Debug ;)

You can obtain the original GDB-4.17 on
ftp://ftp.debian.org/debian/dists/stable/main/source/devel/gdb_4.17.orig.tar.gz

This has been tested from a Debian 2.0.1 linux host.

  • Property mode set to 100644
File size: 4.1 KB
Line 
1#
2#  $Id$
3#
4# top level directory for RTEMS build tree
5# This Makefile is *not* a good example of a directory Makefile.
6#
7
8@SET_MAKE@
9srcdir = @srcdir@
10prefix = @prefix@
11exec_prefix = @exec_prefix@
12bindir = @bindir@
13libdir = @libdir@
14includedir = @includedir@
15target = @target@
16manext = 1
17mandir = @mandir@/man$(manext)
18program_prefix = @program_prefix@
19VPATH = @srcdir@
20RTEMS_ROOT = @top_srcdir@
21PROJECT_ROOT = @PROJECT_ROOT@
22
23include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
24include $(RTEMS_ROOT)/make/directory.cfg
25
26SUB_DIRS=build-tools src
27
28# We only make the install point for the networking header files if needed.
29LIBNETWORKING_yes_V = lib/include/networking lib/include/networking/sys \
30        lib/include/networking/machine lib/include/networking/rtems \
31        lib/include/networking/vm lib/include/networking/net \
32        lib/include/networking/netinet lib/include/networking/arpa \
33        lib/include/networking/nfs
34LIBNETWORKING = $(LIBNETWORKING_$(HAS_NETWORKING)_V)
35
36# We only make the rpc install point if networking is enabled.
37LIBRPC_yes_V = lib/include/rpc
38LIBRPC = $(LIBRPC_$(HAS_NETWORKING)_V)
39
40# We only make the rdbg install point if networking and rdbg is enabled.
41LIBRDBG_yes_yes_V = lib/include/rdbg
42LIBRDBG = $(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V)
43
44# We only make the rtems++ install point if it is enabled.
45LIBRTEMSCPLUSPLUS_yes_V = lib/include/rtems++
46LIBRTEMSCPLUSPLUS = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)
47
48# directories to be created in install point
49CREATE_DIRS = \
50    lib lib/include lib/include/sys lib/include/rtems \
51    lib/include/rtems/score lib/include/rtems/rtems lib/include/rtems/posix \
52    lib/include/libc lib/include/libc/sys \
53    lib/include/motorola lib/include/zilog \
54    lib/include/libchip \
55    $(LIBNETWORKING) \
56    $(LIBRPC) \
57    $(LIBRDBG) \
58    $(LIBRTEMSCPLUSPLUS) \
59    bin samples \
60    tests tests/screens tests/screens/sptests \
61    tests/screens/psxtests tests/screens/mptests \
62    tests/screens/mptests/node1 tests/screens/mptests/node2 \
63    build-tools update-tools
64
65# Make all/install must include 'env'
66# if something is added to TARGET_VARIANTS, then account for it here
67make_src_makefiles: Makefile.in Makefile
68        -find . -name Makefile \
69            -exec grep -l "^preinstall" {} \; > make_src_makefiles.tmp
70        -grep tools make_src_makefiles.tmp > make_src_makefiles
71        -grep -v tools make_src_makefiles.tmp >> make_src_makefiles
72        -rm make_src_makefiles.tmp
73
74
75pre_install_src: env make_src_makefiles
76        cd build-tools/scripts; $(MAKE)
77        @echo "Order of preinstall directories"
78        cat make_src_makefiles
79        @echo
80        CURRDIR=`pwd`; \
81        for i in `cat make_src_makefiles` ; do \
82                DIR=`dirname $$i`; \
83                cd $$DIR; \
84                $(MAKE) preinstall; \
85                cd $$CURRDIR; \
86        done
87all: pre_install_src env
88debug: pre_install_src env
89profile: pre_install_src env
90
91install: all install_files
92debug_install: env debug install_files
93profile_install: env profile install_files
94
95debug_all: debug
96profile_all: profile
97
98# top level clean/clobber will delete the install points
99clean_WRAPUP = $(MAKE) clean_wrapup
100clobber_WRAPUP = $(MAKE) clean_wrapup
101
102clean_wrapup: clean_tools clean_dirs clean_modules
103
104.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
105
106dirs:
107        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
108        if test -d $(PROJECT_ROOT)/c/src/lib/libhwapi; then \
109                (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs) \
110        fi
111
112distclean: clobber
113
114clean_dirs:
115        $(RM) -r $(PROJECT_RELEASE)
116
117clean_tools:
118        cd build-tools; $(MAKE) clean
119
120$(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc: $(PROJECT_ROOT)/make/Templates/Makefile.inc
121        echo "RTEMS_BSP = $(RTEMS_BSP)" > $@
122        $(CAT) $< >> $@
123
124# NOTE: The wildcard on the install should pick up everything except
125#       the tests directory.  This significantly minimizes the install size.
126
127install_files: $(PROJECT_ROOT)/$(RTEMS_BSP)/Makefile.inc
128        -$(MKDIR) $(prefix)/
129        -$(MKDIR) $(prefix)/rtems
130        -$(RM) -rf $(prefix)/rtems/$(RTEMS_BSP)
131        cd ../; tar cf - $(RTEMS_BSP)/[bilsuM]* | \
132                (cd $(prefix)/rtems; tar xpBf - )
133        cd ../make; $(MAKE) RTEMS_BSP=$(RTEMS_BSP) install
134
135tests:
136        cd src/tests; $(MAKE) all
137
138debug_tests: debug
139        cd src/tests; $(MAKE) debug
140
141profile_tests: profile
142        cd src/tests; $(MAKE) profile
143
144env:    $(SRCS) dirs
Note: See TracBrowser for help on using the repository browser.