OAR

RTEMS 4.0.0 On-Line Library


Installing binutils

PREV UP NEXT Bookshelf Getting Started with RTEMS for C/C++ Users

7.4: Installing binutils

  1. Unarchive binutils-2.9.1.tar.gz following the instructions in Unarchiving the Tools into the /source directory. Apply the appropriate RTEMS specific patch as detailed in Apply RTEMS Patch to binutils.
  2. In the /build/binutils directory, execute the following command to configure binutils 2.9.1:
    /source/binutils-2.9.1/configure --verbose --target=m68k-rtems \
        --prefix=/gcc-m68k-rtems --with-gnu-as --with-gnu-ld
    

    Replace m68k-rtems with the target configuration of your choice. See Running the bit Script for a list of the targets available.

  3. Execute the following command to compile the toolset:
    make
    
  4. Install the full package with the following command:
    make -k install
    

    There is a problem with the gnu info package which will cause an error during installation. Telling make to keep going with -k allows the install to complete.

  5. In the cygnus.bat file, add the directory containing the cross-compiler executables to your search path by inserting the following line:
    PATH=E:\unix\gcc-m68k-rtems\bin;%PATH%
    
  6. You can erase the /build/binutils directory content if disk space is tight.
  7. Exit bash and run cygnus.bat to restart the Cygwin32 environment with the new path.


PREV UP NEXT Bookshelf Getting Started with RTEMS for C/C++ Users

Copyright © 1988-1998 OAR Corporation