Skip to content

Commit 078205e

Browse files
committed
Add env var substitutions file for PVAccess
1 parent 39d5a9d commit 078205e

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

configure/CONFIG_SITE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#MSI=$(EPICS_SITE_TOP)/extensions/$(EXTENSIONS_MODULE_VERSION)/bin/$(EPICS_HOST_ARCH)/msi
3636
#MSI=msi
3737

38+
WITH_PVA=$(if $(strip $(EPICS_PVA_MAJOR_VERSION) $(PVXS_MAJOR_VERSION)),YES,NO)
39+
3840
-include $(SUPPORT)/configure/CONFIG_SITE
3941

4042
# These allow developers to override the CONFIG_SITE variable

iocAdmin/Db/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ include $(TOP)/configure/CONFIG
1212
# databases, templates, substitutions like this
1313
#
1414
DB += siteEnvVars.db
15+
ifeq ($(strip $(WITH_PVA)),YES)
16+
DB += epicsPVAEnvVars.db
17+
endif
1518
DB += iocAdminScanMon.db
1619
DB += ioc.db
1720
DB += iocRTOS.db
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#==============================================================================
2+
#
3+
# Abs: Records for EPICS environment variables
4+
#
5+
# Name: epicsEnvVars.substitutions
6+
#
7+
#==============================================================================
8+
#
9+
file iocEnvVar.template
10+
{
11+
pattern
12+
{ ENVNAME , ENVVAR , ENVTYPE}
13+
{ PVA_ADDR_LIST , EPICS_PVA_ADDR_LIST , env }
14+
{ PVA_AUTO_ADDR_LIST , EPICS_PVA_AUTO_ADDR_LIST , env }
15+
{ PVA_BEACON_PERIOD , EPICS_PVA_BEACON_PERIOD , env }
16+
{ PVA_CONN_TMO , EPICS_PVA_CONN_TMO , env }
17+
{ PVA_MAX_ARRAY_BYTES , EPICS_PVA_MAX_ARRAY_BYTES , env }
18+
{ PVA_MAX_SEARCH_PERIOD , EPICS_PVA_MAX_SEARCH_PERIOD , env }
19+
{ PVA_SERVER_PORT , EPICS_PVA_SERVER_PORT , env }
20+
21+
{ PVAS_INTF_ADDR_LIST , EPICS_PVAS_INTF_ADDR_LIST , env }
22+
{ PVAS_BEACON_ADDR_LIST , EPICS_PVAS_BEACON_ADDR_LIST , env }
23+
{ PVAS_AUTO_BEACON_ADDR_LIST , EPICS_PVAS_AUTO_BEACON_ADDR_LIST , env }
24+
{ PVAS_BEACON_PERIOD , EPICS_PVAS_BEACON_PERIOD , env }
25+
{ PVAS_BROADCAST_PORT , EPICS_PVAS_BROADCAST_PORT , env }
26+
{ PVAS_PROVIDER_NAMES , EPICS_PVAS_PROVIDER_NAMES , env }
27+
{ PVAS_SERVER_PORT , EPICS_PVAS_SERVER_PORT , env }
28+
}

0 commit comments

Comments
 (0)