From patchwork Wed Apr 18 19:55:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 153611 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 DB673B6EEB for ; Thu, 19 Apr 2012 07:41:06 +1000 (EST) Received: from localhost ([::1]:55358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKazT-0003HN-Gl for incoming@patchwork.ozlabs.org; Wed, 18 Apr 2012 15:56:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKayh-00011N-4z 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 1SKaye-0003qr-Rc for qemu-devel@nongnu.org; Wed, 18 Apr 2012 15:55:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKaye-0003pp-3R for qemu-devel@nongnu.org; Wed, 18 Apr 2012 15:55:44 -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 q3IJtfls032027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Apr 2012 15:55:41 -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 q3IJtcCG029216; Wed, 18 Apr 2012 15:55:41 -0400 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id 65684202A2A; Wed, 18 Apr 2012 16:55:52 -0300 (BRT) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Wed, 18 Apr 2012 16:55:47 -0300 Message-Id: <1334778950-18660-12-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 11/14] create_config: remove *dir block 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 Now only the qemu_*dir variables will become #defines. The other directory names aren't used by the C code. That means the following #defines won't be available in C code anymore: - CONFIG_QEMU_BINDIR - CONFIG_QEMU_LIBDIR - CONFIG_QEMU_INCLUDEDIR - CONFIG_QEMU_MANDIR - CONFIG_QEMU_SYSCONFDIR - CONFIG_QEMU_LIBEXECDIR The following #defines are going to be kept because they are handled by the qemu_* block on create_config: - CONFIG_QEMU_CONFDIR - CONFIG_QEMU_DATADIR - CONFIG_QEMU_DOCDIR This one will be kept because it is set directly by ./configure: - CONFIG_QEMU_HELPERDIR This patch keeps the 'prefix=*' (CONFIG_QEMU_PREFIX) pattern because other variables may use $prefix on their config-host.mak definitions. The remaining code will be simplified on a further patch. Signed-off-by: Eduardo Habkost --- scripts/create_config | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/create_config b/scripts/create_config index f9ba2f5..1d06eb1 100755 --- a/scripts/create_config +++ b/scripts/create_config @@ -22,7 +22,7 @@ case $line in # save for the next definitions eval "$name=\$define_value" ;; - prefix=* | [a-z]*dir=*) # directory configuration + prefix=*) name=${line%=*} value=${line#*=} define_name=`echo $name | LC_ALL=C tr '[a-z]' '[A-Z]'`