From 4a529bcbb9a867757f3bfbfd5be53712358f0c77 Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Mon, 4 May 2026 13:28:27 +0200 Subject: [PATCH] adding install makefile --- .gitea/workflow/action.yaml | 0 Makefile | 8 +++++--- command.proto => db/command.proto | 0 db/feedback_records.db | 2 +- db/socket_record.db | 2 +- {substitutions => db}/template4.substitutions | 0 {substitutions => db}/template8.substitutions | 0 st.cmd | 5 ++++- 8 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .gitea/workflow/action.yaml rename command.proto => db/command.proto (100%) rename {substitutions => db}/template4.substitutions (100%) rename {substitutions => db}/template8.substitutions (100%) diff --git a/.gitea/workflow/action.yaml b/.gitea/workflow/action.yaml new file mode 100644 index 0000000..e69de29 diff --git a/Makefile b/Makefile index 81c1d4e..8207ed0 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/command.proto b/db/command.proto similarity index 100% rename from command.proto rename to db/command.proto diff --git a/db/feedback_records.db b/db/feedback_records.db index 1743290..38759f1 100644 --- a/db/feedback_records.db +++ b/db/feedback_records.db @@ -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") } diff --git a/db/socket_record.db b/db/socket_record.db index 4d04c31..abf0785 100644 --- a/db/socket_record.db +++ b/db/socket_record.db @@ -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)") { diff --git a/substitutions/template4.substitutions b/db/template4.substitutions similarity index 100% rename from substitutions/template4.substitutions rename to db/template4.substitutions diff --git a/substitutions/template8.substitutions b/db/template8.substitutions similarity index 100% rename from substitutions/template8.substitutions rename to db/template8.substitutions diff --git a/st.cmd b/st.cmd index 8de47f3..eca81d9 100644 --- a/st.cmd +++ b/st.cmd @@ -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()