Chris Johns (chrisj@rtems.org) 30 Nov 2007 Examples Package This is an autotools version of the RTEMS examples and netdemo packages. To use you need an updated BSP configuration file. I have provide some examples for a few BSPs I have been testing with. The BSP configuration changes are to split the 'make-exe' 'make-cxx-exe' Makefile defined into 'bsp-link-c', 'bsm-link-cxx' and 'bsp-post-link' and to change the file extensions to remove the '.exe' from use. The '.exe' extension causes problems on Windows as it is the default file extension for the linker. The split of 'make-exe' and 'make-cxx-exe' is little more than forming two parts from the existing 'make-exe' so the 'bsp-post-link' makefile define create the target specific binary file from the linker file. The extensions change is to use $(EXEEXT). This is defined by automake by testing the linker. The examples show how this is to be done. There is a lot of extra information generated when these executables are linked. This information should be removed as it can be generated at anytime from the linker output file. These files can be large and slow the whole link process down creating large amounts of information not normally looked at. If you can understand the information you should be able to figure out how to generate it. The examples need a built and installed RTEMS: $ ../rtems4.9-src/configure --target=m68k-rtems4.9 \ --prefix=/local/ccj/rtems/4.9 \ --enable-rtemsbsp=mcf5235 $ make all install To fetch the examples and build: $ wget http://www.rtems.org/ftp/pub/rtems/people/chrisj/rtems-examples-20071130-1.tar.bz2 $ tar jxf rtems-examples-20071130-1.tar.bz2 $ wget http://www.rtems.org/ftp/pub/rtems/people/chrisj/mcf5235.cfg $ cp mcf5235.cfg /local/ccj/rtems/4.9/make/custom/mcf5235.cfg $ mkdir mcf5235 $ cd mcf5235 $ ../rtems-examples-20071130-1/configure \ --host=m68k-rtems4.9 \ --prefix=/local/ccj/rtems/4.9 \ --enable-rtemsbsp=mcf5235 $ make Application Template Package TDB. To build the application template: $ wget http://www.rtems.org/ftp/pub/rtems/people/chrisj/rtems-application-template-20071126.tar.bz2 $ tar jxf rtems-application-template-20071126.tar.bz2 $ wget http://www.rtems.org/ftp/pub/rtems/people/chrisj/mcf5235.cfg $ cp mcf5235.cfg /local/ccj/rtems/4.9/make/custom/mcf5235.cfg $ mkdir mcf5235 $ cd mcf5235 $ ../rtems-application-template-20071126/configure \ --host=m68k-rtems4.9 \ --prefix=/local/ccj/rtems/4.9 \ --enable-rtemsbsp=mcf5235 $ make