Commit Graph

93 Commits

Author SHA1 Message Date
Joel Sherrill
a44f9ca520 2000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>
* README.configure, aclocal/bsp-alias.m4, aclocal/check-bsps.m4:
	Modified to reflect addition of LEON BSPs as well as the
	no-FP ERC32 variant.
2000-11-13 22:51:54 +00:00
Joel Sherrill
2dbd07f8dc 2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/gcc-pipe.m4: Use $GCC instead of ac_cv_prog_gcc (autoconf
	standard).
	* aclocal/gcc-specs.m4: Use $GCC instead of ac_cv_prog_gcc (autoconf
	standard).
	* aclocal/multilib.m4: Fix m4-quoting (BUG-FIX).
	* aclocal/check-bsp-cache.m4: Fix m4-quoting (autoconf-2.49b).
	* aclocal/prog-cc.m4: Use $GCC instead of ac_cv_prog_gcc (autoconf
	standard), replace CC_FOR_TARGET with CC (BUG-FIX).
2000-11-09 17:04:53 +00:00
Joel Sherrill
5913d94de8 2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/enable-itron.m4: Remove changequotes (autoconf-2.49b).
	* aclocal/enable-posix.m4: Remove changequotes (autoconf-2.49b), use
	$host instead of $target (BUG-FIX).
	* configure.in: Use $target and $host instead of $target_alias and
	$host_alias (autoconf-2.49b).
	* aclocal/check-newlib.m4: Remove CC_FOR_TARGET (BUG-FIX)
	* aclocal/sysv-ipc.m4: Move AC_DEFINE outside of AC_CACHE (BUG-FIX)

	NOTES:
	* autoconf-2.49b depredicates using changequotes.
	* The changes to configure.in are due to cleanups in
	autoconf-2.49b's implemention of canonicalization. With
	autoconf-2.1x it wasn't always clear, when to use $xxx or
	$xxx_alias. Now this is clear.
2000-11-09 17:01:25 +00:00
Joel Sherrill
6870384942 2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/canonicalize-tools.m4, aclocal/check-tool.m4,
	aclocal/prog-cc.m4, aclocal/prog-cxx.m4:  Replace AC_CHECK_TOOL
	with an RTEMS specific but more restrictive autoconf macro.
2000-11-03 14:15:29 +00:00
Joel Sherrill
4686e5d915 2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/canonicalize-tools.m4, aclocal/check-tool.m4,
	aclocal/prog-cc.m4, aclocal/prog-cxx.m4:  Replace AC_CHECK_TOOL
	with an RTEMS specific but more restrictive autoconf macro.
2000-11-02 22:51:12 +00:00
Joel Sherrill
2f17d7454f 2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/canonicalize-tools.m4: Remove RTEMS_PATH_TOOL, use
	AC_CHECK_TOOL instead of RTEMS_PATH_TOOL in RTEMS_CANONICALIZE_TOOLS.
