Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 12 Aug 2002 20:02:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 12 Aug 2002 20:02:49 -0400 Received: from surf.cadcamlab.org ([156.26.20.182]:10373 "EHLO surf.cadcamlab.org") by vger.kernel.org with ESMTP id ; Mon, 12 Aug 2002 20:02:49 -0400 Date: Mon, 12 Aug 2002 19:03:00 -0500 To: Roman Zippel Cc: Kai Germaschewski , Greg Banks , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: [patch] config language dep_* enhancements Message-ID: <20020813000300.GE761@cadcamlab.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Peter Samuelson Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1144 Lines: 46 [Roman Zippel] > with the latest modifications this can be written as: > > dep_tristate NEW !OLD > dep_tristate OLD !NEW > > This still has the back reference and you have to run 'make config' > twice to change NEW from n to y. I don't see this as a big problem. Most people don't use the bare Configure script anyway, except for 'make oldconfig'. With the ! patch, Menuconfig does the right thing here. > It's possible to fix this: > > tristate DRV > if [ DRV == y ]; then > choice OLD NEW > fi > if [ DRV == m ]; then > dep_tristate NEW DRV > dep_tristate OLD DRV > fi Simpler and perhaps more intuitive: tristate DRV dep_mbool DRV_OLD DRV dep_mbool COMMON_OPT DRV dep_mbool OLD_OPT1 DRV_OLD dep_mbool OLD_OPT2 DRV_OLD dep_mbool NEW_OPT1 DRV !DRV_OLD dep_mbool NEW_OPT2 DRV !DRV_OLD I don't see a real need for a separate symbol announcing DRV_NEW. Let the Makefile cope. Peter - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/