Skip to content

Commit

Permalink
tidy dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Mar 6, 2024
1 parent 71bb33b commit eacaf7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ RUN apt-get update -y && apt-get upgrade -y && \
busybox \
curl \
build-essential \
diffutils \
flex \
git \
python3-dev \
python3-venv \
&& rm -rf /var/lib/apt/lists/* && \
busybox --install

# setup a python venv - requried by the RSB to find 'python'
RUN python3 -m venv ${VIRTUALENV}
ENV PATH=${VIRTUALENV}/bin:${PATH}
# RSB looks for 'python'
RUN ln -s /usr/bin/python3 /usr/bin/python

# get the RTEMS Source Builder
WORKDIR ${RTEMS_BASE}
Expand Down Expand Up @@ -66,9 +63,8 @@ RUN git apply VMEConfig.patch && \
RUN ./waf && \
./waf install

RUN git clone git://git.rtems.org/rtems-net-legacy.git ${RTEMS_BASE}/rtems-net-legacy

# add in the legacy network stack
RUN git clone git://git.rtems.org/rtems-net-legacy.git ${RTEMS_BASE}/rtems-net-legacy
WORKDIR ${RTEMS_BASE}/rtems-net-legacy
RUN git submodule init && \
git submodule update && \
Expand Down
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,3 @@ The current configuration is:-
This container can be run to experiment with building components with the RSP and prebuilt rtems6 toolchain.

See https://docs.rtems.org/branches/master/user/start/index.html

To just get the Board Support Package (BSP) with toolchain, you can extract these products into your own container with:

```
ENV RTEMS_VERSION=6.1-rc2
ENV RTEMS_TOP=/rtems${RTEMS_VERSION}-beatnik-legacy/rtems/${RTEMS_VERSION}/
ENV RTEMS_BSP_IMAGE=ghcr.io/epics-containers/rtems6-powerpc-linux-developer
COPY --from=${RTEMS_BSP_IMAGE}:${RTEMS_VERSION} ${RTEMS_TOP} ${RTEMS_TOP}
```

Or you can get the BSP locally with:
```
docker run --rm -v $(pwd):/workdir ghcr.io/epics-containers/rtems6-powerpc-linux-developer:6.1-rc2
# in another terminal
mkdir -p /rtems6-beatnik-legacy/rtems/
docker cp $(docker ps -lq):/rtems6-beatnik-legacy/rtems/6.1-rc2/ /rtems6-beatnik-legacy/rtems/6.1-rc2/
```

IMPORTANT: the BSP contains absolute paths so you must copy it to the same path as inside the container.

0 comments on commit eacaf7e

Please sign in to comment.