From acb2713a59601c89c052fca9570266df53417ec6 Mon Sep 17 00:00:00 2001 From: Thanassis Tsiodras Date: Thu, 20 Jul 2017 14:32:36 +0200 Subject: [PATCH] Final version of the RTEMS compiler to use for RTEMS/SMP --- OAR/contrib/build.rtems.4.12.sh | 38 +++++++++++++-------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/OAR/contrib/build.rtems.4.12.sh b/OAR/contrib/build.rtems.4.12.sh index 76c6e09..77920d6 100755 --- a/OAR/contrib/build.rtems.4.12.sh +++ b/OAR/contrib/build.rtems.4.12.sh @@ -1,27 +1,15 @@ #!/bin/bash # # This script builds the RTEMS/SPARC cross-compiler and the -# Leon2/Leon3/NGMP BSPs. +# LEON2/GR712/GR740 BSPs. # -# To have a reproducible setup, it would be prudent if you -# executed this script under a Debian stretch chroot, -# bootstrapped via the following: -# -# 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 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: -# -# chroot /opt/stretch-chroot -# /path/to/build.rtems.4.12.sh - +# The call to sb-check below will stop the build if your environment +# is missing the necessary dependencies - which include GCC7 AND GNAT7. +# +# If you want to get a pre-made toolchain that was built by this script, +# you can download the TASTE VM from https://taste.tuxfamily.org/ +# (navigate to the Download Area, and get the .ova file - which you +# can import in VirtualBox). # Stop on any error set -e @@ -50,12 +38,14 @@ BUILD_LOG=$HOME/rtems.build.logs/${DATE}.log git clone https://github.com/RTEMS/rtems-source-builder.git rtems-source-builder-${DATE} } cd $RSB - git checkout -f 4f3b8da031e42d126afd94d17582123f66b78a68 # 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 + # git checkout -f 4.11.2 + # + # RSB commit ID recommended by Embedded Brains for using RTEMS/SMP: + git checkout -f e2952bb185c1f40027caa76cfd9e4a45b17a8886-modified # Verify that we have all we need to build source-builder/sb-check @@ -94,7 +84,9 @@ BUILD_LOG=$HOME/rtems.build.logs/${DATE}.log [ ! -d rtems-git ] && { git clone https://github.com/RTEMS/rtems.git rtems-git cd rtems-git - git checkout -f e19da87ad706bf79fa0e22f1f7d68e21bca2e296 + + # RTEMS commit ID recommended by Embedded Brains for using RTEMS/SMP + git checkout -f 96ce1ec743a1fcf27593ee72cf1695d9eb0290de cd .. } -- GitLab