Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757524Ab3EWHsS (ORCPT ); Thu, 23 May 2013 03:48:18 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:33341 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757306Ab3EWHsP (ORCPT ); Thu, 23 May 2013 03:48:15 -0400 Message-ID: <519DC971.80406@ti.com> Date: Thu, 23 May 2013 10:46:57 +0300 From: Tomi Valkeinen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Jiri Slaby CC: , , Andrew Morton , Linus Torvalds , Jeff Mahoney , Alexander Shishkin , Greg Kroah-Hartman , , Florian Tobias Schandinat , , , Richard Cochran , , Ben Hutchings , "Keller, Jacob E" Subject: Re: [PATCH] build some drivers only when compile-testing References: <1369214326-6558-1-git-send-email-jslaby@suse.cz> In-Reply-To: <1369214326-6558-1-git-send-email-jslaby@suse.cz> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2FCLOGUJKJTLPIAPAOUPR" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2835 Lines: 70 ------enig2FCLOGUJKJTLPIAPAOUPR Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, On 22/05/13 12:18, Jiri Slaby wrote: > Some drivers can be built on more platforms than they run on. This > causes users and distributors packaging burden when they have to > manually deselect some drivers from their allmodconfigs. Or sometimes > it is even impossible to disable the drivers without patching the > kernel. >=20 > Introduce a new config option COMPILE_TEST and make all those drivers > to depend on the platform they run on, or on the COMPILE_TEST option. > Now, when users/distributors choose COMPILE_TEST=3Dn they will not have= > the drivers in their allmodconfig setups, but developers still can > compile-test them with COMPILE_TEST=3Dy. >=20 > Now the drivers where we use this new option: > * PTP_1588_CLOCK_PCH: The PCH EG20T is only compatible with Intel Atom > processors so it should depend on x86. > * FB_GEODE: Geode is 32-bit only so only enable it for X86_32. > * USB_CHIPIDEA_IMX: The OF_DEVICE dependency will be met on powerpc > systems -- which do not actually support the hardware via that > method. I had this exact same idea some time ago. The mail below contains some of my reasoning for this: http://comments.gmane.org/gmane.linux.kbuild.devel/9829 I proposed a new Kconfig keyword, but Sam was quite against it as the Kconfig language already does what is required. Tomi ------enig2FCLOGUJKJTLPIAPAOUPR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRncl1AAoJEPo9qoy8lh71qFoP/3PjrIvuoEgFhp4JW4uj0+zO 9OWNwwh3EWsolDOiaexaDrJvgdNwK2PMlXbihBUEfYHx3rIh7hR8GZPUwnCXIsur edYF+octUiWGWh5UykQzX5tVM0Z+OyvSPJ/mBDsacDnUQFfNdJFAjbxaQmzHzwmZ jAlhcGW1yT4qDahNi3aRtk4QTjWF5uBRMBFpRSjp3IT5mh5wEtvQxNRKcLxCt98E m4T5UQE16j73lMhyGfaYCGP6EqGZ9ymCK2ewuOt9ziDpCAqhWPeImrKZOC97vQZ2 z5hYmlkAvV41FP8xpPO5bPqVUeFvNBvS+YVY+Hx8W3DZokPBU2QDs5w/9h9xqm7m Rhf3ce1VVVx+UjWOMQFKZMOiZJA6LQ+hSIjJ16Nr41QQvqBMKwZDQVJHcynzCSFH Id5g8/Ut9VIVTflkWFuaBEBp1QMzMnyzjwvu17NSjSCLtfWjfCtA2Ccy7zhV00XH 8MpmkHL1tmCD3CHM0ckJqYiYd2U9MsgT91Egk/w+AS0c0q45qClkrAY26896O1CT zGKNIcmbc1Z35Rtvbk3g3H1CKn3rtWzC8Qb+EVAE2gJ61DYNTm7OaDRRqEn2xbAa PZhaM841bJnaFkPt+fRF9ZD4FZVnKgL1/MkuTA4XWmMqPe01oQYE9tjUWidnw+CO qNQkXF3hX8gYoy7IaDwa =ggmg -----END PGP SIGNATURE----- ------enig2FCLOGUJKJTLPIAPAOUPR-- -- 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/