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  <20112012  2013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: Generating loadable modules for Cexp
From: "Ernest L. Williams Jr." <ernesto@slac.stanford.edu>
To: Ralph Lange <Ralph.Lange@gmx.de>
Cc: EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Wed, 04 May 2011 10:51:23 -0700
Ralph Lange wrote:
Hi,

Does anyone have experiences/examples of adding support to the EPICS build system for generating Cexp [1] loadable modules (instead of binaries) for RTEMS and other target archs that can use Cexp?

We would like to add that option - preferably with an easy statement in the Makefile that creates the module in addition or instead of the completely linked binary - and would like to make new mistakes instead of the old ones....

All hints, warnings, and rule snippets welcome!
~Ralph

[1] http://www.slac.stanford.edu/~strauman/rtems/cexp/

Here's is what I did for Eric Norum's "RTEMS Spy Utility":
Works great. :)

[ernesto@lcls-dev2 rtemsUtilsSup]$ more Makefile
TOP=..
include $(TOP)/configure/CONFIG
#=======================================

# =============================================
# Build as a static library for an linking
# in with an external IOC application:
# ============================================
LIBRARY_IOC_RTEMS += rtemsutils

# Library Source files
rtemsutils_SRCS += spy.cpp

# Link with the asyn and base libraries
rtemsutils_LIBS += $(EPICS_BASE_IOC_LIBS)

# Install .dbd and .db files
DBD += spy.dbd
# ===========================================


# ==================================================
# Let's build and OBJ file for loading dynamically
# =================================================
PROD_IOC_RTEMS += rtemsUtilsSup

# rtemsUtilsSup.dbd will be created and installed
rtemsUtilsSup_DBD += spy.dbd
DBD += rtemsUtilsSup.dbd

# rtemsUtilsSup_registerRecordDeviceDriver.cpp derives from
# rtemsUtilsSup.dbd
rtemsUtilsSup_SRCS += rtemsUtilsSup_registerRecordDeviceDriver.cpp

# Compile in the RTEMS Spy utility based on the
# RTEMS Capture Engine
rtemsUtilsSup_SRCS += spy.cpp

# Finally link to the rtemsCom
rtemsUtilsSup_LIBS += rtemsCom

#=======================================
include $(TOP)/configure/RULES

References:
Generating loadable modules for Cexp Ralph Lange

Navigate by Date:
Prev: Re: Generating loadable modules for Cexp Michael Davidsaver
Next: Re: EPICS and Octave Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: Generating loadable modules for Cexp Michael Davidsaver
Next: CMLOG Execution and configuration problem Ritesh Sugandhi
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·