2000-11-02 15:55:26 +00:00
Joel Sherrill
2e0fd4273d 2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/*: Replace with contents of macros/*.m4
	* macros/: Remove.
	* aclocal/ar-s.m4 aclocal/tool-prefix.m4: Remove.
	* Makefile.am: Reflect changes to aclocal/ and macros/.
2000-11-02 15:44:04 +00:00
Joel Sherrill
509f835141 2000-10-24 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* macros/enable-hwapi.m4: Removed.
	* aclocal/rtems-top.m4, automake/compile.am, automake/lib.am:
	A small cleanup step towards gnu-canonicalization.
2000-10-24 21:59:16 +00:00
Joel Sherrill
c9782f99b7 2000-09-14 Joel Sherrill <joel@OARcorp.com>
* aclocal/enable-hwapi.m4: Now longer used and removed.
2000-09-14 16:54:39 +00:00
Joel Sherrill
372e4e2758 2000-09-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/rtems-top.m4: Add ENDIF-hack.
	* automake/compile.am: Add include $(DEPENDS) + ENDIF-hack.
2000-09-13 13:08:11 +00:00
Joel Sherrill
1ea70d78dd 2000-09-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/check-cxx.m4: Add AC_SUBST(CPLUS_LD_LIBS)
	* aclocal/prog-cc.m4: Cleanup comments, require RTEMS_ENABLE_GCC28,
	add automake conditionals RTEMS_USE_GCC, RTEMS_USE_GCC272.
	* automake/compile.am: Replaced.
	* automake/local.am: Remove building variant handling.
2000-09-12 20:54:13 +00:00
Joel Sherrill
03d570670a 2000-09-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/enable-rtemsbsp.m4: Add RTEMS_ENABLE_BARE,
	AC_SUBST(BARE_CPU_MODEL),AC_SUBST(BARE_CPU_CFLAGS).
	* aclocal/i386-gas-code16.m4: AC_DEFINE NEW_GAS.
	* aclocal/target.m4: Cleanup comments
	* Automake/compile.am: Add DEFS support to keep building happy.
2000-09-12 12:52:12 +00:00
Joel Sherrill
9322194b3d 2000-09-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/project-root.m4: Introduce PROJECT_TOPdir, add comments.
2000-09-06 15:29:57 +00:00
Joel Sherrill
be28778fd4 2000-08-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/check-bsps.m4: Fix c4* and sim68000 entries
2000-09-01 07:12:52 +00:00
Joel Sherrill
8e577624fd 2000-08-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* make/custom/pck6.cfg: New file
	* make/custom/pc486.cfg: Use -m486
	* make/custom/pc586.cfg: Use -mpentium
	* make/custom/pc686.cfg: Use -mmpentiumpro
	* make/custom/i386ex.cfg: Use -msoft-float
	* aclocal/check-bsps.h:
	  - Add pck6-BSP
	  - Exclude ChangeLog from being picked up as BSP
	* aclocal/bsp-alias.m4: Add pck6-BSP
2000-08-25 17:27:52 +00:00
Joel Sherrill
b812f84155 Added sim68000 BSP for the BSVC simulator. This BSP includes the
alias simcpu32 that supports the CPU32 simulator in BSVC.  At this
point, it is still under development.
2000-08-01 20:01:14 +00:00
Joel Sherrill
7496d9c30a Patch rtems-rc-20000725-1-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that is an improvement in the version handling macro that compensates
for Joel's bug in the release script which broke the VERSION file format.
2000-07-25 13:33:08 +00:00
Joel Sherrill
dbe50fd464 Added c3xsim as alias of c4xsim. 2000-07-25 13:31:59 +00:00
Joel Sherrill
237c259851 Changed default value to "pause". 2000-07-17 01:54:14 +00:00
Joel Sherrill
b8a30d07a5 Patch rtems-rc-20000713-1-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that is yet another multilib-related structual cleanup patch:

  Changes:
  * Make RTEMS_TEST_NO_PAUSE a tests/ subpackage specific option.
    - Remove RTEMS_TEST_NO_PAUSE from custom/*.cfg, targopts.h and
      cpuopts.h.
    - Add autoconf macros RTEMS_*_RTEMS_TEST_NO_PAUSE
      (aclocal/rtems-test-no-pause.m4).
    - Add RTEMS_*_RTEMS_TEST_NO_PAUSE support to sptests/configure.ins
      and tmtests/configure.in. These are the only subdirectories which
      currently apply RTEMS_TEST_NO_PAUSE.
    - Add autoconf-DEFS support to all test subpackages' configure.ins
      below tests/. I.e. AC_DEFINES now get explicitly propagated as
      preprocessor defines into Makefiles, cf. AM_CPPFLAGS in
      tests/*/*.am, instead of using a global config-files.
    - Remove NDEBUG from custom/*.cfg.

  * AC_DEFINE POSIX_API, ITRON_API and MULTIPROCESSING in
    exec/configure.in, only.
    - All other sources now should relay on the values from cpuopts.h
      and should not define them themselves.
    - Several related changes to many configure.ins

  * Bug-fixes to RTEMS_*_RTEMS_DEBUG macros (Actually workarounds to
    quoting bugs in autoconf).

  Notes:
    * This patch is rather immature and only tested for a small subset
      of BSPs (requires the tests to be enabled and therefore takes an
      tremendous amount of disc space and time.)
    * The patches to *cfg were generated by a script. Expect file
      formating changes :)
2000-07-13 15:05:38 +00:00
Joel Sherrill
396079844d Patch rtems-rc-20000712-1-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that is yet another multilib-related structual cleanup patch:

  Changes:
    * Make RTEMS_DEBUG a global per-cpu configuration option
    * Remove RTEMS_DEBUG from targopts.h
    * Add a global --enable-rtems-debug option disabled by default.
    * Add RTEMS_DEBUG to cpuopts.h
    * Remove all references to RTEMS_DEBUG from custom/*.cfg

  Notes:
    * RTEMS_DEBUG is set in c/src/exec/configure.in only
      (RTEMS_CHECK_RTEMS_DEBUG) and should be defined in cpuopts.h only.
      BSPs should not redefine it, but use the value being provided by
      cpuopts.h.
      => With multilibs, users have to choose: Either enable RTEMS_DEBUG
         for all BSPs and CPU_MODELs of a cpu or not.
    * Only few BSPs had RTEMS_DEBUG enabled, therefore I set the default
      to disabled.
    * This patch influences the per-BSP building scheme. Existing BSPs
      which set RTEMS_DEBUG in their make-target-options rule might have
      problems at runtime.
2000-07-12 19:23:14 +00:00
Joel Sherrill
256cbecf68 Patch rtems-rc-20000708-1.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that is another small step toward multilibs:

  Changes:
    * Eliminate RTEMS_CHECK_CUSTOM_BSP from all configure.ins below exec/
    * Add RTEMS_CHECK_CUSTOM_BSP to the multilib-disabled branch in
      RTEMS_ENV_RTEMSCPU to preserve the old per-BSP building scheme
      functional.

  Notes:
    * --enable-multilibs is still non-functional
    * This patch should not have any influence on the old building
      scheme (--disable-multilib should silently fall back to the old
      building scheme).
    * running ./bootstrap is required after applying the patch
2000-07-10 19:12:07 +00:00
Joel Sherrill
823938fa4c Patch rtems-rc-20000707-1-cvs.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> that adds a piece of the
*-rc-20000705-? series that was not added to CVS accidentally.
2000-07-07 17:01:29 +00:00
Joel Sherrill
02217e0bd6 Patch rtems-rc-20000704-1.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that makes --disable-multilib the default.
2000-07-06 20:15:35 +00:00
Joel Sherrill
04e6f7bffb Patch rtems-rc-20000705-3.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that is a somewhat experimental, multilib-related patch:

  Changes:
    * Use RTEMS_ENV_RTEMSCPU instead of RTEMS_ENV_RTEMSBSP in
      configure.ins below exec/.
      At the moment, RTEMS_ENV_RTEMSCPU is more or less an optical change
      to emphasize that these subdirectories shall not depend on RTEMS_BSP
      than a real behavioral change.
    * Add AC_DEFINE_* to several aclocal/*.m4 macros to prepare
      autoheader/autoconf generated targopts.h and similiar configuration
      headers.
    * c/src/configure.in: remove exec from cfg_subdirs if multilibs are
      enabled (c/src is build per bsp, exec shall be build per cpu in c/
      or from the toplevel in future, when multilibs are enabled.)

  Notes:
    * This patch should not have any impact on the current building scheme.
    * --enable-multilib still does not work.
    * running bootstrap from the toplevel directory is required.
CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: 	c/src/tests/libtests/termios/init.c
CVS: ----------------------------------------------------------------------
2000-07-06 20:13:35 +00:00
Joel Sherrill
04e4829d46 Patch rtems-rc-20000626-1.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
Comments follow:

  Building linux/posix fails due to including lib/include/sys/cdefs.h
  instead of linux's sys/cdefs.h.
  AFAIS, this sys/cdefs.h is specific to newlib and should probably
  not be used on any unix host.

  Therefore, I changed the relevant Makefile.am/configure.in to
  condionally install sys/cdefs.h only if newlib is present.

  This triggered another bug inside of the newlib-check for one of
  RTEMS target's (Unfortunately I can't remember which - mips/i960 ?
  ... one of the more exotic ...), for which int func() isn't
  identical to void func().

  Note: This patch needs to be tested under Cygwin and Solaris. I am
  particularily unsure about Cygwin/posix, as it applies a different
  version newlib which must not trigger RTEMS newlib check (it is
  supposed to fail) and if it may need RTEMS's sys/cdefs.h.
2000-07-06 14:04:29 +00:00
Joel Sherrill
fe5851ceae Patch rtems-rc-20000627-1 from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that is part of the multilib/gnu-canonicalization movement:

Changes:
  * New m4-macro: aclocal/multilib.am
  * Suppress multiprocessing if --enable-multilib is given to
    configure

Notes:
  For now this patch only suppresses multiprocessing if
  --enable-multilib is given to configure and should not have any
  other side-effects, ie. it works around a minor issue which prevents
  introduction of multilibs in general.

  The RTEMS_ENABLE_MULTILIB_MASTER macro is the core part to build
  real multilibs, but can not be applied before other multilib related
  issues with RTEMS have been solved. (e.g. sptables.h, bsp_specs,
  Cygnus/Gnu canonicalization, _RTEMS_version, targopts.h, changing
  the installation point/tooldir support, etc.).
2000-06-29 15:29:31 +00:00
Joel Sherrill
3207f0a969 Patch from James Housley <jim@thehousleys.net> to address FreeBSD 4.x
build issues.
2000-06-16 13:05:19 +00:00
Joel Sherrill
c63a5cfe57 Patch rtems-rc-20000614-1-cvs.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> that addresses a couple of
minor configuration issues which popped up when
experimenting with multilibs.

  Note: The multigen generated make/custom/bare-*.cfg will still be
  non-functional, even after having applied this patch.
2000-06-14 17:12:23 +00:00
Joel Sherrill
8ef38186fa Patch from John Cotton <john.cotton@nrc.ca>, Charles-Antoine Gauthier
<charles.gauthier@iit.nrc.ca>, and Darlene A. Stewart
<Darlene.Stewart@nrc.ca> to add support for a number of very
significant things:

  + BSPs for many variations on the Motorola MBX8xx board series
  + Cache Manager including initial support for m68040
    and PowerPC
  + Rework of mpc8xx libcpu code so all mpc8xx CPUs now use
    same code base.
  + Rework of eth_comm BSP to utiltize above.

John reports this works on the 821 and 860
2000-06-12 19:57:02 +00:00
Joel Sherrill
df49c60c96 Merged from 4.5.0-beta3a 2000-06-12 15:00:15 +00:00
Joel Sherrill
70810dcd89 Patches rtems-rc-20000204-0.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that contains:

* Removes remaining (now illegal) references to $(SRC) from a couple of
  Makefile.ams
* Removes duplicate AC_CONFIG_SUBDIRS macro from c/configure.in
* Moves ENABLE_LIBCDIR into RTEMS_PROG_C[C|XX]_FOR_TARGET (hides LIBCDIR
  from most configure scripts, i.e. LIBCDIR becomes less visible)
* Adds RTEMS_PROG_C[C|XX]_FOR_TARGET and RTEMS_CANONICALIZE_TOOLS to
  libbsp/*/configure.ins (A minor bug in previous implementations, which
  only has an impact when switching to GNU/Cygnus canonicalization)
