-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework into a base container for epics-base (#2)
* make names, paths and files shorter * fix TAGS * fix patch * update README * restore patch * switch to bsp based naming for images * run targets parallel
- Loading branch information
Showing
7 changed files
with
45 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,27 @@ | ||
# rtems6-powerpc | ||
RTEMS Board Support Packages | ||
============================ | ||
|
||
A container that makes the RTEMS powerpc beatnik Board Support Package (BSP). | ||
A container that makes the RTEMS Board Support Packages (BSPs). | ||
|
||
This container gets the sources from RTEMS releases, builds the toolchain and then compiles the BSP. | ||
|
||
The current configuration is:- | ||
- rtems version: 6.1-rc2 | ||
- patches for MVME5500 boards used at DLS | ||
- legacy network stack | ||
The developer target serves as an archive for the source code. The runtime target is a minimal container with the RTEMS BSP only, intended to be used as a base image for epics-base builds (see https://github.com/epics-containers/epics-base) | ||
|
||
This container can be run to experiment with building components with the RSP and prebuilt rtems6 toolchain. | ||
Supported BSPs | ||
-------------- | ||
|
||
See https://docs.rtems.org/branches/master/user/start/index.html | ||
The repo is designed to allow for multiple target architectures. At present the list of BSPs is only 1 long: | ||
|
||
To just get the Board Support Package (BSP) with toolchain, you can extract these products into your own container with: | ||
- mvme5500 | ||
- rtems version: 6.1-rc2 | ||
- patches for MVME5500 boards used at DLS | ||
- legacy network stack | ||
- processor is m4700 with hardware floating point support | ||
|
||
``` | ||
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} | ||
``` | ||
Acknowledgements | ||
================ | ||
|
||
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/ | ||
``` | ||
This is all possible due to the hard work of the RTEMS community. | ||
|
||
IMPORTANT: the BSP contains absolute paths so you must copy it to the same path as inside the container. | ||
See https://docs.rtems.org/branches/master/user/start/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/bin/bash | ||
|
||
THIS=$(realpath $(dirname $0)) | ||
RSB=${RTEMS_BASE}/rsb | ||
RSB=${RTEMS_TOP}/rsb | ||
|
||
set -xe | ||
|
||
mkdir -p $RSB/rtems/patches | ||
cp $THIS/gcc.patch $RSB/rtems/patches | ||
cp $THIS/rtems-gcc-13.2-newlib-head.cfg $RSB/rtems/config/tools | ||
cp $THIS/rtems-default-tools.bset $RSB/rtems/config/tools | ||
|
||
cp $THIS/rtems-gcc-13.2-newlib-head.cfg $RSB/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,3 @@ | |
%define with_iconv 1 | ||
|
||
%include %{_configdir}/gcc-13.cfg | ||
|