Experimental Physics and Industrial Control System
Hi,
in case someone is still interested in this approach, the rule in my previous
email doesn't work anymore with EPICS 3.15.x.
I had to append to database Makefile the following snippet:
FLATDB = /path/to/VisualDCT/flatdb.sh
DBDLIST := $(foreach dbd_dir,$(DBD_SEARCH_DIRS),$(patsubst %,-d %,$(wildcard
$(dbd_dir)/*.dbd)))
%.db$(DEP): %.vdb
@$(RM) $@
$(ECHO) "$<: \\" > $@
%.db$(DEP): ../%.vdb
@$(RM) $@
$(ECHO) "$<: \\" > $@
$(COMMON_DIR)/%.db: %.vdb
$(ECHO) "Generating flat database from $<"
@$(RM) $(notdir $@)
@$(FLATDB) $(DBDLIST) $< $(notdir $@) > /dev/null
@$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.db: ../%.vdb
$(ECHO) "Generating flat database from $<"
@$(RM) $(notdir $@)
@$(FLATDB) $(DBDLIST) $< $(notdir $@) > /dev/null
@$(MV) $(notdir $@) $@
Cheers,
Luca
On Thu, 2016-12-01 at 11:41 +0000, Luca Cavalli wrote:
> Hi all,
>
> some times ago I proposed a patch to VisualDCT maintainers to rework a little
> bit the scripts delivered with the tool.
> The open issue on github is: https://github.com/epics-extensions/VisualDCT/issue
> s/16
>
> As suggested in EPICS training (Creating IOC Databases by Andrew Johnson) I use
> .vdb as file extensionand and manually flat the db before IOC compilation.
> .vdb and .db files are in the same *App/Db folder and the operation is very
> error prone, since clicking on .vdb instead of .db file is quite easy.
>
> In case the VisualDCT patch will be accepted, it would be nice to have the
> following rule defined into RULES.Db.
>
> DBDLIST := $(foreach dbd_dir,$(DBD_SEARCH_DIRS),$(patsubst %,-d %,$(wildcard
> $(dbd_dir)/*.dbd)))
>
> $(COMMON_DIR)/%.db: %.vdb
> @echo "Generating flat database from $<"
> @$(RM) $@
> @$(FLATDB) $(DBDLIST) $< $@ > /dev/null
>
> And the definition of FLATDB in CONFIG_BASE.
>
> Cheers,
>
> Luca
>
________________________________
<< Le informazioni contenute in questo messaggio di posta elettronica e relativi allegati sono riservate e confidenziali e ne è vietata la diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a darcene gentile comunicazione. Quanto precede ai fini del rispetto delle Legge 675/96 e del Decreto Legislativo 30/06/2003 n.196, sulla tutela dei dati personali >>
<< This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your co-operation. Please contact our IT Helpdesk on +3902380481 or email [email protected] if you need assistance >>
- Navigate by Date:
- Prev:
Re: EPICS areadetecto and EPICSV4 bob dalesio
- Next:
Re: EPICS areadetecto and EPICSV4 Jörn Dreyer
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: EPICS areadetecto and EPICSV4 Michael Davidsaver
- Next:
EPICS training information Mohamed Chaouechi
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024