From patchwork Mon Aug 24 11:29:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31939 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 97FD8B7B60 for ; Mon, 24 Aug 2009 22:29:30 +1000 (EST) Received: from localhost ([127.0.0.1]:34277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfYfu-0001pC-Hk for incoming@patchwork.ozlabs.org; Mon, 24 Aug 2009 08:29:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfXnb-0000AV-1D for qemu-devel@nongnu.org; Mon, 24 Aug 2009 07:33:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfXnV-00005T-OJ for qemu-devel@nongnu.org; Mon, 24 Aug 2009 07:33:17 -0400 Received: from [199.232.76.173] (port=54730 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfXnV-00005K-Ad for qemu-devel@nongnu.org; Mon, 24 Aug 2009 07:33:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29525) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfXnU-0003jP-R9 for qemu-devel@nongnu.org; Mon, 24 Aug 2009 07:33:13 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7OBXCD8007964 for ; Mon, 24 Aug 2009 07:33:12 -0400 Received: from localhost.localdomain (vpn2-8-191.ams2.redhat.com [10.36.8.191]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7OBW6Kg013895; Mon, 24 Aug 2009 07:33:11 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 24 Aug 2009 13:29:46 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 15/15] Generate gdbstub-xml.c only when there is anything to generate X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- Makefile.target | 7 ++----- configure | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile.target b/Makefile.target index e960f01..858f8bf 100644 --- a/Makefile.target +++ b/Makefile.target @@ -150,7 +150,8 @@ endif #CONFIG_BSD_USER ifdef CONFIG_SOFTMMU obj-y = vl.o osdep.o monitor.o pci.o loader.o machine.o \ - gdbstub.o gdbstub-xml.o msix.o ioport.o qemu-config.o + gdbstub.o msix.o ioport.o qemu-config.o +obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o # virtio has to be here due to weird dependency between PCI and virtio-net. # need to fix this properly obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o @@ -302,11 +303,7 @@ $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) $(ARLIBS) gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh -ifeq ($(TARGET_XML_FILES),) - $(call quiet-command,rm -f $@ && echo > $@," GEN $(TARGET_DIR)$@") -else $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@") -endif qemu-options.h: $(SRC_PATH)/qemu-options.hx $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") diff --git a/configure b/configure index a846428..0df3800 100755 --- a/configure +++ b/configure @@ -2098,8 +2098,9 @@ if test ! -z "$gdb_xml_files" ; then for x in $gdb_xml_files; do list="$list $source_path/gdb-xml/$x" done + echo "TARGET_XML_FILES=$list" >> $config_mak + echo "CONFIG_GDBSTUB_XML=y" >> $config_mak fi -echo "TARGET_XML_FILES=$list" >> $config_mak case "$target_arch2" in arm|armeb|m68k|microblaze|mips|mipsel|mipsn32|mipsn32el|mips64|mips64el|ppc|ppc64|ppc64abi32|ppcemb|sparc|sparc64|sparc32plus)