-
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.
add support for RTEMS builds of pmac (#27)
* add support for RTEMS builds of pmac * update to released rtems-proxy * update to template 3.4.0b2 * template 3.4.0
- Loading branch information
Showing
17 changed files
with
244 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: 3.2.0b3 | ||
_commit: 3.4.0 | ||
_src_path: gh:epics-containers/ioc-template | ||
description: Generic IOC for the Delta Tau turbo pmac and power pmac motion controllers | ||
git_platform: github.com | ||
github_org: epics-containers | ||
name: ioc-pmac | ||
repo_uri: git@github.com:epics-containers/ioc-pmac.git | ||
rtems: true |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Generic IOC debugging launcher | ||
// To use this l | ||
// 1. make sure you have gdb installed in your container with | ||
// apt update; apt-get install gdb | ||
// 2. run the IOC once to make sure rutime assets are generated: | ||
// cd /epics/ioc; make | ||
// ./start.sh | ||
// 3. stop the IOC with 'exit' | ||
// 4. In vscode go to the support source in /epics/support/xxx | ||
// 5. Set any breakpoints in the source code that you require. | ||
// 6. You may want to set 'HOST_OPT=NO' in CONFIG_SITE and rebuild the support | ||
// 6. Go to the debug tab and select 'IOC devcontainer debug' from the | ||
// RUN AND DEBUG dropdown | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "IOC devcontainer debug", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "/epics/ioc/bin/linux-x86_64/ioc", | ||
"args": [ | ||
"/epics/runtime/st.cmd" | ||
], | ||
"stopAtEntry": false, | ||
"cwd": "/epics/ioc", | ||
"environment": [ | ||
{ | ||
"name": "RUNTIME_DIR", | ||
"value": "/epics/runtime" | ||
} | ||
], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
}, | ||
{ | ||
"description": "Set Disassembly Flavor to Intel", | ||
"text": "-gdb-set disassembly-flavor intel", | ||
"ignoreFailures": true | ||
} | ||
] | ||
} | ||
] | ||
} |
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
Submodule ibek-support
updated
19 files
+5 −2 | ADAravis/install.sh | |
+5 −2 | ADCore/install.sh | |
+3 −0 | ADGenICam/install.sh | |
+0 −64 | ADSample/ADSimDetector.ibek.support.yaml | |
+0 −24 | ADSample/install.sh | |
+0 −297 | ADSample/simDetector.pvi.device.yaml | |
+3 −0 | ADSimDetector/install.sh | |
+4 −1 | StreamDevice/install.sh | |
+7 −2 | _global/install.sh | |
+1 −1 | asyn/install.sh | |
+1 −1 | autosave/install.sh | |
+1 −1 | iocStats/install.sh | |
+4 −1 | lakeshore340/install.sh | |
+4 −1 | modbus/install.sh | |
+3 −0 | motorMotorSim/install.sh | |
+5 −2 | opcua/install.sh | |
+6 −4 | pmac/install.sh | |
+5 −2 | quadEM/install.sh | |
+5 −0 | sscan/install.sh |
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ data | |
lib | ||
.svn* | ||
iocs/*IOC* | ||
.idea | ||
.idea | ||
.iocsh_history |
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,12 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# global install script for support all support modules to reference | ||
# global install script for all support modules to reference | ||
# every install.sh script in ibek-support should call this script | ||
# before it compiles its support module. | ||
|
||
x86_cfg='./configure/CONFIG_SITE.Common.linux-x86_64' | ||
THIS=$(realpath $(dirname $0)) | ||
|
||
x86_cfg="${THIS}/configure/CONFIG_SITE.Common.linux-x86_64" | ||
|
||
# for RTEMS builds don't build for the host architecture, target only | ||
if [[ $TARGET_ARCHITECTURE == "rtems" ]]; then | ||
if [[ $EPICS_TARGET_ARCH == "RTEMS"* ]]; then | ||
touch ${x86_cfg} | ||
sed -i '/VALID_BUILDS/d' ${x86_cfg} | ||
echo "VALID_BUILDS=Host" >> ${x86_cfg} | ||
fi | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# This script installs a python proxy for the IOC. The proxy is used to | ||
# communicate with the IOC from the kubernetes pod where the IOC is non-native | ||
# and cannot run in the cluster itself. | ||
|
||
# Only one proxy will be installed based on the EPICS_TARGET_ARCH | ||
# the entry point for all proxies will be "epics-proxy start" and will | ||
# be called by the default IOC start.sh script after it has prepared | ||
# runtime assets. | ||
# TODO: at present the rtems-proxy is the only supported proxy and uses | ||
# rtems-proxy start as its entry point. | ||
# TODO: consider renaming to ioc-proxy and genericizing. This would | ||
# negate the need for this script. | ||
|
||
# Most IOCs are native linux-x86_64 and will run directly in the cluster | ||
# so proxy installation is not required. | ||
|
||
if [[ $EPICS_TARGET_ARCH == "RTEMS-beatnik" ]] ; then | ||
pip install rtems-proxy=="0.5.0" | ||
fi | ||
|
||
# no other proxies supported at present |
Oops, something went wrong.