From patchwork Tue Aug 17 05:44:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 119865 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7H5nbfO016333 for ; Tue, 17 Aug 2010 05:49:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751371Ab0HQFth (ORCPT ); Tue, 17 Aug 2010 01:49:37 -0400 Received: from mail-gy0-f174.google.com ([209.85.160.174]:55779 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751286Ab0HQFtg (ORCPT ); Tue, 17 Aug 2010 01:49:36 -0400 Received: by gyg10 with SMTP id 10so2223049gyg.19 for ; Mon, 16 Aug 2010 22:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=trGyr0XsWzBhJetm9FQi19RP93LDYR+nDMc2gK3tWZ4=; b=dvuIx26fVpMB6gqUMI40xmHCBaJB4Q4A1PmhcwHNiEuQu0164u+U45O7WZz5A/Q9zp daQ+tit0s0OmLlb7JhXokBc+TlV+2RmZxShjXFBuLmpkEF2mg0n/3FPrcJR6s9n47TAe jH27gA70dJjodRzoghdmavw49ZyjcpMjoLSQg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=j9BV9eOysPgLd0Z0SO4ZRwRxvDgocaJVT6xi2u3cuDnhWqZ0Y1Nq0DhOCylyWWDTDJ mKOWo95fQp8t3R8wHz9WpyBsWEG8/YJk8KXjO5DDA1BrXPnvoMcV7/CHT4oFY7YZhAGv U6CZ9jzABxrGCw5g5lAwQZ+a6IzmiJ1zJ1tlI= Received: by 10.100.128.16 with SMTP id a16mr7018251and.34.1282024176133; Mon, 16 Aug 2010 22:49:36 -0700 (PDT) Received: from localhost.localdomain (206-248-183-141.dsl.teksavvy.com [206.248.183.141]) by mx.google.com with ESMTPS id r2sm67962anb.15.2010.08.16.22.49.34 (version=SSLv3 cipher=RC4-MD5); Mon, 16 Aug 2010 22:49:35 -0700 (PDT) From: Arnaud Lacombe To: Sam Ravnborg , Michal Marek Cc: linux-kbuild , Arnaud Lacombe Subject: [PATCH] kbuild: delay rootmenu prompt initialization Date: Tue, 17 Aug 2010 01:44:20 -0400 Message-Id: <1282023860-13242-1-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.2.30.gc37d7.dirty In-Reply-To: <1282023725-20428-1-git-send-email-lacombar@gmail.com> References: <1282023725-20428-1-git-send-email-lacombar@gmail.com> 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.3 (demeter.kernel.org [140.211.167.41]); Tue, 17 Aug 2010 05:49:37 +0000 (UTC) diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 18c9a28..8788d77 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y @@ -486,7 +486,6 @@ void conf_parse(const char *name) modules_sym = sym_lookup(NULL, 0); modules_sym->type = S_BOOLEAN; modules_sym->flags |= SYMBOL_AUTO; - rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL); #if YYDEBUG if (getenv("ZCONF_DEBUG")) @@ -501,6 +500,9 @@ void conf_parse(const char *name) prop = prop_alloc(P_DEFAULT, modules_sym); prop->expr = expr_alloc_symbol(sym_lookup("MODULES", 0)); } + + rootmenu.prompt = menu_add_prompt(P_MENU, mainmenu_get_prompt(), NULL); + menu_finalize(&rootmenu); for_all_symbols(i, sym) { if (sym_check_deps(sym))