mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools: make building xend configurable.
xend has been deprecated for 2 releases now. Lets make it possible to not even build it. For now I'm leaving the default of on but I would like to change that before the 4.4 release. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Matt Wilson <msw@amazon.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
9af42f3598
commit
03145f0fe4
8 files changed
+84
-30
No files matched your search
+26
-9
@@ -1,6 +1,6 @@
|
||||
|
||||
from distutils.core import setup, Extension
|
||||
import os
|
||||
import os, sys
|
||||
|
||||
XEN_ROOT = "../.."
|
||||
|
||||
@@ -95,11 +95,19 @@ if plat == 'SunOS':
|
||||
if plat == 'Linux':
|
||||
modules.extend([ checkpoint, netlink ])
|
||||
|
||||
setup(name = 'xen',
|
||||
version = '3.0',
|
||||
description = 'Xen',
|
||||
packages = ['xen',
|
||||
'xen.lowlevel',
|
||||
enable_xend = True
|
||||
new_argv = []
|
||||
for arg in sys.argv:
|
||||
if arg == "--xend=y":
|
||||
enable_xend = True
|
||||
elif arg == "--xend=n":
|
||||
enable_xend = False
|
||||
else:
|
||||
new_argv.append(arg)
|
||||
sys.argv = new_argv
|
||||
|
||||
if enable_xend:
|
||||
xend_packages = [
|
||||
'xen.util',
|
||||
'xen.util.xsm',
|
||||
'xen.util.xsm.dummy',
|
||||
@@ -110,14 +118,23 @@ setup(name = 'xen',
|
||||
'xen.xend.xenstore',
|
||||
'xen.xm',
|
||||
'xen.web',
|
||||
'xen.sv',
|
||||
'xen.xsview',
|
||||
'xen.remus',
|
||||
'xen.xend.tests',
|
||||
'xen.xend.server.tests',
|
||||
'xen.xend.xenstore.tests',
|
||||
'xen.xm.tests'
|
||||
],
|
||||
]
|
||||
else:
|
||||
xend_packages = []
|
||||
|
||||
setup(name = 'xen',
|
||||
version = '3.0',
|
||||
description = 'Xen',
|
||||
packages = ['xen',
|
||||
'xen.lowlevel',
|
||||
'xen.sv',
|
||||
'xen.xsview',
|
||||
] + xend_packages,
|
||||
ext_package = "xen.lowlevel",
|
||||
ext_modules = modules
|
||||
)
|
||||
|
||||