Skip to content

Commit

Permalink
base: add support for ADPimega module.
Browse files Browse the repository at this point in the history
Pimega library is closed-source and its binaries and header files are
thus installed from a tarball. This implies that any IOC that uses
ADPimega must include an entry in RUNTIME_TAR_PACKAGES pointing to a
tarball of the same version used during the support module build.
  • Loading branch information
henriquesimoes committed Nov 8, 2023
1 parent 46ae0c0 commit 7aaf29d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ SSCAN_VERSION=R2-11-5
RECCASTER_VERSION=1.5
IPAC_VERSION=2.16
AREA_DETECTOR_VERSION=R3-12-1
ADPIMEGA_VERSION=2.5.2-1
NDSSCPIMEGA_VERSION=1.0.0
MOTOR_VERSION=R7-3-1

LIBPIMEGA_VERSION=2.5.2-0
LIBSSCPIMEGA_VERSION=main
8 changes: 8 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RUN apt update -y && \
build-essential \
git \
libaravis-dev \
libczmq-dev \
libjson-c-dev \
libreadline-dev \
libtiff-dev \
libusb-1.0-0-dev \
Expand All @@ -21,6 +23,11 @@ RUN apt update -y && \

COPY lnls-get-n-unpack.sh /usr/local/bin/lnls-get-n-unpack

ARG LIBPIMEGA_VERSION

RUN lnls-get-n-unpack -r \
http://gca-jobs:1234/packages/libpimega_${LIBPIMEGA_VERSION}_amd64.tar.gz

ARG EPICS_BASE_VERSION
ENV EPICS_BASE_PATH /opt/epics/base
ENV EPICS_MODULES_PATH /opt/epics/modules
Expand All @@ -42,6 +49,7 @@ ARG SSCAN_VERSION
ARG RECCASTER_VERSION
ARG IPAC_VERSION
ARG AREA_DETECTOR_VERSION
ARG ADPIMEGA_VERSION
ARG NDSSCPIMEGA_VERSION
ARG MOTOR_VERSION

Expand Down
2 changes: 2 additions & 0 deletions base/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ services:
RECCASTER_VERSION: ${RECCASTER_VERSION}
IPAC_VERSION: ${IPAC_VERSION}
AREA_DETECTOR_VERSION: ${AREA_DETECTOR_VERSION}
ADPIMEGA_VERSION: ${ADPIMEGA_VERSION}
NDSSCPIMEGA_VERSION: ${NDSSCPIMEGA_VERSION}
MOTOR_VERSION: ${MOTOR_VERSION}
LIBPIMEGA_VERSION: ${LIBPIMEGA_VERSION}
LIBSSCPIMEGA_VERSION: ${LIBSSCPIMEGA_VERSION}
15 changes: 15 additions & 0 deletions base/install_area_detector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,18 @@ ASYN=${EPICS_MODULES_PATH}/asyn
AREA_DETECTOR=${EPICS_MODULES_PATH}/areaDetector
ADCORE=${EPICS_MODULES_PATH}/areaDetector/ADCore
"

cd areaDetector

lnls-get-n-unpack -l http://gca-jobs:1234/packages/ad-pimega_${ADPIMEGA_VERSION}.tar.gz

echo "
EPICS_BASE=${EPICS_BASE_PATH}
" > ADPimega/configure/RELEASE.local

echo "ADPIMEGA=${EPICS_MODULES_PATH}/areaDetector/ADPimega" >> $EPICS_RELEASE_FILE

echo "BUILD_IOCS=YES" >> configure/CONFIG_SITE
cp $EPICS_RELEASE_FILE ADPimega/iocs/pimegaIOC/configure/RELEASE

make -C ADPimega

0 comments on commit 7aaf29d

Please sign in to comment.