@@ -5,7 +5,10 @@ ENV DEBIAN_FRONTEND=noninteractive
55run apt-get update && apt-get install -y git make
66
77# rtems dependencies
8- run apt-get install -y flex bison texinfo python-dev g++ unzip
8+ run apt-get install -y flex bison texinfo python3-dev g++ unzip libgmp-dev libmpfr-dev bzip2 xz-utils
9+
10+ # Make python3 the default python
11+ run ln -s /usr/bin/python3 /usr/bin/python
912
1013# Added: Python development package installation for RTEMS build dependencies
1114run apt-get install -y python3-dev libpython3-dev
@@ -19,34 +22,30 @@ copy rtems-6/config.ini /config.ini
1922# Temporary fix for legacy network stack
2023copy rtems-6/testbusy.c /testbusy.c
2124
22- # setup and compile RTEMS BSP
23- # Git commits are from 13 May 2022
25+ # Setup and compile RTEMS BSP
2426run mkdir -p ${HOME}/rtems-6 \
2527 && cd ${HOME} \
26- && git clone git ://git .rtems.org/rtems-source-builder.git \
28+ && git clone -b 6 https ://gitlab .rtems.org/rtems/tools /rtems-source-builder.git \
2729 && cd rtems-source-builder/rtems \
28- && git checkout 620b6243 \
29- && ../source-builder/sb-set-builder --prefix=$HOME/rtems-6 6/rtems-i386 \
30+ && ../source-builder/sb-set-builder --prefix=$HOME/rtems-6 6/rtems-i386
3031# clone RTEMS source tree
31- && cd ${HOME} \
32- && git clone git ://git .rtems.org/rtems.git \
32+ run cd ${HOME} \
33+ && git clone -b 6 https ://gitlab .rtems.org/rtems/rtos /rtems.git \
3334 && export PATH=$HOME/rtems-6/bin:$PATH \
3435# Build RTEMS BSP
3536 && cd rtems \
36- && git checkout 3ccfb583 \
3737 && mv /config.ini . \
3838 && ./waf configure --prefix=${HOME}/rtems-6 \
3939 && ./waf \
40- && ./waf install \
40+ && ./waf install
4141# Get and build the legacy network stack
42- && cd ${HOME} \
43- && git clone git ://git .rtems.org/rtems-net-legacy.git \
42+ run cd ${HOME} \
43+ && git clone -b 6 https ://gitlab .rtems.org/rtems/pkg /rtems-net-legacy.git \
4444 && cd rtems-net-legacy \
45- && git checkout 1d492241 \
4645 && git submodule update --init \
4746 && mv /testbusy.c libtest/testbusy.c \
4847 && ./waf configure --prefix=$HOME/rtems-6 \
49- && ./waf build install
48+ && ./waf build install
5049
5150# install git from source for updated version
5251run apt-get install -y libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext cmake
@@ -67,5 +66,6 @@ run tar -zxf dosfstools.tar.gz && rm dosfstools.tar.gz
6766run cd dosfstools-* && ./configure && make && make prefix=/usr/local install
6867
6968# Remove unecessary dependencies now that rtems is built
70- run apt-get purge -y libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip git flex bison texinfo curl
69+ run apt-get purge -y libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip git flex bison texinfo curl \
70+ libgmp-dev libmpfr-dev bzip2 xz-utils
7171run apt-get autoremove -y
0 commit comments