forked from Imagelibrary/rtems
Comments from Chris Johns
This commit is contained in:
@@ -29,9 +29,42 @@ where the tools were installed in the previous chapter:
|
|||||||
export PATH=$PATH:<INSTALL_POINT>/bin
|
export PATH=$PATH:<INSTALL_POINT>/bin
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
NOTE: The above command is in Bourne shell (@code{sh}) syntax and should work with
|
NOTE: The above command is in Bourne shell (@code{sh}) syntax and
|
||||||
the Korn (@code{ksh}) and GNU Bourne Again Shell (@code{bash}). It will not
|
should work with the Korn (@code{ksh}) and GNU Bourne Again Shell
|
||||||
work with the C Shell (@code{csh})or derivatives of the C Shell.
|
(@code{bash}). It will not work with the C Shell (@code{csh}) or
|
||||||
|
derivatives of the C Shell.
|
||||||
|
|
||||||
|
@section Verifying the Operation of the Cross Toolset
|
||||||
|
|
||||||
|
In order to insure that the cross-compiler is invoking the correct
|
||||||
|
subprograms (like @code{as} and @code{ld}), one can test assemble
|
||||||
|
a small program. When in verbose more, @code{gcc} prints out information
|
||||||
|
showing where it found the subprograms it invokes. Place the following
|
||||||
|
function in a file named @code{f.c}:
|
||||||
|
|
||||||
|
@example
|
||||||
|
int f( int x )
|
||||||
|
{
|
||||||
|
return x + 1;
|
||||||
|
}
|
||||||
|
@end example
|
||||||
|
|
||||||
|
Then assemble the file using a command similar to the following:
|
||||||
|
|
||||||
|
@example
|
||||||
|
m68k-rtems-gcc -v -S f.c
|
||||||
|
@end example
|
||||||
|
|
||||||
|
Where @code{m68k-rtems-gcc} should be changed to match the installed
|
||||||
|
name of your cross compiler. The result of this command will be
|
||||||
|
a sequence of output showing where the cross-compiler searched for
|
||||||
|
and found its subcomponents. Verify that these paths correspond
|
||||||
|
to your <INSTALL_POINT>.
|
||||||
|
|
||||||
|
@b{NOTE:} One of the most common installation errors is for the
|
||||||
|
cross-compiler not to be able to find the cross assembler and default
|
||||||
|
to using the native @code{as}. This can result in very confusing
|
||||||
|
error messages.
|
||||||
|
|
||||||
@section Generate RTEMS for a Specific Target and BSP
|
@section Generate RTEMS for a Specific Target and BSP
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ use to RTEMS users.
|
|||||||
rtems-list@@OARcorp.com
|
rtems-list@@OARcorp.com
|
||||||
|
|
||||||
This mailing list is dedicated to discussion of issues related
|
This mailing list is dedicated to discussion of issues related
|
||||||
to RTEMS. If you have questions about RTEMS, which to make
|
to RTEMS. If you have questions about RTEMS, wish to make
|
||||||
suggestions, or just want to pick up hints, this is a good
|
suggestions, or just want to pick up hints, this is a good
|
||||||
list to subscribe to. Subscribe by sending a message with
|
list to subscribe to. Subscribe by sending a message with
|
||||||
the one line "subscribe" to rtems-list-request@@OARcorp.com.
|
the one line "subscribe" to rtems-list-request@@OARcorp.com.
|
||||||
|
|||||||
@@ -33,6 +33,38 @@ NOTE: The above command is in Bourne shell (@code{sh}) syntax and should
|
|||||||
work with the Korn (@code{ksh}) and GNU Bourne Again Shell (@code{bash}).
|
work with the Korn (@code{ksh}) and GNU Bourne Again Shell (@code{bash}).
|
||||||
It will not work with the C Shell (@code{csh})or derivatives of the C Shell.
|
It will not work with the C Shell (@code{csh})or derivatives of the C Shell.
|
||||||
|
|
||||||
|
@section Verifying the Operation of the Cross Toolset
|
||||||
|
|
||||||
|
In order to insure that the cross-compiler is invoking the correct
|
||||||
|
subprograms (like @code{as} and @code{ld}), one can test assemble
|
||||||
|
a small program. When in verbose more, @code{gcc} prints out information
|
||||||
|
showing where it found the subprograms it invokes. Place the following
|
||||||
|
function in a file named @code{f.c}:
|
||||||
|
|
||||||
|
@example
|
||||||
|
int f( int x )
|
||||||
|
{
|
||||||
|
return x + 1;
|
||||||
|
}
|
||||||
|
@end example
|
||||||
|
|
||||||
|
Then assemble the file using a command similar to the following:
|
||||||
|
|
||||||
|
@example
|
||||||
|
m68k-rtems-gcc -v -S f.c
|
||||||
|
@end example
|
||||||
|
|
||||||
|
Where @code{m68k-rtems-gcc} should be changed to match the installed
|
||||||
|
name of your cross compiler. The result of this command will be
|
||||||
|
a sequence of output showing where the cross-compiler searched for
|
||||||
|
and found its subcomponents. Verify that these paths correspond
|
||||||
|
to your <INSTALL_POINT>.
|
||||||
|
|
||||||
|
@b{NOTE:} One of the most common installation errors is for the
|
||||||
|
cross-compiler not to be able to find the cross assembler and default
|
||||||
|
to using the native @code{as}. This can result in very confusing
|
||||||
|
error messages.
|
||||||
|
|
||||||
@section Generate RTEMS for a Specific Target and BSP
|
@section Generate RTEMS for a Specific Target and BSP
|
||||||
|
|
||||||
Make a build directory under tools and build the RTEMS product in this
|
Make a build directory under tools and build the RTEMS product in this
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ use to GNAT/RTEMS users.
|
|||||||
rtems-list@@OARcorp.com
|
rtems-list@@OARcorp.com
|
||||||
|
|
||||||
This mailing list is dedicated to discussion of issues related
|
This mailing list is dedicated to discussion of issues related
|
||||||
to RTEMS. If you have questions about RTEMS, which to make
|
to RTEMS. If you have questions about RTEMS, wish to make
|
||||||
suggestions, or just want to pick up hints, this is a good
|
suggestions, or just want to pick up hints, this is a good
|
||||||
list to subscribe to. Subscribe by sending a message with
|
list to subscribe to. Subscribe by sending a message with
|
||||||
the one line "subscribe" to rtems-list-request@@OARcorp.com.
|
the one line "subscribe" to rtems-list-request@@OARcorp.com.
|
||||||
|
|||||||
Reference in New Issue
Block a user