Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add calc sscan mosot pmac install.sh files #11

Merged
merged 4 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,893 changes: 2,937 additions & 2,956 deletions ADCore/ADCore.ibek.support.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This repo holds details of how to build EPICS support modules within
an epics-containers Generic IOC Dockerfile. For runtime, it also has details of
how to use features from each support module in an epics-containers
how to use features from each support module in an epics-container
IOC instance.

## Scope
Expand Down
9 changes: 0 additions & 9 deletions calc/calc.sh

This file was deleted.

27 changes: 27 additions & 0 deletions calc/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
##########################################################################
###### install script for ADSimDetector Module ###########################
##########################################################################

# ARGUMENTS:
# $1 VERSION to install (must match repo tag)
VERSION=${1}
NAME=calc

# log output and abort on failure
set -xe

# get the source and fix up the configure/RELEASE files
ibek support git-clone ${NAME} ${VERSION}
ibek support register ${NAME}

# declare the libs and DBDs that are required in ioc/iocApp/src/Makefile
ibek support add-libs calc
ibek support add-dbds calcSupport.dbd

# compile the support module
ibek support compile ${NAME}
# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container.
ibek support generate-links


5 changes: 0 additions & 5 deletions ioc/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions ioc/config/st.cmd

This file was deleted.

40 changes: 0 additions & 40 deletions ioc/liveness.sh

This file was deleted.

112 changes: 0 additions & 112 deletions ioc/start.sh

This file was deleted.

16 changes: 0 additions & 16 deletions ioc/stop.sh

This file was deleted.

26 changes: 26 additions & 0 deletions motor/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
##########################################################################
###### install script for the epics motor module #########################
##########################################################################

# ARGUMENTS:
# $1 VERSION to install (must match repo tag)
VERSION=${1}
NAME=motor

# log output and abort on failure
set -xe

# get the source and fix up the configure/RELEASE files
# TODO sadly DLS has a fork of the motor module - ACTION wean us off this
ibek support git-clone ${NAME} ${VERSION} --org http://github.com/dls-controls/
ibek support register ${NAME}

# declare the libs and DBDs that are required in ioc/iocApp/src/Makefile
ibek support add-libs softMotor motor
ibek support add-dbds motorRecord.dbd motorSupport.dbd devSoftMotor.dbd

# compile the support module
ibek support compile ${NAME}
# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container.
ibek support generate-links
Empty file removed motor/place_holder
Empty file.
53 changes: 53 additions & 0 deletions pmac/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash
##########################################################################
###### install script for delta tau pmac module ##########################
##########################################################################

# ARGUMENTS:
# $1 VERSION to install (must match repo tag)
VERSION=${1}
NAME=pmac

# log output and abort on failure
set -xe

ibek support apt-install --only=dev libssh2-1-dev
ibek support apt-install --only=run libssh2-1

# get the source and fix up the configure/RELEASE files
ibek support git-clone ${NAME} ${VERSION} --org http://github.com/dls-controls/
ibek support register ${NAME}

CONFIG="
# The following definitions must be changed for each site

# - To build the IOC applications set BUILD_IOCS to YES
# Otherwise set it to NO
BUILD_IOCS=NO

CROSS_COMPILER_TARGET_ARCHS =

# Definitions required for compiling the unit tests
BOOST_LIB = /usr/lib
BOOST_INCLUDE = -I/usr/include

SSH = /usr
SSH_LIB = /usr/lib/x86_64-linux-gnu
SSH_INCLUDE = -I/usr/include
"
# original CONFIG_SITE/RELEASE .Common has dls paths - TODO add --overwrite to
# 'ibek support add-to-config-site'
rm -f /epics/support/pmac/configure/CONFIG_SITE.linux-x86_64.Common
rm -f /epics/support/pmac/configure/RELEASE.linux-x86_64.Common
ibek support add-to-config-site ${NAME} "${CONFIG}"

# declare the libs and DBDs that are required in ioc/iocApp/src/Makefile
ibek support add-libs pmacAsynIPPort pmacAsynMotorPort pmacAsynMotor powerPmacAsynPort
ibek support add-dbds pmacAsynIPPort.dbd pmacAsynMotorPort.dbd drvAsynPowerPMACPort.dbd

# compile the support module (don't build parallel as Makefile doesn't work)
ibek support compile ${NAME} -j 1
# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container.
ibek support generate-links


30 changes: 0 additions & 30 deletions pmac/pmac.sh

This file was deleted.

27 changes: 27 additions & 0 deletions sscan/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
##########################################################################
###### install script for ADSimDetector Module ###########################
##########################################################################

# ARGUMENTS:
# $1 VERSION to install (must match repo tag)
VERSION=${1}
NAME=sscan

# log output and abort on failure
set -xe

# get the source and fix up the configure/RELEASE files
ibek support git-clone ${NAME} ${VERSION}
ibek support register ${NAME}

# declare the libs and DBDs that are required in ioc/iocApp/src/Makefile
ibek support add-libs sscan
ibek support add-dbds sscan.dbd

# compile the support module
ibek support compile ${NAME}
# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container.
ibek support generate-links


Empty file removed sscan/place_holder
Empty file.
Loading