mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-08 16:07:39 -06:00
xen: Clean up build system
Introduce CONFIG_XEN_BACKEND so that this new config solely controls the target-independent backend build and CONFIG_XEN can focus on per-target building. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
89b9ba661b
commit
6dbd588a41
3 changed files with 6 additions and 13 deletions
|
@ -155,8 +155,8 @@ slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o
|
||||||
common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
|
common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
|
||||||
|
|
||||||
# xen backend driver support
|
# xen backend driver support
|
||||||
common-obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o
|
common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
|
||||||
common-obj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o
|
common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# libuser
|
# libuser
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
GENERATED_HEADERS = config-target.h
|
GENERATED_HEADERS = config-target.h
|
||||||
CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y)
|
CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y)
|
||||||
CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y)
|
CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y)
|
||||||
|
CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y)
|
||||||
|
CONFIG_NO_XEN_MAPCACHE = $(if $(subst n,,$(CONFIG_XEN_MAPCACHE)),n,y)
|
||||||
|
|
||||||
include ../config-host.mak
|
include ../config-host.mak
|
||||||
include config-devices.mak
|
include config-devices.mak
|
||||||
|
@ -204,17 +206,8 @@ QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
|
||||||
QEMU_CFLAGS += $(VNC_JPEG_CFLAGS)
|
QEMU_CFLAGS += $(VNC_JPEG_CFLAGS)
|
||||||
QEMU_CFLAGS += $(VNC_PNG_CFLAGS)
|
QEMU_CFLAGS += $(VNC_PNG_CFLAGS)
|
||||||
|
|
||||||
# xen backend driver support
|
|
||||||
obj-i386-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
|
|
||||||
|
|
||||||
ifeq ($(TARGET_BASE_ARCH), i386)
|
|
||||||
CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y)
|
|
||||||
else
|
|
||||||
CONFIG_NO_XEN = y
|
|
||||||
endif
|
|
||||||
# xen support
|
# xen support
|
||||||
CONFIG_NO_XEN_MAPCACHE = $(if $(subst n,,$(CONFIG_XEN_MAPCACHE)),n,y)
|
obj-$(CONFIG_XEN) += xen-all.o xen_machine_pv.o xen_domainbuild.o
|
||||||
obj-i386-$(CONFIG_XEN) += xen-all.o
|
|
||||||
obj-$(CONFIG_NO_XEN) += xen-stub.o
|
obj-$(CONFIG_NO_XEN) += xen-stub.o
|
||||||
obj-i386-$(CONFIG_XEN_MAPCACHE) += xen-mapcache.o
|
obj-i386-$(CONFIG_XEN_MAPCACHE) += xen-mapcache.o
|
||||||
obj-$(CONFIG_NO_XEN_MAPCACHE) += xen-mapcache-stub.o
|
obj-$(CONFIG_NO_XEN_MAPCACHE) += xen-mapcache-stub.o
|
||||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -2850,7 +2850,7 @@ if test "$bluez" = "yes" ; then
|
||||||
echo "BLUEZ_CFLAGS=$bluez_cflags" >> $config_host_mak
|
echo "BLUEZ_CFLAGS=$bluez_cflags" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
if test "$xen" = "yes" ; then
|
if test "$xen" = "yes" ; then
|
||||||
echo "CONFIG_XEN=y" >> $config_host_mak
|
echo "CONFIG_XEN_BACKEND=y" >> $config_host_mak
|
||||||
echo "CONFIG_XEN_CTRL_INTERFACE_VERSION=$xen_ctrl_version" >> $config_host_mak
|
echo "CONFIG_XEN_CTRL_INTERFACE_VERSION=$xen_ctrl_version" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
if test "$io_thread" = "yes" ; then
|
if test "$io_thread" = "yes" ; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue