prepare for new require that uses EPICS_DRIVER_PATH variable
set EPICS_TS_NTP_INET early before any driver is loaded and may need the time
This commit is contained in:
@@ -30,12 +30,20 @@ sprintf (STREAM_PROTOCOL_DIR, "%s/cfg", HOME)
|
||||
LIB=malloc(80)
|
||||
sprintf (LIB, "%s/iocBoot/%s/%s", INSTBASE, EPICS, ARCH)
|
||||
|
||||
DBD=malloc(80)
|
||||
sprintf (DBD, "dbd:%s/iocBoot/%s/dbd", INSTBASE, EPICS)
|
||||
|
||||
sprintf (STRINGBUFFER, "EPICS_DRIVER_PATH=.:bin:snl:%s", LIB)
|
||||
putenv (STRINGBUFFER)
|
||||
|
||||
TEMPLATES=malloc(80)
|
||||
sprintf (TEMPLATES, ".:%s/iocBoot/templates", INSTBASE)
|
||||
|
||||
# Memory above 32 MB is blocked to avoid relocation problem
|
||||
# Release it after libs are loaded and before iocInit
|
||||
# Code loaded afer iocInit must be compiled with -mlongcall
|
||||
# time server (must be set before any drivers are configured)
|
||||
putenv("EPICS_TS_NTP_INET=129.129.190.1")
|
||||
|
||||
# Release memory above 32 MB
|
||||
# Code loaded after this must be compiled with -mlongcall
|
||||
EXTENDED_MEMORY=sysPhysMemTop()-sysMemTop()
|
||||
|
||||
#Load EPICS version dependent script
|
||||
|
||||
Reference in New Issue
Block a user