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  <20142015  2016  2017  2018  2019  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: envPaths variables
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Mon, 8 Dec 2014 14:43:08 -0600
Hi David,

On 12/08/2014 02:17 PM, Dudley, David wrote:
> Is there a defined way to add variables that get put into the generated
> envPaths file in the IOC?

The envPaths file gets generated from the contents of the configure/
RELEASE file(s) in the IOC's top area. The file(s) are read in and each
definition found (except for RULES and TEMPLATE_TOP) is expanded out.
Only variables pointing to directories that exist at build-time will be
included in the output file though. The actual values generated can be
adjusted if the IOC has a different view of the file-system by setting
IOCS_APPL_TOP in the configure/CONFIG_SITE file.

> Basically, I want to have the build system include a directive to set an
> environment variable to a value.

You can get envPaths to set one that points to an existing directory as
I described above, but for anything else you'll have to modify your
iocBoot/iocXxx/Makefile to generate another file that the st.cmd file
can read in. If this is a soft IOC you could also set the environment
variable before running the IOC's binary.

HTH,

- Andrew
-- 
People everywhere confuse what they read in newspapers with news.
-- A. J. Liebling

References:
envPaths variables Dudley, David

Navigate by Date:
Prev: envPaths variables Dudley, David
Next: mca R7-6 available Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: envPaths variables Dudley, David
Next: mca R7-6 available Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·