Received: from eggs.gnu.org ([2001:4830:134:3::10]:40565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwzGE-00025U-EF for qemu-devel@nongnu.org; Mon, 25 May 2015 16:46:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwzGB-0001CE-8R for qemu-devel@nongnu.org; Mon, 25 May 2015 16:46:10 -0400 Message-ID: <55638A0C.1000902@suse.de> Date: Mon, 25 May 2015 22:46:04 +0200 From: Alexander Graf MIME-Version: 1.0 References: <1432498814-1469-1-git-send-email-crosthwaite.peter@gmail.com> In-Reply-To: <1432498814-1469-1-git-send-email-crosthwaite.peter@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] device-tree: Make a common-obj List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, afaerber@suse.de, Peter Crosthwaite On 24.05.15 22:20, Peter Crosthwaite wrote: > There is no reason for device tree API to be built per-target. > common-obj it. There is an extraneous inclusion of config.h that > needs to be removed. >=20 > Cc: Alexander Graf > Reviewed-by: Andreas F=C3=A4rber > Signed-off-by: Peter Crosthwaite Doesn't this mean that we're now linking against libfdt on qemu-system-x86_64? Alex > --- > Makefile.objs | 2 ++ > Makefile.target | 1 - > device_tree.c | 1 - > 3 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/Makefile.objs b/Makefile.objs > index 28999d3..4881d2c 100644 > --- a/Makefile.objs > +++ b/Makefile.objs > @@ -76,6 +76,8 @@ common-obj-$(CONFIG_SECCOMP) +=3D qemu-seccomp.o > =20 > common-obj-$(CONFIG_SMARTCARD_NSS) +=3D $(libcacard-y) > =20 > +common-obj-$(CONFIG_FDT) +=3D device_tree.o > + > ###################################################################### > # qapi > =20 > diff --git a/Makefile.target b/Makefile.target > index 1083377..5100013 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -129,7 +129,6 @@ ifdef CONFIG_SOFTMMU > obj-y +=3D arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o n= uma.o > obj-y +=3D qtest.o bootdevice.o > obj-y +=3D hw/ > -obj-$(CONFIG_FDT) +=3D device_tree.o > obj-$(CONFIG_KVM) +=3D kvm-all.o > obj-y +=3D memory.o savevm.o cputlb.o > obj-y +=3D memory_mapping.o > diff --git a/device_tree.c b/device_tree.c > index 3d119ef..d2de580 100644 > --- a/device_tree.c > +++ b/device_tree.c > @@ -18,7 +18,6 @@ > #include > #include > =20 > -#include "config.h" > #include "qemu-common.h" > #include "qemu/error-report.h" > #include "sysemu/device_tree.h" >=20