Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759242Ab0GPULi (ORCPT ); Fri, 16 Jul 2010 16:11:38 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:64676 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759161Ab0GPULh (ORCPT ); Fri, 16 Jul 2010 16:11:37 -0400 From: Arnd Bergmann To: Linus Torvalds Subject: Re: [RFC PATCH] Kconfig: Enable Kconfig fragments to be used for defconfig Date: Fri, 16 Jul 2010 22:11:31 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.35-rc4-next-20100709+; KDE/4.4.90; x86_64; ; ) Cc: Nicolas Pitre , "Russell King - ARM Linux" , Grant Likely , Catalin Marinas , linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , linux-kbuild@vger.kernel.org, lkml , linux-arm-kernel@lists.infradead.org, Tony Lindgren , Daniel Walker , "Uwe =?iso-8859-1?q?Kleine-K=F6nig?=" , Stephen Rothwell References: <20100713230352.6781.18644.stgit@angua> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007162211.31973.arnd@arndb.de> X-Provags-ID: V02:K0:yNk09uZkRYxkVGS0kom6kWGxR9PQaXGiHcdf7AfzHUY r2iANSSn0zmWRdfNs6PicmvJqixz474vBvvdpNHOtBnHWSQ9F2 eImk0seE+VymqZOLtj7xndbm6zZS2m/DyNtypHHQJ7c4O0BaiB GELau1DA3tiHPeTHDOQSYvYtJYIRgHs6aXLtkVcmC7auDDI4lf 6Z3w6cVaVkiF7yBbUUx6w== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1133 Lines: 32 On Friday 16 July 2010 20:46:17 Linus Torvalds wrote: > Maybe a full "solver" is unnecessary, for example, but just a simple > "automatically enable the direct dependencies and scream when it's not > simple any more" would take care of 99% of the common cases, and then > warn when it needs some manual help. I think the recursion should also be limited to cases where the dependency is a valid selectable option, i.e. not for # this architecture does not support MMIO config HAS_IOMEM def_bool 'n' config PCI bool "PCI Device drivers" depends on HAS_IOMEM config FOO tristate "Some device driver" depends on PCI In this case, it would be straightforward for the solver to enable PCI for when something selects CONFIG_FOO, but it should print a warning if this is attempted while HAS_IOMEM is unconditionally disabled, since that puts it into the "not simple" category. Arnd -- 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/