From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ6mk-0006dd-OQ for qemu-devel@nongnu.org; Tue, 23 Jun 2009 10:15:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ6mg-0006Y2-Nh for qemu-devel@nongnu.org; Tue, 23 Jun 2009 10:15:42 -0400 Received: from [199.232.76.173] (port=50521 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ6mg-0006Xe-Cd for qemu-devel@nongnu.org; Tue, 23 Jun 2009 10:15:38 -0400 Received: from mx2.redhat.com ([66.187.237.31]:41993) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJ6mf-0003hP-Ue for qemu-devel@nongnu.org; Tue, 23 Jun 2009 10:15:38 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5NEFaCX030531 for ; Tue, 23 Jun 2009 10:15:36 -0400 From: quintela@redhat.com Date: Tue, 23 Jun 2009 16:13:58 +0200 Message-Id: Subject: [Qemu-devel] [RFC PATCH 00/15] Be able to compile out not needed options List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Juan Quintela From: Juan Quintela Hi this series of patches: a- move object files only used by one target to that target Makefile.target b- add flags to disable parts: --disable-{bluez,usb,vwmare,virtio,scsi} defaults is leave it enabled. You need to add the --disable-* flag to get any change c- disable the use of --smb What is the intent: we want to be able to not compile-in things that we are not interested in (they are experimental/not needed for our target/...). Is this the right approach? Should I do something different? For the next series, I am also interested on enable/disabling bits of a subsysem: being able to support usb-hid but not usb-{host,net,msnd}. I already have patches to disable that, just waiting to hear what is the preffered way to get that functionality. Known problems: - qemu-*.hx files don't run over cpp and then we are not able to remove from the help page the options that we don't support. - drive_hot_add without scsi support do nothing. Any comments? Later, Juan. Juan Quintela (15): Only compile-in selected audio drivers Make --disable-bluez to really remove bluetooth support rename usb variable to usb host protect with CONFIG_BRLAPI Make --disable-usb to really remove usb support Add --disable-smb to remove smb directories support add option to remove scsi support add option to disable wmware devices ssi bus is only used on the arm platform move i2c devices only used in arm devices to arm target sd flash is only used in arm devices move m48t59 and ecc driver to ppc and sparc, that are the targets that use it nand and ecc are only used on arm and cris argets enable isa_mmio only in the platforms that use it: ppc, arm, mips and sparc add option to disable virtio drivers Makefile | 23 ++++++++++----- Makefile.hw | 8 ++-- Makefile.target | 40 ++++++++++++++++++++------ configure | 81 +++++++++++++++++++++++++++++++++++++++++++--------- hw/baum.h | 2 + hw/nseries.c | 2 + hw/pc.c | 8 +++++ hw/pci-hotplug.c | 9 +++++- hw/pci.h | 2 + hw/pckbd.c | 4 +- hw/ppc_newworld.c | 2 + hw/ppc_oldworld.c | 3 +- hw/ppc_prep.c | 2 + hw/pxa2xx.c | 4 ++ hw/realview.c | 2 + hw/usb.h | 3 ++ hw/versatilepb.c | 2 + monitor.c | 2 + net.c | 2 + qemu-monitor.hx | 4 ++ qemu-options.hx | 4 ++- sysemu.h | 4 ++ vl.c | 30 +++++++++++++++---- 23 files changed, 197 insertions(+), 46 deletions(-)