Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755110Ab3FRIpD (ORCPT ); Tue, 18 Jun 2013 04:45:03 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53452 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754951Ab3FRIoz (ORCPT ); Tue, 18 Jun 2013 04:44:55 -0400 Message-ID: <51C01E04.2050908@suse.cz> Date: Tue, 18 Jun 2013 10:44:52 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: balbi@ti.com Cc: Jiri Slaby , Jeff Mahoney , Greg Kroah-Hartman , jirislaby@gmail.com, linux-kernel@vger.kernel.org, Andrew Morton , Linus Torvalds , Alexander Shishkin , linux-usb@vger.kernel.org, Florian Tobias Schandinat , linux-geode@lists.infradead.org, linux-fbdev@vger.kernel.org, Richard Cochran , netdev@vger.kernel.org, Ben Hutchings , "Keller, Jacob E" , tomi.valkeinen@ti.com Subject: Re: [PATCH] build some drivers only when compile-testing References: <1369214326-6558-1-git-send-email-jslaby@suse.cz> <20130523022327.GB6159@kroah.com> <519D8876.9050405@suse.com> <51BF6BFF.7050705@suse.cz> <51BFE754.5080301@suse.cz> <20130618081858.GD5461@arwen.pp.htv.fi> <51C01948.9060708@suse.cz> <20130618083425.GI5461@arwen.pp.htv.fi> In-Reply-To: <20130618083425.GI5461@arwen.pp.htv.fi> X-Enigmail-Version: 1.6a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2081 Lines: 54 Dne 18.6.2013 10:34, Felipe Balbi napsal(a): > Hi, > > On Tue, Jun 18, 2013 at 10:24:40AM +0200, Jiri Slaby wrote: >>>>> Sam Ravnborg (the kconfig ex-maintainer) once wrote that >>>>> he doesn't want to extend the kconfig language for this >>>>> purpose (which I support). That a config option is fine and >>>>> sufficient in this case [1]. Except he called the config >>>>> option "SHOW_ALL_DRIVERS". Adding the current maintainer to >>>>> CCs ;). >>>> >>>> I agree with Sam. 'depends on XY || COMPILE_TEST' is quite >>>> self-explanatory. And even if it's not, you can look up the >>>> help text for COMPILE_TEST. With "archdepends on" or >>>> "available on", you need to know what to look for to override >>>> the dependency. >>> >>> you will still end up with: >>> >>> depends on (ARCH_OMAP || ARCH_EXYNOS || ARCH_DAVINCI || >>> ARCH_PPC || ...) >>> >>> And every now and again that particular line will be updated >>> to add another arch dependency. >> >> But that is perfectly fine *when* the driver is supported on >> those archs only. >> >> And come on, how much often will this "every now and again" >> happen? We don't have that much cases where a driver is augmented >> to work on another arch or platform. It either works on all of >> them => doesn't need COMPILE_TEST, or work on one or two arches >> at most. > > MUSB alone has 8 different arch choices. Before, it used to be that > core driver was dependendent on all of them, so whenever someone > wanted to build MUSB for another arch, they had to introdude their > glue code and modify the dependency of the core driver. But that you have complex dependencies in some drivers is mostly orthogonal to the two choices of syntax, isn't it? depends on ARCH1 || ARCH2 || .... || ARCH8 || COMPILE_TEST vs. archdepends on ARCH1 || ARCH2 || .... || ARCH8 Michal -- 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/