I'm trying to add Intel OS X support to EPICS. The EpicsHostArch shell script changes are easy: Index: EpicsHostArch =================================================================== RCS file: /net/phoebus/epicsmgr/cvsroot/epics/base/startup/EpicsHostArch,v retrieving revision 1.6.4.2 diff -u -r1.6.4.2 EpicsHostArch --- EpicsHostArch 1 Nov 2005 17:26:50 -0000 1.6.4.2 +++ EpicsHostArch 5 Apr 2006 01:24:01 -0000 @@ -39,6 +39,7 @@ cpu=`uname -m` case "$cpu" in "Power Macintosh") cpu=ppc ;; + "i386") cpu=x86 ;; esac echo ${os}-${cpu}${suffix} ;;
I've hit a roadblock with EpicsHostArch.pl, though. The script uses $Config{'archname'} to get the host information, but on both Power PC and Intel OS X machines this gives: darwin-thread-multi-2level Any perl experts out there that can suggest a way to determine the CPU architecture?
-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793
|