Commit Graph

3070 Commits

Author SHA1 Message Date
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
4f021c01cc Removed Makefile.in generated from Makefile.am 1999-10-04 17:33:23 +00:00
Joel Sherrill
3ac8e5900d This file was not updated in a recent patch from Ralf Corsepius. 1999-10-04 16:58:20 +00:00
Joel Sherrill
95ba459981 Removed excep.c 1999-10-04 16:34:11 +00:00
Joel Sherrill
4451badfbf Removed. 1999-10-04 16:28:34 +00:00
Joel Sherrill
b7c712e308 Removed empty file. 1999-10-04 16:19:21 +00:00
Joel Sherrill
e50e3eff35 New test for getenv/putenv added by Joel. 1999-10-04 13:54:25 +00:00
Joel Sherrill
6fca2f5568 Patch from Eric Norum <eric@cls.usask.ca>. Comments follow:
The old system would panic when the loopback interface was included as
    part of the network initialation structures.  With the printf you get an
    message, but the interface is still properly initialized.
1999-10-04 13:51:22 +00:00
Joel Sherrill
cb6208444b Patch from Eric Norum <eric@cls.usask.ca> to ensure the console
initialization is only done once.
1999-10-04 13:47:31 +00:00
Joel Sherrill
67d0f4e1eb Modified to setup environment pointer on all BSPs. This results
in getenv/putenv working all the time without special assistance
from the BSP.
1999-10-04 13:43:46 +00:00
Joel Sherrill
936f288915 Setup environment pointer for getenv/putenv. Patch from Eric Norum
<eric@cls.usask.ca>.
1999-10-04 13:42:45 +00:00
Joel Sherrill
473b4e58d0 Regenerated. 1999-10-04 13:30:15 +00:00
Joel Sherrill
9888de34c3 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to fix bug report
from Eric Norum <eric@cls.usask.ca>.  This patch was rtems-19990820-0-diff
from Ralf.

    FYI: In parallel to the transition to automake, RTEMS is on a transition
    from make-time configuration to per-bsp and per-bsp configuration at
    configuration-time. Due to this several changes to configuration files
    have been added and might have broken something that has been working
    previously. Most noticeable behavioral change is that you now are required
    to use @RTEMS_BSP@ instead of $(RTEMS_BSP) inside of any Makefile.ins
    which are configured or build as part of the source-tree.

    > It used to be that only RTEMS_MAKEFILE_PATH had to be set.  Why is this
    > no longer sufficient?

    It should still be working, if it doesn't, it has to be considered to be
    broken and should be fixed.

    I am not sure, but I assume you are using Makefile.inc - In this case, you
    have found a bug in Makefile.inc.in which should be worked-around by the
    patch below. If my assumption is wrong, I would need more details ...
