下载预编译的工具
http://www.rtems.org/ftp/pub/rtems/linux/4.10/fedora/15/i386/
我的系统是Ubuntu,但是工具目前不支持Debian系的系统
所以需要工具转换
* Download the rpms from here by selecting the relevant RTEMS version, the preferred rpm distro, the distro version and finally the appropriate architecture. o You will need to download all those files that pertain to the architecture you want to build RTEMS for. For instance, if you are building RTEMS for sparc then download all the files that contain the word sparc in the filename. o Also download all the common files - these are the rpms of the tools needed to build RTEMS. These are apt-conf, autoconf, automake, binutils, gcc, gdb, newlib * Now that the files have been downloaded we need to convert the rpms to debs. o Run `sudo apt-get install alien` to install alien. Alien is a program to convert rpms to debs (to convert from one packaging form to another to be precise). o cd into the directory containing the rpm files and run `alien -d *.rpm` - the -d option specifies that the output file must be .deb. That must convert all rpms to debs o Now to install the debs, we run `dpkg -i *.deb`. |
之后工具会安装在/opt/rtems-4.10
root@cjia-laptop:/home/cjia/下载# ls /opt/rtems-4.10 bin i386-rtems4.10 lib libexec lm32-rtems4.10 share |
之后执行
./bootstrap mkdir build cd build ../configure --taregt=i386-rtems4.10 --enable-posix --disable-itron --enable-networking --enable-rtemsbsp="pc686" make RTEMS_BSP="pc686" |
之后编译成功