From patchwork Wed Feb 18 08:13:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng Renquan X-Patchwork-Id: 7717 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n1I8Dm1C002934 for ; Wed, 18 Feb 2009 08:13:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751340AbZBRINs (ORCPT ); Wed, 18 Feb 2009 03:13:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751331AbZBRINs (ORCPT ); Wed, 18 Feb 2009 03:13:48 -0500 Received: from ti-out-0910.google.com ([209.85.142.185]:13750 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750828AbZBRINr (ORCPT ); Wed, 18 Feb 2009 03:13:47 -0500 Received: by ti-out-0910.google.com with SMTP id d10so2321415tib.23 for ; Wed, 18 Feb 2009 00:13:45 -0800 (PST) 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; bh=yZA+RVjTEjbjrgLibDXvImpIJPVBBHLXQCWh2E5cRlo=; b=FSuqCmjWN3mY7jDI6g33ifz+v9CQ/8xwTqo+BVhUPo5dMWohKbbLUb0gp4Zr+ipjcx yrNtGQEn+0Dg/Bcg6Qwkvrumx/g/iWLzMMXvG7YJJijpCuuvfyyE2zpl1QeDBmvelVq8 gNW3S7warhvtU4t4RJyJEtVJXYItOGFBSP8js= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=ndrOgKgVZRW1kNZGW1mq6gVeaFPqZrlerAnTMb3FGZRhPVPLt19UgCOd86SFk+yt3q VfyJOtNoecMmRlSkjfxwRtQUuc4sUMcjsoXHrLSbhH9r+VJdnKGwOrJtbpXl/s1RutGQ AVTVr6itfvhF5N7uqE7lG5H0wFHb21l49F1jY= Received: by 10.110.57.6 with SMTP id f6mr11278539tia.55.1234944825019; Wed, 18 Feb 2009 00:13:45 -0800 (PST) Received: from localhost.localdomain ([219.134.89.155]) by mx.google.com with ESMTPS id 2sm13211tif.26.2009.02.18.00.13.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Feb 2009 00:13:43 -0800 (PST) From: Cheng Renquan To: Sam Ravnborg , Roman Zippel Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Cheng Renquan Subject: [PATCH] [KBUILD] add symbol value to help find the real depend Date: Wed, 18 Feb 2009 16:13:45 +0800 Message-Id: <1234944825-10299-1-git-send-email-crquan@gmail.com> X-Mailer: git-send-email 1.6.0.6 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Cheng Renquan kbuild-menuconfig-display-depend-value.patch Sometimes when configuring need to disable some unused item, but the item is selected by many other items, it's hard to find the real dependency which selected it, This patch add every symbol's value accompanied to make it possible to find the real dependency easily. An example is CONFIG_RFKILL, ---------------------- RF switch subsystem support ---------------------- | CONFIG_RFKILL: | | | | Say Y here if you want to have control over RF switches | | found on many WiFi and Bluetooth cards. | | | | To compile this driver as a module, choose M here: the | | module will be called rfkill. | | | | Symbol: RFKILL [=m] | | Prompt: RF switch subsystem support | | Defined at net/rfkill/Kconfig:4 | | Depends on: NET [=y] | | Location: | | -> Networking support (NET [=y]) | | Selected by: IWLCORE [=n] && NETDEVICES [=y] && !S390 [=S390] && PC | | | ----------------------------------------------------------------( 99%)--- Signed-off-by: Cheng Renquan --- -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6.29-rc5-lio/scripts/kconfig/expr.c =================================================================== --- linux-2.6.29-rc5-lio.orig/scripts/kconfig/expr.c +++ linux-2.6.29-rc5-lio/scripts/kconfig/expr.c @@ -1098,6 +1098,9 @@ void expr_fprint(struct expr *e, FILE *o static void expr_print_gstr_helper(void *data, struct symbol *sym, const char *str) { str_append((struct gstr*)data, str); + if (sym) + str_printf((struct gstr *)data, " [=%s]", + sym_get_string_value(sym)); } void expr_gstr_print(struct expr *e, struct gstr *gs)