Commit 07fb3f4f authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Remove duplicates

parent d6cc5410
......@@ -15,7 +15,7 @@
# mount -o bind /dev/pts /opt/stretch-chroot/dev/pts/
# chroot /opt/stretch-chroot
# apt-get update
# apt-get install flex bison make texinfo binutils gcc g++ gdb unzip git python2.7-dev pax apt-get install libncurses5-dev
# apt-get install flex bison make texinfo binutils gcc g++ gdb unzip git python2.7-dev pax libncurses5-dev
#
# Then chroot inside it and run this script:
#
......@@ -27,8 +27,8 @@
set -e
DATE=$(date +"%Y.%m.%d")
mkdir -p ~/rtems.build.logs
BUILD_LOG=~/rtems.build.logs/${DATE}.log
mkdir -p $HOME/rtems.build.logs
BUILD_LOG=$HOME/rtems.build.logs/${DATE}.log
[ -f ${BUILD_LOG} ] && {
echo "There's already a build log:"
echo " " ${BUILD_LOG}
......@@ -40,15 +40,17 @@ BUILD_LOG=~/rtems.build.logs/${DATE}.log
{
# Begin by checking out the RTEMS Source Builder
mkdir -p ~/development/rtems/src
RSB=~/development/rtems/src/rtems-source-builder-${DATE}
RSBPARENT=$HOME/development/rtems/src
mkdir -p $RSBPARENT
RSB=$RSBPARENT/rtems-source-builder-${DATE}
RTPREFIX=/opt/rtems-4.12-${DATE}
rm -rf ${RTPREFIX}
[ ! -d $RSB ] && {
cd ~/development/rtems/src/
cd $RSBPARENT
git clone https://github.com/RTEMS/rtems-source-builder.git rtems-source-builder-${DATE}
}
cd $RSB
git checkout -f e2952bb185c1f40027caa76cfd9e4a45b17a8886
# What tag/branch to work on? By default this will be in the master branch,
# but you can switch - to e.g. 4.11.2:
......@@ -84,16 +86,16 @@ BUILD_LOG=~/rtems.build.logs/${DATE}.log
# Build the cross compiling toolchain
# (we're in the master branch, which is currently the "unofficial" 4.12)
../source-builder/sb-set-builder --log=stage1.log --prefix=${RTPREFIX} 4.12/rtems-sparc
../source-builder/sb-set-builder --with-ada --log=stage1.log --prefix=${RTPREFIX} 4.12/rtems-sparc
# Add the cross compiler to the PATH and checkout RTEMS
export PATH=${RTPREFIX}/bin:$PATH
cd ..
[ ! -d rtems-git ] && {
git clone https://github.com/RTEMS/rtems.git rtems-git
# cd rtems-git
# git checkout -f 4.11.2
# cd ..
cd rtems-git
git checkout -f 4debaca6d2d6248f97bf3fbbd39a8afca0ab4beb
cd ..
}
# Build RTEMS
......@@ -105,7 +107,7 @@ BUILD_LOG=~/rtems.build.logs/${DATE}.log
cd build.${DATE}
../rtems-git/configure \
--target=sparc-rtems4.12 --prefix=${RTPREFIX} \
--enable-rtemsbsp="leon2 leon3 ngmp" --enable-posix \
--enable-rtemsbsp="leon2 gr712rc gr740" --enable-posix --enable-ada \
--enable-smp --enable-cxx --enable-networking
make all
make install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment