Use SMF for xend configuration
PATCH 1/1 Use SMF for xend configuration
# HG changeset patch
# User [email protected]
# Date 1168012582 28800
# Node ID f13eb28a48af6959452a546574a4cb520e0eab5f
# Parent 1ca5153952db953ca99fa28c2a09aa24d31e439a
Allow xend configuration via Solaris SMF as well as the config file.
Signed-off-by John Levon <[email protected]>
tools/python/setup.py +12 -1
@@ -30,12 +30,23 @@ xs = Extension("xs", libraries = libraries, sources = [ "xen/lowlevel/xs/xs.c" ]) +scf = Extension("scf", + extra_compile_args = extra_compile_args, + include_dirs = include_dirs + [ "xen/lowlevel/scf" ], + library_dirs = library_dirs, + libraries = libraries, + sources = [ "xen/lowlevel/scf/scf.c" ]) + acm = Extension("acm", extra_compile_args = extra_compile_args, include_dirs = include_dirs + [ "xen/lowlevel/acm" ], library_dirs = library_dirs, libraries = libraries, sources = [ "xen/lowlevel/acm/acm.c" ]) + +modules = [ xc, xs, acm ] +if os.uname()[0] == 'SunOS': + modules.append(scf) setup(name = 'xen', version = '3.0',
@@ -56,7 +67,7 @@ setup(name = 'xen', 'xen.xm.tests' ], ext_package = "xen.lowlevel", - ext_modules = [ xc, xs, acm ] + ext_modules = modules ) os.chdir('logging')
tools/python/xen/lowlevel/scf/scf.c new file +156 -0
156 lines not on this page · raw message
tools/python/xen/xend/XendOptions.py +185 -140
386 lines not on this page · raw message