1999-10-04 13:16:50 +00:00
Joel Sherrill
0c7aab8d9f Changed rtems_isr_level to rtems_interrupt_level per Chris Johns'
<ccj@acm.org> suggestion.
1999-10-01 18:05:42 +00:00
Joel Sherrill
ed11cadf05 Numerous minor changes required to transition to the latest version
of texinfo and TeX.  This version of the tools can produce PDF with
figures included.
1999-10-01 17:44:06 +00:00
Joel Sherrill
a25f7028cb Clarified catch and disable per suggestion from Chris Johns <ccj@acm.org>. 1999-10-01 17:42:44 +00:00
Joel Sherrill
b406ad206f Added return 0 to pollWrite and InterruptWrite examples. Chris
Johns <ccj@acm.org> suggested this.
1999-10-01 17:35:36 +00:00
Joel Sherrill
3cad291962 Addition of more functionality by Eric Norum to support GNU readline. 1999-10-01 15:55:30 +00:00
Joel Sherrill
6b7a6d9840 changed version to 19990930 1999-09-30 14:21:03 +00:00
Joel Sherrill
cd177de297 changed version to 19990930 1999-09-30 14:11:32 +00:00
Joel Sherrill
06f98e7dc9 changed version to 19990930 1999-09-30 13:23:00 +00:00
Joel Sherrill
5a658489aa changed version to 19990909 1999-09-09 21:59:38 +00:00
Joel Sherrill
a24c2808e5 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-09 21:22:36 +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
c935c5f9db Removed by 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.
1999-09-07 12:55:28 +00:00
Joel Sherrill
6688a0d852 Missing file from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
added.
1999-09-02 18:23:32 +00:00
Joel Sherrill
9396d1e43b Cleaned up to move conditional to C files -- not Makefile. 1999-09-02 18:12:57 +00:00
Joel Sherrill
9d709f59bd Added BSP chapter to FAQ. 1999-09-02 14:10:22 +00:00
Joel Sherrill
d9c2e9f507 Link fixed for CPU Supplements. Reported by Jose Vasconcellos
<josev@utstar.com>.
1999-08-30 22:01:14 +00:00
Joel Sherrill
a71938283c Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to move
c/src/lib/librtems++ and c/src/lib/include/rtems++ to
their own package librtems++ at the top of the tree.

    To apply:

        mkdir c/src/librtems++
        cp c/src/lib/librtems++/README c/src/librtems++
        mkdir c/src/librtems++/src
        cp c/src/lib/librtems++/*.cc c/src/librtems++/src
        cp c/src/lib/librtems++/Makefile.in c/src/librtems++/src
        mkdir c/src/librtems++/include
        mkdir c/src/librtems++/include/rtems++
        cp c/src/lib/include/rtems++/*.h c/src/librtems++/include/rtems++
        patch -p1 <rtems-rc-19990802-5.diff
        rm -rf c/src/lib/librtems++
        rm -rf c/src/lib/include/rtems++
        ./autogen

    Attention:
        * The procedure above copies the files first, then patches them
          and finally removes the old files afterwards. This has been done
          to enable you to copy the files in CVS to preserve their history.
1999-08-30 18:38:26 +00:00
Joel Sherrill
6cc786f96b Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Somehow a nasty bug has made it in sh/start.S ("|", instead of "!", to
  begin an asm comment).

  I have no idea how this could remain undiscovered for so long (It is in
  rtems-4.0.0, too!), however upgrading to binutils from sourceware's CVS
  sh-rtems-as chokes on this bug. => I guess, either binutils changed its
  conventions or an obvious bug in as has been fixed.
1999-08-30 18:07:45 +00:00
Joel Sherrill
260b0c2155 Patch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca> to add
support for return codes from POSIX threads that do an implicit exit
by returning from the bottom of the main function.
1999-08-30 18:05:48 +00:00
Joel Sherrill
f724a870c6 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
This patch addresses a few configuration issues and removes some
    duplicate configuration files.

    Background:
    * some files used in AC_INIT were not unique enough and can lead to
      problems if a user plays with configure scripts.
    * the Makefile templates are independent of the target/cpu and bsp, so
      the bsp dependent versions (c/src/make/Templates) are removed.

    To apply:
        patch -p1 < rtems-rc-19990820-3.diff
        rm -f c/src/make/Templates
        ./autogen

    ATTENTION: This patch removes several files and one directory :)
1999-08-30 16:25:54 +00:00
Joel Sherrill
473741bb07 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
1. Addition of maintainer-mode dependencies on config.status and
       aclocal.m4 for autoconf toplevel Makefile.ins. These rules are taken
       over from automake generated Makefile.ins, i.e. they are contained in
       any automake generated toplevel Makefile.in. Having this patch in is at
       least a great releaf for me when working on RTEMS configuration :)

    2. Automated support for #1 in acpolish

    3. Some minor "beautifications" on Makefile.ins resulting from running
       acpolish.

    FYI: This patch has been generated by running
    tools/update/rtems-polish.sh -ac on the source tree and manually editing
    the resulting patch afterwards to work around a problem with acpolish,
    which still corrupts one Makefile.in - WARNING: Be careful with running
    acpolish!
1999-08-30 15:37:30 +00:00
Joel Sherrill
e49d7c3df2 Removed definition of NO_IMPLICIT_EXTERN_C since it is supposed to be
in the compiler not in the header file.
1999-08-30 15:02:20 +00:00
Joel Sherrill
7c2243e352 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
The patch below actually consists of 3 patches:

        1. Addition of maintainer-mode dependencies on config.status and
           aclocal.m4 for autoconf toplevel Makefile.ins. These rules are taken
           over from automake generated Makefile.ins, i.e. they are contained in
           any automake generated toplevel Makefile.in. Having this patch in is
           at least a great releaf for me when working on RTEMS configuration :)

        2. Automated support for #1 in acpolish

        3. Some minor "beautifications" on Makefile.ins resulting from
           running acpolish.

    FYI: This patch has been generated by running
    tools/update/rtems-polish.sh -ac on the source tree and manually editing
    the resulting patch afterwards to work around a problem with acpolish,
    which still corrupts one Makefile.in - WARNING: Be careful with running
    acpolish!

    I expect this patch not to have any influence on normal users, unless
    they use --enable-maintainer-mode, thus merging it should be rather
    harmless.
1999-08-30 14:28:39 +00:00
Joel Sherrill
a60a7bbd29 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
The patch below actually consists of 3 patches:

        1. Addition of maintainer-mode dependencies on config.status and
           aclocal.m4 for autoconf toplevel Makefile.ins. These rules are taken
           over from automake generated Makefile.ins, i.e. they are contained in
           any automake generated toplevel Makefile.in. Having this patch in is
           at least a great releaf for me when working on RTEMS configuration :)

        2. Automated support for #1 in acpolish

        3. Some minor "beautifications" on Makefile.ins resulting from
           running acpolish.

    FYI: This patch has been generated by running
    tools/update/rtems-polish.sh -ac on the source tree and manually editing
    the resulting patch afterwards to work around a problem with acpolish,
    which still corrupts one Makefile.in - WARNING: Be careful with running
    acpolish!

    I expect this patch not to have any influence on normal users, unless
    they use --enable-maintainer-mode, thus merging it should be rather
    harmless.
1999-08-30 14:16:07 +00:00
Joel Sherrill
d392168a49 Typo causing compilation failure spotted by Ralf Corsepius and
fixed by Joel.
1999-08-26 21:14:20 +00:00
Joel Sherrill
638154c6bf Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
This one is a minor fix for the librdg-Makefiles for mcp750, mostly an
  adaptation to the Makefiles used for the i386.
1999-08-26 20:59:52 +00:00
Joel Sherrill
e0c6f431b6 Comment cleanup from Eric Norum <eric@cls.usask.ca>. 1999-08-26 20:52:40 +00:00
Joel Sherrill
72f9937b62 Removed need for use of separate include/networking directory. 1999-08-23 18:48:07 +00:00
Joel Sherrill
48abdc31fd Patch from Eric Norum <eric@cls.usask.ca> to readd the behavior where
the minor number indicated the port number to try.
1999-08-23 14:58:16 +00:00
Joel Sherrill
da0349ca88 changed version to 19990820 1999-08-20 19:31:52 +00:00
Joel Sherrill
b290217a6b Updated version numbers. 1999-08-20 19:31:47 +00:00
Joel Sherrill
ec66a419a3 Now formats. 1999-08-20 19:31:35 +00:00
Joel Sherrill
9884d3e577 changed version to 19990820 1999-08-20 18:33:37 +00:00
Joel Sherrill
71f16a4499 Support for MPC505 from Sergei Organov <osv@Javad.RU>. His patch was
against 3.6.0 so was painful to merge.  It should be OK but there
is no guarantee and there are no BSPs in the tree to exercise it.
1999-08-19 22:07:00 +00:00
Joel Sherrill
96284fd815 Support for MPC505 from Sergei Organov <osv@Javad.RU>. His patch was
against 3.6.0 so was painful to merge.  It should be OK but there
is no guarantee and there are no BSPs in the tree to exercise it.
1999-08-19 21:47:51 +00:00
Joel Sherrill
3b568bd557 Fixed Gunter Magin's email address in 3 places. 1999-08-19 21:31:58 +00:00
Joel Sherrill
1b97fe7633 Added comment explaining what this file is. 1999-08-19 20:52:06 +00:00