tools/config: Allow building of components to be controlled from .config
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Aug 2012 11:46:51 +0000 (12:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Aug 2012 11:46:51 +0000 (12:46 +0100)
For build systems which build certain Xen components separately, allow certain
components to be conditionally built based on .config, rather than always
building them.

This patch allows qemu and blktap to be configured in this manner.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
config/x86_32.mk
config/x86_64.mk
tools/Rules.mk

index 1f5cd6097dae976066914d4f0d26344388e9f7a1..df52bd6d3e9c9c1d6c68e7d1e4ffcf56ed2b4b9d 100644 (file)
@@ -5,7 +5,7 @@ CONFIG_X86_$(XEN_OS) := y
 CONFIG_HVM := y
 CONFIG_MIGRATE := y
 CONFIG_XCUTILS := y
-CONFIG_IOEMU := y
+CONFIG_IOEMU ?= y
 
 CFLAGS += -m32 -march=i686
 
index 7bead5c455a138da2c838020b0d3c1f7d24b97df..4ec6cc196be7b6ceda0d4cff211d9295ff6ca8e0 100644 (file)
@@ -6,7 +6,7 @@ CONFIG_COMPAT := y
 CONFIG_HVM := y
 CONFIG_MIGRATE := y
 CONFIG_XCUTILS := y
-CONFIG_IOEMU := y
+CONFIG_IOEMU ?= y
 
 CFLAGS += -m64
 
index 2dd8ed3913dadd46280627b472a1ad5821c22640..f4e84c1b7760a3bb29d2803df36ca0bfd5d2d4a7 100644 (file)
@@ -40,9 +40,9 @@ LDLIBS_libxenvchan = $(SHLIB_libxenctrl) $(SHLIB_libxenstore) -L$(XEN_LIBVCHAN)
 SHLIB_libxenvchan  = -Wl,-rpath-link=$(XEN_LIBVCHAN)
 
 ifeq ($(CONFIG_Linux),y)
-LIBXL_BLKTAP = y
+LIBXL_BLKTAP ?= y
 else
-LIBXL_BLKTAP = n
+LIBXL_BLKTAP ?= n
 endif
 
 ifeq ($(LIBXL_BLKTAP),y)