Experimental Physics and
| |||||||||||||||
|
We need to create a loadable object for R3.14 whose entire contents is included in a vxworks application. After reviewing the base Makefiles it appears there are some undocumented features that allow this to be done for compatibility with R3.13. I just wanted to check with the experts to determine if there is a more appropriate solution. Here is the current solution. There are two directories in my R3.14 TOP. d0App builds all the libraries and loadable objects and mergeApp that combines everything into an application. d0App -> sesSrc -> Makefile contains: OBJLIB_vxWorks = ses OBJLIB_SRCS += SE_Message.cc OBJLIB_SRCS += se_msg_example.cc OBJLIB_SRCS += se_msg_t.cc OBJLIB_SRCS += SEClient.cc OBJLIB_SRCS += sesender_t.cc OBJLIB_SRCS += setask.cc This builds sesLibrary.o and puts it in bin/T_A. mergeApp -> mergeSrc -> Makefile contains: onlutility_DIR += $(ONL_UTILITY_DIR)/lib/$(TARGET_OS)-$(T_A) PROD_IOC_vxWorks = d0Epics # <name>.dbd will be created from <name>Include.dbd DBD += d0Epics.dbd # <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd d0Epics_SRCS += d0Epics_registerRecordDeviceDriver.cpp # The following adds support from base/src/vxWorks #junk_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary d0Epics_OBJS_vxWorks += $(INSTALL_BIN)/sesLibrary d0Epics_LIBS += dev d0Epics_LIBS += dfe d0Epics_LIBS += drv d0Epics_LIBS += itc d0Epics_LIBS += rec d0Epics_LIBS += Symb d0Epics_LIBS += onlutility d0Epics_LIBS += vxStats # Include all the epics libraries. d0Epics_LIBS += $(EPICS_BASE_IOC_LIBS) This builds d0Epics.munch which is loaded on the vxworks IOC. Thanks Geoff
| ||||||||||||||
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |