Skip to content

Commit bf5d541

Browse files
authored
Merge pull request #20 from pepepr08/fix-15-use-new-rtems-repo
Fix #15, Update links to RTEMS repo
2 parents 553bb0a + 7cecc47 commit bf5d541

File tree

4 files changed

+30
-27
lines changed

4 files changed

+30
-27
lines changed

rtems-4.11/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@ ENV DEBIAN_FRONTEND=noninteractive
55
run apt-get update && apt-get install -y git make curl
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 python-dev g++ unzip libgmp-dev libmpfr-dev
99

1010
# QEMU dependencies
1111
run apt-get install -y qemu-system-i386
1212

1313
# setup and compile RTEMS BSP
1414
run mkdir -p ${HOME}/rtems-4.11 \
1515
&& cd ${HOME} \
16-
&& git clone -b 4.11 git://git.rtems.org/rtems-source-builder.git \
16+
&& git clone -b 4.11 https://gitlab.rtems.org/rtems/tools/rtems-source-builder.git \
1717
&& cd rtems-source-builder/rtems \
18-
1918
# Download gnu mpc before source builder will fail to download it
2019
&& mkdir sources \
2120
&& curl https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz --output sources/mpc-1.0.3.tar.gz \
2221
&& ../source-builder/sb-set-builder --prefix=$HOME/rtems-4.11 4.11/rtems-i386 \
2322

2423
# clone and bootstrap RTEMS source tree
2524
&& cd ${HOME} \
26-
&& git clone -b 4.11 git://git.rtems.org/rtems.git \
25+
&& git clone -b 4.11 https://gitlab.rtems.org/rtems/rtos/rtems.git \
2726
&& export PATH=$HOME/rtems-4.11/bin:$PATH \
2827
&& cd rtems && ./bootstrap \
2928

@@ -65,5 +64,6 @@ run tar -zxf dosfstools.tar.gz && rm dosfstools.tar.gz
6564
run cd dosfstools-* && ./configure && make && make prefix=/usr/local install
6665

6766
# Remove unecessary dependencies now that rtems is built
68-
run apt-get purge -y libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip git flex bison texinfo curl
67+
run apt-get purge -y libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip git flex bison texinfo curl \
68+
libgmp-dev libmpfr-dev
6969
run apt-get autoremove -y

rtems-5/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ ENV DEBIAN_FRONTEND=noninteractive
55
run 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
# QEMU dependencies
1114
run apt-get install -y qemu-system-i386
1215

1316
# setup and compile RTEMS BSP
1417
run mkdir -p ${HOME}/rtems-5 \
1518
&& cd ${HOME} \
16-
&& git clone -b 5 git://git.rtems.org/rtems-source-builder.git \
19+
&& git clone -b 5 https://gitlab.rtems.org/rtems/tools/rtems-source-builder.git \
1720
&& cd rtems-source-builder/rtems \
1821
&& ../source-builder/sb-set-builder --prefix=$HOME/rtems-5 5/rtems-i386 \
1922
# clone and bootstrap RTEMS source tree
2023
&& cd ${HOME} \
21-
&& git clone -b 5 git://git.rtems.org/rtems.git \
24+
&& git clone -b 5 https://gitlab.rtems.org/rtems/rtos/rtems.git \
2225
&& export PATH=$HOME/rtems-5/bin:$PATH \
2326
&& cd rtems && ./bootstrap \
2427
# Build and install RTEMS pc686 BSP
@@ -54,5 +57,6 @@ run tar -zxf dosfstools.tar.gz && rm dosfstools.tar.gz
5457
run cd dosfstools-* && ./configure && make && make prefix=/usr/local install
5558

5659
# Remove unecessary dependencies now that rtems is built
57-
run apt-get purge -y libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip git flex bison texinfo curl
60+
run apt-get purge -y libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip git flex bison texinfo curl \
61+
libgmp-dev libmpfr-dev bzip2 xz-utils
5862
run apt-get autoremove -y

rtems-6/Dockerfile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ ENV DEBIAN_FRONTEND=noninteractive
55
run 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
1114
run 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
2023
copy 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
2426
run 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
5251
run 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
6766
run 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
7171
run apt-get autoremove -y

rtems-6/config.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[i386/pc686]
2-
RTEMS_POSIX_API = False
3-
BUILD_TESTS = False
4-
2+
RTEMS_POSIX_API = True
3+
BUILD_TESTS = False

0 commit comments

Comments
 (0)