ia64/xen-unstable

view tools/pygrub/setup.py @ 9488:0a6f5527ca4b

[IA64] set itv handoff as masked and enable reading irr[0-3]

Set initial vcpu itv handoff state to mask the timer vector.
This seems to match hardware and makes logical sense from a
spurious interrupt perspective. Enable vcpu_get_irr[0-3]
functions as they seem to work and have the proper backing.
This enables the check_sal_cache_flush() in arch/ia64/kernel.sal.c
to work unmodified, allowing us to remove the Xen changes from
the file (and thus the file from the sparse tree).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild.aw
date Tue Apr 04 09:39:45 2006 -0600 (2006-04-04)
parents 06d08564b982
children 4c2d9a2ef1b7
line source
1 from distutils.core import setup, Extension
2 from distutils.ccompiler import new_compiler
3 import os
4 import sys
6 extra_compile_args = [ "-fno-strict-aliasing", "-Wall", "-Werror" ]
8 fsys_mods = []
9 fsys_pkgs = []
11 if os.path.exists("/usr/include/ext2fs/ext2_fs.h"):
12 ext2defines = []
13 cc = new_compiler()
14 cc.add_library("ext2fs")
15 if hasattr(cc, "has_function") and cc.has_function("ext2fs_open2"):
16 ext2defines.append( ("HAVE_EXT2FS_OPEN2", None) )
17 else:
18 sys.stderr.write("WARNING: older version of e2fsprogs installed, not building full\n")
19 sys.stderr.write(" disk support for ext2.\n")
21 ext2 = Extension("grub.fsys.ext2._pyext2",
22 extra_compile_args = extra_compile_args,
23 libraries = ["ext2fs"],
24 define_macros = ext2defines,
25 sources = ["src/fsys/ext2/ext2module.c"])
26 fsys_mods.append(ext2)
27 fsys_pkgs.append("grub.fsys.ext2")
29 if os.path.exists("/usr/include/reiserfs/reiserfs.h"):
30 reiser = Extension("grub.fsys.reiser._pyreiser",
31 extra_compile_args = extra_compile_args,
32 libraries = ["reiserfs"],
33 sources = ["src/fsys/reiser/reisermodule.c"])
34 fsys_mods.append(reiser)
35 fsys_pkgs.append("grub.fsys.reiser")
37 pkgs = ['grub', 'grub.fsys']
38 pkgs.extend(fsys_pkgs)
39 setup(name='pygrub',
40 version='0.3',
41 description='Boot loader that looks a lot like grub for Xen',
42 author='Jeremy Katz',
43 author_email='katzj@redhat.com',
44 license='GPL',
45 package_dir={'grub': 'src'},
46 scripts = ["src/pygrub"],
47 packages=pkgs,
48 ext_modules = fsys_mods
49 )