Set target architecture in the IOC environment
Bug #1553304 reported by
Ralph Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
To simplify generation and deployment of IOC applications (e.g. examples) that work for multiple target architectures, it would be helpful if the IOC binary set its target architecture into an environment variable (preferably T_A?)
In that case, startup scripts (and their include files) could contain architecture dependent parts and paths in a generic way.
Related branches
lp:~epics-core/epics-base/ioc-arch
- mdavidsaver: Approve
-
Diff: 324 lines (+90/-33)9 files modifiedconfigure/RULES.ioc (+6/-2)
src/ioc/misc/iocshRegisterCommon.c (+21/-0)
src/libCom/env/RULES (+4/-2)
src/libCom/env/bldEnvData.pl (+43/-20)
src/libCom/env/envDefs.h (+4/-1)
src/libCom/misc/makeEpicsVersion.pl (+9/-1)
src/template/base/top/exampleBoot/ioc/Makefile@Common (+0/-1)
src/template/base/top/iocBoot/ioc/Makefile@Common (+0/-1)
src/tools/convertRelease.pl (+3/-5)
summary: |
- Set $(T_A) in the IOC environment + Set target architecture in the IOC environment |
Changed in epics-base: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
Seems obvious when you say it. Should be straight forward exercise with expandVars.pl. I'd start by adding a libCom function which returns a the target name string (and maybe some others as well). I think an environment variable should only be set for IOCs, so some static ctor in src/ioc/.