* Cleans up several bogus comments.
* Removes MKLIB
* Switches the version number to 4.5.0 (for testing version number
  handling)
2000-02-08 22:33:25 +00:00
Joel Sherrill
95d90725e9 Obsolete files. Removed per recommendation from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>.
2000-02-04 19:25:57 +00:00
Joel Sherrill
1b2b923432 Patch to fix typo from Ralf Corsepius <corsepiu@faw.uni-ulm.de>. 2000-01-27 17:06:49 +00:00
Joel Sherrill
6d3ab0ffdc Added pc486 and pc586 as aliases of pc386 with proper cpu flags. 2000-01-10 20:56:35 +00:00
Joel Sherrill
d273d78ae6 Renaming mcp750 to motorola_shared since that is the basis for both
the mvme2307 and mcp750 BSPs.  In addition, it can support many
Motorola PowerPC based VME and PCI boards.
2000-01-07 20:51:56 +00:00
Joel Sherrill
0ff37e6866 Patch rtems-rc-20000104-0.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which is described below:

    This one is a (minor) patch in preparation of the upcoming patches. It
    actually is an excerpt of the upcoming patches and therefore is
    completely untested in this standalone form, but I don't expect it to
    break something.

    The essential changes in this patch are:
        * An update to rtems-polish.sh (Now can also be run in subdirectories)
        * A bug-fix for the libcpu/powerpc (A directory was missing from
          SUBDIRS in a Makefile.am)
        * An update to gensh2.cfg.
        * Cleanups/Enhancements to configuration files

    To apply:
        cd <srcdir>
        patch -p0 < rtems-rc-20000104-0.diff
        cvs rm -f c/src/lib/libbsp/Makefile.am.new
2000-01-07 14:47:02 +00:00
Joel Sherrill
fa178d4926 Patch rtems-rc-19991203-3.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which adds automake support to libbsp/bare.
1999-12-13 15:57:41 +00:00
Joel Sherrill
000a9a9784 Patch rtems-rc-19991203-1.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
to generalize librdbg for all i386 BSPs.  His comments:

  The patch below generalizes librdbg for all i386 bsps. It is not a
  complete rewrite, but a minimal invasive attempt to generalization.

  To apply:

    mv c/src/librdbg/src/i386/pc386 c/src/librdbg/src/i386/any
    patch -p1 < patches-rc-19991203-1.diff
    ./bootstrap
1999-12-13 14:48:17 +00:00
Joel Sherrill
fc81cc9933 Patch rtems-rc-19991123-rc-3.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>:

    The patch below provides
      * automake support for score/cpu/powerpc
      * The hack to propagate values from *.cfg to automake configuration
      * A fix for librdbg/powerpc/mcp750/Makefile.am (Was completely corrupted
        before)
      * Fixes some files which apparently where missing in
        rtems-rc-19991123-rc-2.diff
      * some minor configuration related patches

    To apply:

      rm -rf ./c/src/exec/score/cpu/powerpc/wrap
      patch -p1 < rtems-rc-19991123-rc-3.diff

    Attention:
      c/src/exec/score/cpu/[configure.in|aclocal.m4|configure] should be
      removed after applying the patch.

