Commit 54a22acd authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Update instructions: use Debian stretch, build RTEMS/master

parent 88765fe4
......@@ -4,22 +4,22 @@
# Leon2/Leon3/NGMP BSPs.
#
# To have a reproducible setup, it would be prudent if you
# executed this script under a Debian jessie chroot,
# executed this script under a Debian stretch chroot,
# bootstrapped via the following:
#
# mkdir /opt/jessie-chroot
# debootstrap jessie /opt/jessie-chroot
# mount -t proc none /opt/jessie-chroot/proc/
# mount -t sysfs none /opt/jessie-chroot/sys/
# mount -o bind /dev /opt/jessie-chroot/dev/
# mount -o bind /dev/pts /opt/jessie-chroot/dev/pts/
# chroot /opt/jessie-chroot
# mkdir /opt/stretch-chroot
# debootstrap stretch /opt/stretch-chroot
# mount -t proc none /opt/stretch-chroot/proc/
# mount -t sysfs none /opt/stretch-chroot/sys/
# mount -o bind /dev /opt/stretch-chroot/dev/
# mount -o bind /dev/pts /opt/stretch-chroot/dev/pts/
# chroot /opt/stretch-chroot
# apt-get update
# apt-get build-dep binutils gcc g++ gdb unzip git python2.7-dev pax
# apt-get install flex bison make texinfo binutils gcc g++ gdb unzip git python2.7-dev pax apt-get install libncurses5-dev
#
# Then chroot inside it and run this script:
#
# chroot /opt/jessie-chroot
# chroot /opt/stretch-chroot
# /path/to/build.rtems.4.12.sh
......@@ -46,12 +46,14 @@ BUILD_LOG=~/rtems.build.logs/${DATE}.log
rm -rf ${RTPREFIX}
[ ! -d $RSB ] && {
cd ~/development/rtems/src/
git clone git://git.rtems.org/rtems-source-builder.git rtems-source-builder-${DATE}
git clone https://github.com/RTEMS/rtems-source-builder.git rtems-source-builder-${DATE}
}
cd $RSB
# Or whatever else you fancy - 4.11, etc
git checkout -f 5ff2c0aa94a6fdb8b2b93fd7b16ea4284f6df5bf
# 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:
#
# git checkout -f 4.11.2
# Verify that we have all we need to build
source-builder/sb-check
......@@ -89,11 +91,13 @@ BUILD_LOG=~/rtems.build.logs/${DATE}.log
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
# Or whatever else you fancy - 4.11, etc
git checkout -f 271690eb8838f2af30593584a87cb7595bdbdc6b
# Build RTEMS
cd rtems-git
./bootstrap
cd ..
rm -rf build.${DATE}
......
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