OAR

RTEMS 4.5.1-pre3 On-Line Library


Installing binutils

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

7.2.3: Installing binutils

  1. Unarchive binutils-2.10.tar.gz following the instructions in Unarchiving the Tools into the /source directory. Apply the appropriate RTEMS specific patch as detailed in Applying RTEMS Patches.
  2. In the /build/binutils directory, execute the following command to configure binutils 2.10:
    /source/binutils-2.10/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 Using 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-2000 OAR Corporation