Skip to contentSkip to conversation

- allow python tools build to be optional

PATCH New Ben Thomas 1 participant 1 message Mar 6, 2007

lore
Share & tools
lore

Ben Thomas

author
#0 lore raw

PATCH 1/1 - allow python tools build to be optional

This patch adds the python tools to the potential set of selectable items within a tools build. The default remains to build the tools, and the patch simply allows the specification of PYTHON_TOOLS=n to omit building them.

Signature · 5 lines
------------------------------------------------------------------------
Ben Thomas                                         Virtual Iron Software
[email protected]                            Tower 1, Floor 2
978-849-1214                                       900 Chelmsford Street
                                                   Lowell, MA 01851

Several of the components of tools are optional, allow the python tools to be optional as well. The default, however, remains to include them.

Config.mk +1 -0
diff -r 277d4a0d0cdf Config.mk
@@ -77,5 +77,6 @@ VTPM_TOOLS ?= n
 VTPM_TOOLS ?= n
 LIBXENAPI_BINDINGS ?= n
 XENFB_TOOLS ?= n
+PYTHON_TOOLS ?= y
 
 -include $(XEN_ROOT)/.config
tools/Makefile +3 -3
diff -r 277d4a0d0cdf tools/Makefile
@@ -24,9 +24,9 @@ SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
 
 # These don't cross-compile
 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
-SUBDIRS-y += python
-SUBDIRS-y += pygrub
-SUBDIRS-y += ptsname
+SUBDIRS-$(PYTHON_TOOLS) += python
+SUBDIRS-$(PYTHON_TOOLS) += pygrub
+SUBDIRS-$(PYTHON_TOOLS) += ptsname
 endif
 
 .PHONY: all

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel