Skip to content

Commit

Permalink
update support yaml generator script
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Nov 7, 2023
1 parent 1b1baa7 commit 1da5691
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ADAravis/ADAravis.ibek.support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
module: ADAravis

defs:

- name: aravisCamera
description: |-
Creates a aravisCamera camera areaDetector driver
args:

- type: str
name: P
description: |-
Expand Down Expand Up @@ -91,6 +93,7 @@ defs:
default: 0

databases:

- file: $(ADARAVIS)/db/aravisCamera.template
args:
P:
Expand All @@ -108,6 +111,7 @@ defs:
ADDR:

pre_init:

- value: |
# aravisConfig(const char *portName, const char *cameraName, size_t maxMemory, int priority, int stackSize)
aravisConfig("{{PORT}}", "{{ID}}", {{MEMORY}}, 0, 1)
2 changes: 1 addition & 1 deletion ADCore/ADCore.ibek.support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ defs:
FLOAT:
CHAR:

- type: str
- type: int
name: NELEMENTS
description: |-
Number of elements
Expand Down
14 changes: 11 additions & 3 deletions build_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# This script is used to generate support YAML for ibek from the latest
# released versions of builder support modules at DLS
# as of 26/09/2023
# as of 07/11/2023

# assumes ibek is a peer to this folder's parent (as ibek-support is usually
# a submodule of an ioc-xxxx) Adjust Path if this is not the case.
Expand All @@ -11,9 +11,17 @@ set -xe
cd $(realpath $(dirname $0))
PATH=$PATH:$(realpath ../../ibek)

# overrides coerce NELEMENTS to int
builder2ibek.support.py /dls_sw/prod/R3.14.12.7/support/ADCore/3-12-1dls3 ADCore/ADCore.ibek.support.yaml -o '193:10 178:10'
builder2ibek.support.py /dls_sw/prod/R3.14.12.7/support/ADAravis/2-2-1dls16/ ADAravis/ADAravis.ibek.support.yaml
# fixup ADAravis template path to parameterised by CLASS and repair comment in startup script
sed -i ADAravis/ADAravis.ibek.support.yaml -e 's`db/AVT_Mako_1_52.template`db/{{CLASS}}.template`' -e 's/aravisConfig(const/# aravisConfig(const/'
# remove the PV_ALIAS argument
sed -i -r '71,78d' ADAravis/ADAravis.ibek.support.yaml


exit 0

builder2ibek.support.py /dls_sw/prod/R3.14.12.7/support/ADCore/3-9dls3alpha/ ADCore/ADCore.ibek.support.yaml
builder2ibek.support.py /dls_sw/prod/R3.14.12.7/support/ADAravis/2-2-1dls9/ ADAravis/ADAravis.ibek.support.yaml
builder2ibek.support.py /dls_sw/prod/R3.14.12.7/support/zebra/2-9-2 zebra/zebra.ibek.support.yaml


Expand Down

0 comments on commit 1da5691

Please sign in to comment.