From patchwork Sun Feb 6 18:26:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Magnusson X-Patchwork-Id: 535521 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p16IQjtA010849 for ; Sun, 6 Feb 2011 18:26:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753204Ab1BFS02 (ORCPT ); Sun, 6 Feb 2011 13:26:28 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:45013 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753003Ab1BFS00 (ORCPT ); Sun, 6 Feb 2011 13:26:26 -0500 Received: by bwz15 with SMTP id 15so4280716bwz.19 for ; Sun, 06 Feb 2011 10:26:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id :mail-followup-to:mime-version:content-type:content-disposition :user-agent; bh=HUCB6aYwS5esSziDn5v9m+sN9+I+UYapu1AbalZVuco=; b=pZ+5qx4xe36+MHtZznJUzsufI9mwaf5y6PYAcehsr25bFevZuFMb+HB17XsoZFK62Y bNLUikPaVgxCQQmaQabAslc1Zugahv0pez8VRntEdlbAYXBhdaRUBB5eWPQHp8rIPYh+ f9uU6iJnNtzQ+vI5CmFZCOqSj78ifvM6Qac4g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=uA9zpTfxRA8VIOtu6SicXJF+1afJZpq6WYYqfWC5NDRv6Rklt9qTYNRTzTsepJq9V7 sUEsWBpN/o/U5P2W1uRiJ+lIBWsuFbnjjAXDddke0k47OROjukTPcSfgla//y7oftTV+ 0kqViCSrAcEKQBZY6stxPAcmfw34jWbuCaV4I= Received: by 10.204.140.70 with SMTP id h6mr12658198bku.117.1297016783355; Sun, 06 Feb 2011 10:26:23 -0800 (PST) Received: from ulf (pat.se.opera.com [88.131.66.80]) by mx.google.com with ESMTPS id q18sm1573354bka.15.2011.02.06.10.26.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 06 Feb 2011 10:26:22 -0800 (PST) Date: Sun, 6 Feb 2011 19:26:16 +0100 From: Ulf Magnusson To: linux-kbuild@vger.kernel.org Cc: zippel@linux-m68k.org, mmarek@suse.cz, rdunlap@xenotime.net, akpm@linux-foundation.org, andrea.gelmini@gelma.net, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v3] [ANNOUNCE] kconfig: Kconfiglib: a flexible Python Kconfig parser Message-ID: <20110206182612.GA17388@ulf> Mail-Followup-To: Ulf Magnusson , linux-kbuild@vger.kernel.org, zippel@linux-m68k.org, mmarek@suse.cz, rdunlap@xenotime.net, akpm@linux-foundation.org, andrea.gelmini@gelma.net, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 06 Feb 2011 18:26:46 +0000 (UTC) diff --git a/scripts/kconfig/kconfiglib.py b/scripts/kconfig/kconfiglib.py index fa3d5ee..964e5cb 100644 --- a/scripts/kconfig/kconfiglib.py +++ b/scripts/kconfig/kconfiglib.py @@ -323,7 +323,7 @@ while True: sym.set_value(lower_bound) - # We just changed the value of some symbol. As this may effect + # We just changed the value of some symbol. As this may affect # other symbols, keep going. done = False @@ -708,9 +708,9 @@ class Config(): return self.arch def get_mainmenu_text(self): - """Returns the text of the 'mainmenu' statement (with environment - variables expanded to the value they had when the Config was created), - or None if the configuration has no 'mainmenu' statement.""" + """Returns the text of the 'mainmenu' statement (with $-references to + symbols replaced by symbol values), or None if the configuration has no + 'mainmenu' statement.""" return self._expand_sym_refs(self.mainmenu_text) def get_defconfig_filename(self):