From patchwork Wed Apr 18 19:55:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 153584 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 97727B6EF1 for ; Thu, 19 Apr 2012 06:42:29 +1000 (EST) Received: from localhost ([::1]:55352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKazS-0003HH-KZ for incoming@patchwork.ozlabs.org; Wed, 18 Apr 2012 15:56:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKayf-000119-U0 for qemu-devel@nongnu.org; Wed, 18 Apr 2012 15:55:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKayb-0003ou-1z for qemu-devel@nongnu.org; Wed, 18 Apr 2012 15:55:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKaya-0003oH-Lw for qemu-devel@nongnu.org; Wed, 18 Apr 2012 15:55:40 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3IJtbEe030537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Apr 2012 15:55:37 -0400 Received: from blackpad.lan.raisama.net (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q3IJtacr029189; Wed, 18 Apr 2012 15:55:37 -0400 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id 8FB7020088C; Wed, 18 Apr 2012 16:55:51 -0300 (BRT) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Wed, 18 Apr 2012 16:55:40 -0300 Message-Id: <1334778950-18660-5-git-send-email-ehabkost@redhat.com> In-Reply-To: <1334778950-18660-1-git-send-email-ehabkost@redhat.com> References: <1334778950-18660-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Paolo Bonzini , Anthony Liguori 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#*=}