rtems 4.11 ubuntu 12.04
#!/bin/bash
ARCH=$(uname -i)
BRANCH=4.11
sudo -s
cat >/etc/apt/sources.list.d/rtems-ftp.list <<EOF
deb http://www.rtems.org/ftp/pub/rtems/linux/$BRANCH/ubuntu/ natty rtems$BRANCH
deb-src http://www.rtems.org/ftp/pub/rtems/linux/$BRANCH/ubuntu/ natty rtems$BRANCH
EOF
apt-get -d update
apt-get install -y libc-dev
apt-get install -y rtems-$BRANCH-automake rtems-$BRANCH-autoconf
apt-get install -y rtems-$BRANCH-$ARCH-rtems$BRANCH-binutils rtems-$BRANCH-$ARCH-rtems$BRANCH-gdb rtems-$BRANCH-$ARCH-rtems$BRANCH-gcc rtems-$BRANCH-$ARCH-rtems$BRANCH-gcc-c++
apt-get install -y git
git clone git://git.rtems.org/examples-v2.git examples-v2
git clone git://git.rtems.org/rtems.git rtems
git clone git://git.rtems.org/rtems-schedsim.git rtems-schedsim
git clone git://git.rtems.org/rtems-testing.git rtems-testing
git clone git://git.rtems.org/rtems-addon-packages.git rtems-addon-packages
wget -c http://www.rtems.com/ftp/pub/rtems/SOURCES/4.11/autoconf-2.69.tar.xz
wget -c http://www.rtems.com/ftp/pub/rtems/SOURCES/4.11/automake-1.12.2.tar.xz
tar xf autoconf-2.69.tar.xz
tar xf automake-1.12.2.tar.xz
cd autoconf-2.69
./configure --prefix=/opt/autoconf2.69 && make && sudo make install
cd ..
cd automake-1.12.2
PATH=/opt/autoconf2.69/bin:$PATH
./configure --prefix=/opt/automake1.12.2 && make && sudo make install
cd ..
cd rtems
PATH=/opt/automake1.12.2:$PATH
./bootstrap
cd ..
mkdir pc386
cd pc386
../rtems/configure --target=i386-rtems4.11 --enable-rtemsbsp=pc386 --enable-tests=samples --disable-posix --prefix=/opt | tee ../pc386.build.log
make
ARCH=$(uname -i)
BRANCH=4.11
sudo -s
cat >/etc/apt/sources.list.d/rtems-ftp.list <<EOF
deb http://www.rtems.org/ftp/pub/rtems/linux/$BRANCH/ubuntu/ natty rtems$BRANCH
deb-src http://www.rtems.org/ftp/pub/rtems/linux/$BRANCH/ubuntu/ natty rtems$BRANCH
EOF
apt-get -d update
apt-get install -y libc-dev
apt-get install -y rtems-$BRANCH-automake rtems-$BRANCH-autoconf
apt-get install -y rtems-$BRANCH-$ARCH-rtems$BRANCH-binutils rtems-$BRANCH-$ARCH-rtems$BRANCH-gdb rtems-$BRANCH-$ARCH-rtems$BRANCH-gcc rtems-$BRANCH-$ARCH-rtems$BRANCH-gcc-c++
apt-get install -y git
git clone git://git.rtems.org/examples-v2.git examples-v2
git clone git://git.rtems.org/rtems.git rtems
git clone git://git.rtems.org/rtems-schedsim.git rtems-schedsim
git clone git://git.rtems.org/rtems-testing.git rtems-testing
git clone git://git.rtems.org/rtems-addon-packages.git rtems-addon-packages
wget -c http://www.rtems.com/ftp/pub/rtems/SOURCES/4.11/autoconf-2.69.tar.xz
wget -c http://www.rtems.com/ftp/pub/rtems/SOURCES/4.11/automake-1.12.2.tar.xz
tar xf autoconf-2.69.tar.xz
tar xf automake-1.12.2.tar.xz
cd autoconf-2.69
./configure --prefix=/opt/autoconf2.69 && make && sudo make install
cd ..
cd automake-1.12.2
PATH=/opt/autoconf2.69/bin:$PATH
./configure --prefix=/opt/automake1.12.2 && make && sudo make install
cd ..
cd rtems
PATH=/opt/automake1.12.2:$PATH
./bootstrap
cd ..
mkdir pc386
cd pc386
../rtems/configure --target=i386-rtems4.11 --enable-rtemsbsp=pc386 --enable-tests=samples --disable-posix --prefix=/opt | tee ../pc386.build.log
make