From patchwork Wed Apr 4 18:32:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 150866 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 3C113B6FE6 for ; Thu, 5 Apr 2012 15:18:53 +1000 (EST) Received: from localhost ([::1]:50370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFV2Z-0001Qb-3i for incoming@patchwork.ozlabs.org; Wed, 04 Apr 2012 14:34:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFV0O-0008T8-99 for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:32:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFV0L-0001oI-GU for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:32:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFV0L-0001mp-8h for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:32:25 -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 q34IW9Wu003031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 4 Apr 2012 14:32:10 -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 q34IW8W6026377; Wed, 4 Apr 2012 14:32:09 -0400 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id 23F80200FB5; Wed, 4 Apr 2012 15:32:26 -0300 (BRT) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Wed, 4 Apr 2012 15:32:15 -0300 Message-Id: <1333564345-13011-5-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 04/14] create_config: separate section for qemu_*dir variables (v2) 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 The generic *dir section will eventually go away and be replaced with qemu_* section. By now, both sections will be kept, while the variables get renamed on config-host.mak. With this patch, a XXXdir variable will become a CONFIG_QEMU_XXXDIR define, and a qemu_XXXdir variable will become CONFIG_QEMU_XXXDIR as well (instead of becoming a CONFIG_QEMU_QEMU_XXXDIR define). Changes v1 -> v2: - Rebase on top of newer qemu.git changes, that changed "tr '[:lower:]' '[:upper:]'" to "LC_ALL=C tr '[a-z]' '[A-Z]'". Signed-off-by: Eduardo Habkost --- scripts/create_config | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/scripts/create_config b/scripts/create_config index 470e05e..f9ba2f5 100755 --- a/scripts/create_config +++ b/scripts/create_config @@ -13,6 +13,15 @@ case $line in pkgversion=${line#*=} echo "#define QEMU_PKGVERSION \"$pkgversion\"" ;; + qemu_*dir=*) # qemu-specific directory configuration + name=${line%=*} + value=${line#*=} + define_name=`echo $name | LC_ALL=C tr '[a-z]' '[A-Z]'` + eval "define_value=\"$value\"" + echo "#define CONFIG_$define_name \"$define_value\"" + # save for the next definitions + eval "$name=\$define_value" + ;; prefix=* | [a-z]*dir=*) # directory configuration name=${line%=*} value=${line#*=}