From patchwork Mon Aug 24 11:29:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31933 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 64529B7B5F for ; Mon, 24 Aug 2009 22:16:07 +1000 (EST) Received: from localhost ([127.0.0.1]:56621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfYSx-0004PK-4z for incoming@patchwork.ozlabs.org; Mon, 24 Aug 2009 08:16:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfXnX-00007L-HR for qemu-devel@nongnu.org; Mon, 24 Aug 2009 07:33:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfXnR-0008TZ-75 for qemu-devel@nongnu.org; Mon, 24 Aug 2009 07:33:13 -0400 Received: from [199.232.76.173] (port=54726 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfXnQ-0008TQ-Ov for qemu-devel@nongnu.org; Mon, 24 Aug 2009 07:33:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39435) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfXnQ-0003iX-Ac for qemu-devel@nongnu.org; Mon, 24 Aug 2009 07:33:08 -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 n7OBX7bg003478 for ; Mon, 24 Aug 2009 07:33:07 -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 n7OBW6Kc013895; Mon, 24 Aug 2009 07:33:06 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 24 Aug 2009 13:29:42 +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 11/15] configure ecc flash only for arm and sparc softmmu 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.hw | 3 ++- configure | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile.hw b/Makefile.hw index a470270..c9dd420 100644 --- a/Makefile.hw +++ b/Makefile.hw @@ -14,7 +14,8 @@ obj-y = obj-y += virtio.o virtio-pci.o obj-y += fw_cfg.o obj-y += watchdog.o -obj-y += nand.o ecc.o +obj-y += nand.o +obj-$(CONFIG_ECC) += ecc.o obj-$(CONFIG_M48T59) += m48t59.o obj-$(CONFIG_ESCC) += escc.o diff --git a/configure b/configure index 9bd14f4..14d2825 100755 --- a/configure +++ b/configure @@ -1823,6 +1823,7 @@ ptimer=no m48t59=no escc=no esp=no +ecc_flash=no for target in $target_list; do target_dir="$target" @@ -2054,11 +2055,13 @@ if test "$target_softmmu" = "yes" ; then spitz=yes sd_flash=yes ptimer=yes + ecc_flash=yes ;; sparc) ptimer=yes m48t59=yes escc=yes + ecc_flash=yes ;; sparc64) ptimer=yes @@ -2298,6 +2301,10 @@ if test "$esp" = "yes" ; then echo "CONFIG_ESP=y" >> $config_host_mak fi +if test "$ecc_flash" = "yes" ; then + echo "CONFIG_ECC=y" >> $config_host_mak +fi + echo "/* Automatically generated by configure - do not modify */" > $config_host_h /bin/sh $source_path/create_config < $config_host_mak >> $config_host_h