ia64/xen-unstable

changeset 7354:ffbee4415bf7

Explicitly state which architectures are going to use /usr/lib64, to allow for
the fact that Itanium does not.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Wed Oct 12 12:04:45 2005 +0100 (2005-10-12)
parents 41c970cf82ba
children 26599c5d298d 3dd931842e71
files tools/python/xen/util/auxbin.py
line diff
     1.1 --- a/tools/python/xen/util/auxbin.py	Wed Oct 12 12:03:03 2005 +0100
     1.2 +++ b/tools/python/xen/util/auxbin.py	Wed Oct 12 12:04:45 2005 +0100
     1.3 @@ -19,6 +19,10 @@
     1.4  LIB_BIN_32 = "/usr/lib/xen/bin"
     1.5  LIB_BIN_64 = "/usr/lib64/xen/bin"
     1.6  
     1.7 +## The architectures on which the LIB_BIN_64 directory is used.  This
     1.8 +# deliberately excludes ia64.
     1.9 +LIB_64_ARCHS = [ 'x86_64', 'ppc64', 's390x', 'sparc64']
    1.10 +
    1.11  
    1.12  import os
    1.13  import os.path
    1.14 @@ -38,7 +42,7 @@ def pathTo(exe):
    1.15  
    1.16  def path():
    1.17      machine = os.uname()[4]
    1.18 -    if machine.find('64') != -1 and os.path.exists(LIB_BIN_64):
    1.19 +    if machine in LIB_64_ARCHS and os.path.exists(LIB_BIN_64):
    1.20          return LIB_BIN_64
    1.21      else:
    1.22          return LIB_BIN_32