Getting Started with RTEMS for C/C++ Users
This section describes the process of installing the
version B19 of the Cygwin32 environment. It assumes
that this toolset is installed in a directory
referred to as <RTOS>
.
bash
,
a Unix-like shell. You have to mount the "/" directory. Type:
umount / mount -b <RTOS> /
For example, the following sequence mounts the E:\unix
as the
root directory for the Cygwin32 environment. Note the use of two \
s
when specifying DOS paths in bash:
umount / mount -b e:\\unix /
mkdir /bin mkdir /tmp mkdir /source mkdir /build mkdir /build/binutils mkdir /build/gcc
bash.exe
to sh.exe
:
cd <RTOS>/cygnus/b19/H-i386-cygwin32/bin mv sh.exe old_sh.exe cp bash.exe sh.exe
The Bourne shell has to be present in /bin directory to run shell scripts properly:
cp <RTOS>/cygnus/b19/H-i386-cygwin32/bin/sh.exe /bin cp <RTOS>/cygnus/b19/H-i386-cygwin32/bin/bash.exe /bin
/cygnus/b19/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32/2.7-b19/specs
,
and append
-ladvapi32
to the following line:
-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32
At this point, you have a native installation of Cygwin32 and are ready to proceed to building a cross-compiler.
Getting Started with RTEMS for C/C++ Users
Copyright © 1988-2000 OAR Corporation