Received: from eggs.gnu.org ([2001:4830:134:3::10]:34939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtqwX-0003ct-Ai for qemu-devel@nongnu.org; Sun, 17 May 2015 01:16:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtqwS-000619-Gr for qemu-devel@nongnu.org; Sun, 17 May 2015 01:16:53 -0400 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]:33459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtqwS-00060m-9m for qemu-devel@nongnu.org; Sun, 17 May 2015 01:16:48 -0400 Received: by pablf10 with SMTP id lf10so23697991pab.0 for ; Sat, 16 May 2015 22:16:46 -0700 (PDT) From: Peter Crosthwaite Date: Sat, 16 May 2015 22:16:13 -0700 Message-Id: <1431839773-3543-1-git-send-email-crosthwaite.peter@gmail.com> Subject: [Qemu-devel] [PATCH] device-tree: Make a common-obj List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: afaerber@suse.de, agraf@xilinx.com, Peter Crosthwaite 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. Signed-off-by: Peter Crosthwaite --- Makefile.objs | 2 ++ Makefile.target | 1 - device_tree.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) 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) += qemu-seccomp.o common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y) +common-obj-$(CONFIG_FDT) += device_tree.o + ###################################################################### # qapi 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 += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o numa.o obj-y += qtest.o bootdevice.o obj-y += hw/ -obj-$(CONFIG_FDT) += device_tree.o obj-$(CONFIG_KVM) += kvm-all.o obj-y += memory.o savevm.o cputlb.o obj-y += 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 -#include "config.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "sysemu/device_tree.h" -- 1.9.1