Modifications had been made to the score/cpu/powerpc directory after
the snapshot this was based on.  In particular, the mpc750 and
other_cpu directories had been renamed to new_exception_processing
and old_exception_processing.  After this patch was applied, modifications
were made to account for this.
1999-12-03 13:31:56 +00:00
Joel Sherrill
96344c8639 Patch rtems-rc-19991123-rc-0.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which (among other things) converted the mptests to automake.

    SUB_DIRS was used instead of SUBDIRS in some Makefile.ins
    (apparently a leftover from moving the start* directories)

    Addtional major bugs:
    * psxtests/include was empty (incomplete psxtests changes).
    * bogus handling of *.scn in itrontests (screens/sptests vs.
      screens/itrontests installation dirs)

    In addition I have added a few more changes (I couldn't resist)
    * automake support for itrontests
    * OPERATION_COUNT support in tmitrontests/
    * automake support for tmitrontests
    * automake suppport for mptests
    * Some (minor) corrections to several configure.in/Makefile.ams

    => c/src/tests/ is completly under automake control, now.
    => we could start to sort out the structural issues with c/src/tests
      (tests/support, stubdr, tools, get "make dist" working)
1999-11-30 13:49:04 +00:00
Joel Sherrill
9f4868cea9 Miscellaneous patches from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that are part of the Makefile.am conversion effort but were missed
in the previous commits.
1999-11-23 13:57:02 +00:00
Joel Sherrill
9608320702 Patch rtems-rc-19991117-4.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
.. a major configuration cleanup
    ... major enhancement of automake support.

    ... and it contains a *major*  breakthough:

    Automake support for libchip and libmisc *LEAF* directories.

    To implement this I have used several nasty tricks
        * The basical trick is to wrap an old Makefile.in's contents into a
          Makefile.am and still continue to use (i.e include) the old
          *.cfg files.

        * Replaced each INSTALL_IF_CHANGE and INSTALL_VARIANT with make
          dependencies
        * Add a gnu-make ifdef AUTOMAKE to main.cfg to avoid conflicts between
          automake and RTEMS make rules
        * Replaced each install:: and preinstall:: rule with make dependencies
        * Replaced SUB_DIRS with SUBDIRS in all Makefile.ins (Automake
          convention)
        * Removed each manually added autoconf substitution which automake
          performs automatically.

    This is not yet full automake support, because using the temporary
    installation directory, preinstallation in general and building variants
    are in contradiction to automake's basic working principles ...

    ... the new Makefile.ams work still somewhat clumsy
    ... nevertheless they work (quite well).

    WARNING:

    At first glance this patch is small, but
        * it affects the whole configuration system.
        * it opens the road to introducing automake to all Makefile.ins
          currently not being under automake control.

    JOEL> Does this remove or add any files?

    Both, all Makefile.ins below libchip and libmisc get replaced with
    Makefile.ams.
1999-11-22 13:41:11 +00:00
Joel Sherrill
c73b8ac27f This patch adds the basic framework for the ITRON 3.0 API implementation
for RTEMS.
1999-11-09 22:18:43 +00:00
Joel Sherrill
78ffe896ec Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Removed all go32 configuration tests.

  This patch also comments out some special treatment for Cygwin from
  *.m4 macros. According to reports from David Fiddes. these should
  not be necessary anymore.
1999-10-11 15:50:20 +00:00
Joel Sherrill
45269dc902 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to move librdbg
to its own top level package.
1999-10-11 15:34:26 +00:00
Joel Sherrill
b62a92c804 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
The patch below actuallly consists of two patches:
1) moving librpc to c/src/librpc similar to what has been done to librtems++
2) reworked configure scripts, many safety and dependency checks added to
aclocal/*.m4 macros + configuration fixes.

To apply:

mkdir c/src/librpc
mkdir c/src/librpc/src
cp c/src/lib/librpc/*.c c/src/librpc/src
cp c/src/lib/librpc/Makefile.in c/src/librpc/src
mkdir c/src/librpc/include
mkdir c/src/librpc/include/rpc
cp c/src/lib/include/rpc/* c/src/librpc/include/rpc
patch -p1 < ../rtems-rc-19990820-7.diff
rm -rf c/src/lib/librpc
rm -rf c/src/lib/include/rpc
./autogen

The additional checks in aclocal/*m4 macros add rather restrictive, sometimes
unnecessarily restrictive constraints on the sequence of how macros can be
used in a configure.in script. Adding them has let my problems with some more
complicated configuration options vanish. Apparently some macros had not been
in the required order .

----

Now I still get some linking errors for some cpus and bsps, esp when linking
cdtest, but also at other locations:

e.g. this happens for mips64orion/p4600:

# make[5]: Entering directory
`/lfs/poseidon/users/rtems/src/multi/build/mips64orion-rtems/c/p4600/tests/samples/hello'

/opt/rtems/bin/mips64orion-rtems-gcc --pipe -B../../../../../../p4600/lib/
-specs bsp_specs -qrtems -DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
-mcpu=4600 -G0   -I../../../../../../p4600/lib/include/networking  -g -Wall
-ansi -fasm  -O4 -fomit-frame-pointer     -o o-p4600/hello.exe
o-p4600/init.o ../../../../../../p4600/lib/no-dpmem.rel
../../../../../../p4600/lib/no-event.rel
../../../../../../p4600/lib/no-msg.rel ../../../../../../p4600/lib/no-mp.rel
../../../../../../p4600/lib/no-part.rel
../../../../../../p4600/lib/no-signal.rel
../../../../../../p4600/lib/no-timer.rel
../../../../../../p4600/lib/no-rtmon.rel
/opt/rtems/mips64orion-rtems/lib/libc.a(dtoa.o): In function `_dtoa_r':
/opt/hermes/embedded/build/build-mips64orion-tools/mips64orion-rtems/newlib/libc/stdlib/../../../../../src/newlib/libc/stdlib/dtoa.c:348: relocation truncated to fit: R_MIPS_LITERAL no symbol
/opt/hermes/embedded/build/build-mips64orion-tools/mips64orion-rtems/newlib/libc/stdlib/../../../../../src/newlib/libc/stdlib/dtoa.c:348: relocation truncated to fit: R_MIPS_LITERAL no symbol
/opt/hermes/embedded/build/build-mips64orion-tools/mips64orion-rtems/newlib/libc/stdlib/../../../../../src/newlib/libc/stdlib/dtoa.c:348: relocation truncated to fit: R_MIPS_LITERAL no symbol
collect2: ld returned 1 exit status

# mips64orion-rtems-gcc -v
Reading specs from /opt/rtems/lib/gcc-lib/mips64orion-rtems/2.95.1/specs
gcc version 2.95.1 19990816 (release)

# mips64orion-rtems-ld -v
GNU ld version 2.9.5 (with BFD 2.9.5)
1999-10-04 18:20:14 +00:00
Joel Sherrill
e1d8abbe28 Applied patch rtems-rc-19990820-6.diff.gz from
Ralf Corsepius <corsepiu@faw.uni-ulm.de> which converted many
Makefile.in's to Makefile.am's.  This added a lot of files.
1999-09-07 13:45:03 +00:00
Joel Sherrill
6fc973e39b Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Here is another fix, which addresses a few more or less severe bugs in
    configuration and unix/posix:

    * Configuration fix: c/src/lib/configure.in didn't handle RDBG correctly

    * Configuration fix: make depend was non-functional in
      c/src/lib/libc/Makefile.in
    * Configuration fix: stray comment removed from aclocal/target.m4

    * RTEMS fix: termios support for unix/posix now uses the host's headers
      only (was completely broken).
    - Don't install RTEMS's newlib sys/termios.h for unix (sys/termios.h
      apparently is a newlib specific header)
    - To be able to compile RTEMS's  termios.c with glibc2.1, glibc-2.1
      needs __USE_MISC, which is a private define from gcc's features.h, being
      defined only when _BSD_SOURCE of _SVID_SOURCE is defined.  RTEMS's
      termios apparently implements BSD, thus -D_BSD_SOURCE was added to
      Linux-posix.cfg.
    - Conflicting definitions for  __USE_MISC and _BSD_SOURCE inside of
      RTEMS codes removed due to definition of _BSD_SOURCE on the toplevel.

    This fix has been tested with linux/posix (primary glibc2.1 native),
    linux/posix (secondary libc5 native), sh/gensh1, i386/pc386 and a couple
    of other bsp's/CPU.

    To apply:

        cd <srcdir>
        patch -p1 < rtems-rc-19990709-9.diff

    and
        aclocal -I aclocal && automake && autoconf
        cd c/src/lib; autoconf

    or
        ./autogen
1999-08-18 16:49:52 +00:00
Joel Sherrill
ea562ee977 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
After upgrading my linux box to the brand new SuSE 6.2 release, which is
    glibc-2.1 based, I came across a bug in RTEMS - IIRC, I even warned you
    about it about 1/2 a year ago, but nothing has been done since then :-.

    The *.m4 macros to check for SYSV/IPC are broken for linux/glibc2.1,
    because they assume that linux always defines union semun, which isn't
    true anymore for glibc2.1 (the manpage for semctl states _X_OPEN
    specifies it this way). Therefore I have tried to implement a more
    general approach for handling SYSV for unix/posix which checks for
    presence of struct semun, instead of trying  to evaluate OS specific
    preprocessor symbols.

    This approach is a bit adventureous, because I only tested it with
    linux/glibc2.1 and linux/libc5, but not under other Unix variants RTEMS
    supports. I am quite confident it will work on other hosts, too, but who
    knows :-.

    [FYI: I think this might also is the cause of some problems with RedHat
    6.X / Mandrake linux recently reported on the rtems list -- rtems-4.0.0
    can not be build for posix on any glibc2.1 based host]

    Furthermore the patch below contains a couple of minor fixes and
    configuration cleanups, which IMO should be applied before releasing a
    new snapshot.

    To apply this patch:

        cd <source-tree>
        patch -p1 < rtems-rc-19990709-8.diff
        ./autogen
1999-08-12 18:22:17 +00:00