Remove ARCH from cdCommands and envPaths files

Set it in iocshRegisterCommon() instead.
Remove ARCH from iocBoot/ioc/Makefile@Common templates.
This commit is contained in:
Andrew Johnson
2016-04-28 18:50:41 -05:00
parent 396ff3c484
commit 230603f4ac
5 changed files with 13 additions and 7 deletions
+6
View File
@@ -7,6 +7,7 @@
* in file LICENSE that is included with this distribution.
\*************************************************************************/
#include "envDefs.h"
#include "iocsh.h"
#include "libComRegister.h"
@@ -24,6 +25,11 @@
void iocshRegisterCommon(void)
{
iocshPpdbbase = &pdbbase;
const char *targetArch = envGetConfigParamPtr(&EPICS_TARGET_ARCH);
if (targetArch) {
epicsEnvSet("ARCH", targetArch);
}
dbStaticIocRegister();
registryIocRegister();