diff --git a/iocBoot/templates/Makefile.ioc b/iocBoot/templates/Makefile.ioc index 8cb4928..bf234a7 100644 --- a/iocBoot/templates/Makefile.ioc +++ b/iocBoot/templates/Makefile.ioc @@ -11,4 +11,8 @@ PLC := {{ plc_name }} PYTMC_OPTS := PREFIX := PLC:$(PLC) +# With two $$, as in $$(IOCNAME) below, this will be expanded in the +# environment of st.cmd: +DB_PARAMETERS := 'PREFIX=$(PREFIX):,IOCNAME=$$(IOCNAME)' + include $(IOC_TOP)/iocBoot/templates/Makefile.base