adding install makefile
This commit is contained in:
@@ -8,6 +8,8 @@ BUILDCLASSES=Linux
|
||||
EPICS_VERSIONS=7.0.7
|
||||
ARCH_FILTER=RHEL%
|
||||
|
||||
stream_VERSION=2.8.26
|
||||
|
||||
# additional module dependencies
|
||||
#REQUIRED+=asyn
|
||||
#REQUIRED+=calc
|
||||
@@ -16,8 +18,8 @@ REQUIRED+=stream
|
||||
# DB files to include in the release
|
||||
TEMPLATES += db/feedback_records.db
|
||||
TEMPLATES += db/socket_record.db
|
||||
TEMPLATES += command.proto
|
||||
TEMPLATES += db/command.proto
|
||||
|
||||
TEMPLATES += substitutions/template4.substitutions
|
||||
TEMPLATES += substitutions/template8.substitutions
|
||||
TEMPLATES += db/template4.substitutions
|
||||
TEMPLATES += db/template8.substitutions
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ record(scalcout, "$(DEVICE)_outlet_getter") {
|
||||
field(DTYP, "stream")
|
||||
field(SCAN, "1 second")
|
||||
field(CALC, "0")
|
||||
field(OUT, "@command.proto get$(OUTLET_NUMBER)() $(PORT)")
|
||||
field(OUT, "@$(PROTO) get$(OUTLET_NUMBER)() $(PORT)")
|
||||
field(FLNK, "$(DEVICE)_get_outlet_0")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ record(stringout, "$(DEVICE)_set_$(PARAMETER_NAME)_$(PARAMETER_ID)") {
|
||||
field(VAL, "Off")
|
||||
field(PINI, "YES")
|
||||
|
||||
field(OUT, "@command.proto set($(PARAMETER_ID)) $(PORT)")
|
||||
field(OUT, "@$(PROTO) set($(PARAMETER_ID)) $(PORT)")
|
||||
}
|
||||
|
||||
record(stringin, "$(DEVICE)_get_$(PARAMETER_NAME)_$(PARAMETER_ID)") {
|
||||
|
||||
@@ -2,10 +2,13 @@ require stream
|
||||
|
||||
epicsEnvSet("ASYN_PORT","myDriverPort")
|
||||
|
||||
|
||||
epicsEnvSet("PROTO", "$(ePowerSwitch_DB)command.proto")
|
||||
|
||||
# I use HTTP to use TCP and disconnect after, but no disconnection is done, so I disconnect manually.
|
||||
drvAsynIPPortConfigure("$(ASYN_PORT)","127.0.0.1:55555 http", 0, 0, 0)
|
||||
|
||||
dbLoadTemplate("template$(EPOWERSWITCH_SOCKET_NUMBER).substitutions", "PORT=$(ASYN_PORT)")
|
||||
dbLoadTemplate("db/template$(EPOWERSWITCH_SOCKET_NUMBER).substitutions", "PORT=$(ASYN_PORT)")
|
||||
|
||||
iocInit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user