From patchwork Wed Oct 7 00:41:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 35194 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 ozlabs.org (Postfix) with ESMTPS id 38C18B7334 for ; Wed, 7 Oct 2009 12:07:47 +1100 (EST) Received: from localhost ([127.0.0.1]:33791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvL0K-00065X-8A for incoming@patchwork.ozlabs.org; Tue, 06 Oct 2009 21:07:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvKbQ-0006TH-MS for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:42:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvKbJ-0006OI-ST for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:41:57 -0400 Received: from [199.232.76.173] (port=60241 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvKbJ-0006Nq-BL for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:41:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23404) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvKbI-0000Ce-TX for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:41:53 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n970fqTW019556 for ; Tue, 6 Oct 2009 20:41:52 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n970fiGS022901; Tue, 6 Oct 2009 20:41:51 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 7 Oct 2009 02:41:01 +0200 Message-Id: <8f208c17918f2dc056e6f0c0c652cce2c9efa901.1254875337.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 05/31] Move generation of config-target.h to Makefile from configure 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 | 17 ----------------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/Makefile.target b/Makefile.target index 5fe9c6e..56567ee 100644 --- a/Makefile.target +++ b/Makefile.target @@ -26,7 +26,12 @@ LIBS+=-lm kvm.o kvm-all.o: QEMU_CFLAGS+=$(KVM_CFLAGS) -all: $(PROGS) +config-target.h: config-target.h-timestamp +config-target.h-timestamp: config-target.mak + +all: config-target.h + $(call quiet-command, $(MAKE) $(PROGS),) + # Dummy command so that make thinks it has done something @true diff --git a/configure b/configure index dfc2818..70363be 100755 --- a/configure +++ b/configure @@ -2074,7 +2074,6 @@ fi for target in $target_list; do target_dir="$target" config_target_mak=$target_dir/config-target.mak -config_target_h=$target_dir/config-target.h target_arch2=`echo $target | cut -d '-' -f 1` target_bigendian="no" case "$target_arch2" in @@ -2109,10 +2108,6 @@ case "$target" in ;; esac -#echo "Creating $config_target_mak, $config_target_h and $target_dir/Makefile" - -test -f $config_target_h && mv $config_target_h ${config_target_h}~ - mkdir -p $target_dir mkdir -p $target_dir/fpu mkdir -p $target_dir/tcg @@ -2457,18 +2452,6 @@ fi echo "LDFLAGS+=$ldflags" >> $config_target_mak echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak -echo "#include \"../config-host.h\"" > $config_target_h - -/bin/sh $source_path/create_config < $config_target_mak >> $config_target_h - -if test -f ${config_target_h}~ ; then - if cmp -s $config_target_h ${config_target_h}~ ; then - mv ${config_target_h}~ $config_target_h - else - rm ${config_target_h}~ - fi -fi - done # for target in $targets # build tree in object directory if source path is different from current one