Received: from eggs.gnu.org ([208.118.235.92]:47493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3tbT-0003eY-1Z for qemu-devel@nongnu.org; Tue, 21 Aug 2012 14:55:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3tbR-0002t3-TO for qemu-devel@nongnu.org; Tue, 21 Aug 2012 14:55:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3tbR-0002ph-K9 for qemu-devel@nongnu.org; Tue, 21 Aug 2012 14:55:01 -0400 Date: Tue, 21 Aug 2012 15:55:53 -0300 From: Eduardo Habkost Message-ID: <20120821185553.GD2886@otherpad.lan.raisama.net> References: <1345563782-11224-1-git-send-email-ehabkost@redhat.com> <1345563782-11224-8-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [RFC 7/8] include core qdev code into *-user, too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: jan.kiszka@siemens.com, mjt@tls.msk.ru, qemu-devel@nongnu.org, armbru@redhat.com, blauwirbel@gmail.com, kraxel@redhat.com, xen-devel@lists.xensource.com, i.mitsyanko@samsung.com, mdroth@linux.vnet.ibm.com, avi@redhat.com, anthony.perard@citrix.com, lersek@redhat.com, stefanha@linux.vnet.ibm.com, stefano.stabellini@eu.citrix.com, sw@weilnetz.de, imammedo@redhat.com, lcapitulino@redhat.com, rth@twiddle.net, kwolf@redhat.com, aliguori@us.ibm.com, mtosatti@redhat.com, pbonzini@redhat.com, afaerber@suse.de On Tue, Aug 21, 2012 at 05:59:22PM +0100, Peter Maydell wrote: > On 21 August 2012 16:43, Eduardo Habkost wrote: > > The code depends on some functions from qemu-option.o, so add > > qemu-option.o to qom-obj-y to make sure it's included. > > > > Signed-off-by: Eduardo Habkost > > --- > > Makefile.objs | 1 + > > hw/Makefile.objs | 2 +- > > qom/Makefile.objs | 2 +- > > hw/qdev-properties.c => qom/device-properties.c | 0 > > hw/qdev.c => qom/device.c | 0 > > 5 files changed, 3 insertions(+), 2 deletions(-) > > rename hw/qdev-properties.c => qom/device-properties.c (100%) > > rename hw/qdev.c => qom/device.c (100%) > > > > diff --git a/Makefile.objs b/Makefile.objs > > index 4412757..2cf91c2 100644 > > --- a/Makefile.objs > > +++ b/Makefile.objs > > @@ -14,6 +14,7 @@ universal-obj-y += $(qobject-obj-y) > > ####################################################################### > > # QOM > > qom-obj-y = qom/ > > +qom-obj-y += qemu-option.o > > qemu-option.c isn't actually QOM related code... True, but it's a dependency of the QOM DeviceState code. I don't know if qom-obj-y is for "the QOM code" or "QOM code + dependencies". I simply added it to qom-obj-y to avoid having to repeat myself (otherwise I would need to add qemu-option.o to both common-obj-y and user-obj-y). -- Eduardo