To build an eCos application, you must link the application with the eCos library. This appendix describes how to build a new eCos library for linking with application code.
A prebuilt eCos library is already included in the book’s compressed file, but you may need to know the eCos library build procedure if you move to a new development board or require additional functionality in the eCos library.
The eCos examples, covered in Chapter 11, are built in the same manner as the other examples in the book. The build procedure is covered in Chapter 4, and the download-and-debug procedure in Chapter 5. The eCos examples are built using the GNU tools set up in Appendix B, along with the prebuilt eCos library.
Additional details about building eCos applications can be found in the book Embedded Software Development with eCos, by Anthony Massa (Prentice Hall PTR).
Enter the following commands in a Cygwin bash shell under Windows or in a terminal window under Linux. The instructions extract the eCos source code to the /opt/ecos directory. Other directories can be used, but the instructions need to be adjusted accordingly.
Using Linux, you will need permission to become superuser (root) to perform the setup successfully.
The eCos source code is contained in the file ecos.tar.gz. If you use a different version of the eCos source code, change the following instructions accordingly: ...