--- snip ---
dnl Process this file with autoconf to produce a configure script.
+sinclude(../common/aclocal.m4)
AC_PREREQ(2.5)dnl
AC_INIT(Makefile.in)
$ make -f Makefile.in SHELL=/bin/sh autoheader-changelog
$ more */new-ChangeLog
$ make -f Makefile.in SHELL=/bin/sh autoheader-install
+
+To add the entries to an alternative ChangeLog file, use:
+
+ $ make ChangeLog=MyChangeLog ....
+
\f
tconfig.in
==========
o An empty array (eg int a[0]) is not valid.
When building with GCC it is effectivly a requirement that
---enable-sim-warnings be specified during configuration.
+--enable-build-warnings=,-Werror be specified during configuration.
\f
"dump" commands under gdb
=========================
FIXME: This can obviously be made more elaborate. As needed it will be.
\f
-"dump" commands under gdb
-=========================
+Rebuilding nltvals.def
+======================
-gdbinit.in contains the following
+Checkout a copy of the SIM and LIBGLOSS modules (Unless you've already
+got one to hand):
-define dump
-set sim_debug_dump ()
-end
+ $ mkdir /tmp/$$
+ $ cd /tmp/$$
+ $ cvs checkout sim-no-testsuite libgloss-no-testsuite newlib-no-testsuite
-Simulators that define the sim_debug_dump function can then have their
-internal state pretty printed from gdb.
+Configure things for an arbitrary simulator target (I've d10v for
+convenience):
+
+ $ mkdir /tmp/$$/build
+ $ cd /tmp/$$/build
+ $ /tmp/$$/devo/configure --target=d10v-elf
+
+In the sim/common directory rebuild the headers:
+
+ $ cd sim/common
+ $ make headers
+
+To add a new target:
+
+ devo/sim/common/gennltvals.sh
+
+ Add your new processor target (you'll need to grub
+ around to find where your syscall.h lives).
+
+ devo/sim/<processor>/Makefile.in
+
+ Add the definition:
+
+ ``NL_TARGET = -DNL_TARGET_d10v''
+
+ just before the line COMMON_POST_CONFIG_FRAG.
+
+ devo/sim/<processor>/*.[ch]
+
+ Include targ-vals.h instead of syscall.h.
-FIXME: This can obviously be made more elaborate. As needed it will be.