From patchwork Wed Apr 4 18:32:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 150817 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C5BA1B6FEA for ; Thu, 5 Apr 2012 08:33:36 +1000 (EST) Received: from localhost ([::1]:50297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFV1G-0001LM-Ta for incoming@patchwork.ozlabs.org; Wed, 04 Apr 2012 14:33:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFV0H-0008RX-Qz for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:32:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFV0B-0001je-KA for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:32:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFV0B-0001gD-Bl for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:32:15 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q34IWCJL022768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 4 Apr 2012 14:32:12 -0400 Received: from blackpad.lan.raisama.net (ovpn-116-80.ams2.redhat.com [10.36.116.80]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q34IWAKF026387; Wed, 4 Apr 2012 14:32:11 -0400 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id C9252201D8C; Wed, 4 Apr 2012 15:32:26 -0300 (BRT) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Wed, 4 Apr 2012 15:32:23 -0300 Message-Id: <1333564345-13011-13-git-send-email-ehabkost@redhat.com> In-Reply-To: <1333564345-13011-1-git-send-email-ehabkost@redhat.com> References: <1333564345-13011-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Paolo Bonzini Subject: [Qemu-devel] [PATCH 12/14] create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org As now that block handles only the prefix variable, the code can be much simpler. This also removes the CONFIG_QEMU_PREFIX define as it is not used by any C code. Signed-off-by: Eduardo Habkost --- scripts/create_config | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/scripts/create_config b/scripts/create_config index 1d06eb1..c471e8c 100755 --- a/scripts/create_config +++ b/scripts/create_config @@ -23,13 +23,8 @@ case $line in eval "$name=\$define_value" ;; prefix=*) - name=${line%=*} - value=${line#*=} - define_name=`echo $name | LC_ALL=C tr '[a-z]' '[A-Z]'` - eval "define_value=\"$value\"" - echo "#define CONFIG_QEMU_$define_name \"$define_value\"" # save for the next definitions - eval "$name=\$define_value" + prefix=${line#*=} ;; CONFIG_AUDIO_DRIVERS=*) drivers=${line#*=}