EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Installing extra CONFIG_SITE file
From: Hinko Kocevar <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 21 Aug 2018 11:43:18 +0000
Hi Andrew,

On 2018-08-21 01:16:05+02:00 [email protected] wrote:
Hi Hinko,

On 08/20/2018 12:06 PM, Hinko Kocevar wrote:
&amp;gt; say I want to install an extra CONFIG file from source configure
&amp;gt; folder to INSTALL_LOCATION/.
&amp;gt; 
&amp;gt; Should I use CFG (INSTALL_LOCATION/cfg) or CONFIGS
&amp;gt; (INSTALL_LOCATION/configure) target in Makefile?
&amp;gt; 
&amp;gt; I would like to include this extra CONFIG in all the dependent
&amp;gt; modules that need this one, in their CONFIG_SITE.

If you want all dependent modules (i.e. other modules that point to this
module in their configure/RELEASE files) to include your file at
build-time, it needs to be in your INSTALL_LOCATION/cfg directory and
have a name starting with "CONFIG" or "RULES" depending on when you want
it to be included by the build system.

Exactly what I need.
Silly question: I still need to manually include the CONFIG file I installed in the dependent modules CONFIG_SITE, right? As far I see there is not automatism here for such custom files like one can find for CONFIG, CONFIG_SITE and similar.
 
To achieve this, add the filename to the CFG variable in the Makefile in
the directory where the file is found, and it will be installed for you.

This works as advertised.

Thank you,
Hinko

 

If you want an example, in EPICS 7 the modules/libcom/configure
directory contains these files:

&amp;gt; CONFIG                CONFIG_LIBCOM_VERSION  Makefile  RULES       RULES_TOP
&amp;gt; CONFIG_LIBCOM_MODULE  CONFIG_SITE            RELEASE   RULES_DIRS

The Makefile looks like this:

&amp;gt; #*************************************************************************
&amp;gt; # EPICS BASE is distributed subject to a Software License Agreement found
&amp;gt; # in file LICENSE that is included with this distribution.
&amp;gt; #*************************************************************************
&amp;gt; TOP = ..
&amp;gt; 
&amp;gt; include $(TOP)/configure/CONFIG
&amp;gt; 
&amp;gt; TARGETS = $(CONFIG_TARGETS)
&amp;gt; CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
&amp;gt; 
&amp;gt; CFG += CONFIG_LIBCOM_MODULE
&amp;gt; CFG += CONFIG_LIBCOM_VERSION
&amp;gt; 
&amp;gt; include $(TOP)/configure/RULES

The two CONFIG_LIBCOM_* files contain various settings that are needed
later in the build. They get installed into $(INSTALL_LOCATION)/cfg and
are read in as part of the build process for all subsequent parts of the
build. The other EPICS 7 modules have similar files.

These rules for the cfg have been in place since Base-3.14.something,
although the order of inclusions did change in Base-3.15.2 once someone
started to make use of them and suggested improvements.

HTH,

- Andrew

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

Replies:
Re: Installing extra CONFIG_SITE file Andrew Johnson
References:
Installing extra CONFIG_SITE file Hinko Kocevar
Re: Installing extra CONFIG_SITE file Andrew Johnson

Navigate by Date:
Prev: Re: EDM X/Y Plot segfaults Bruce Hill
Next: Re: a simple question about pyepics Ricardo Cardenes via Tech-talk
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Installing extra CONFIG_SITE file Andrew Johnson
Next: Re: Installing extra CONFIG_SITE file Andrew Johnson
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 21 Aug 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·