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:
zimoch
2012-01-19 10:08:04 +00:00
parent 4ae23b25f1
commit 11157c02a6

View File

@@ -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