Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752825Ab3EXEug (ORCPT ); Fri, 24 May 2013 00:50:36 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:48162 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947Ab3EXEud convert rfc822-to-8bit (ORCPT ); Fri, 24 May 2013 00:50:33 -0400 Date: Thu, 23 May 2013 23:50:30 -0500 From: Rob Landley Subject: Re: [PATCH] build some drivers only when compile-testing To: Ben Hutchings Cc: Greg Kroah-Hartman , Jiri Slaby , jirislaby@gmail.com, linux-kernel@vger.kernel.org, Andrew Morton , Linus Torvalds , Jeff Mahoney , 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, "Keller, Jacob E" In-Reply-To: <1369317700.3469.256.camel@deadeye.wl.decadent.org.uk> (from ben@decadent.org.uk on Thu May 23 09:01:40 2013) X-Mailer: Balsa 2.4.11 Message-Id: <1369371030.2776.17@driftwood> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1863 Lines: 43 On 05/23/2013 09:01:40 AM, Ben Hutchings wrote: > On Wed, 2013-05-22 at 19:23 -0700, Greg Kroah-Hartman wrote: > > On Wed, May 22, 2013 at 11:18:46AM +0200, 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. > > > > > > 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=n they will not > have > > > the drivers in their allmodconfig setups, but developers still can > > > compile-test them with COMPILE_TEST=y. > > > > I understand the urge, and it's getting hard for distros to handle > these > > drivers that just don't work on other architectures, but it's really > > valuable to ensure that they build properly, for those of us that > don't > > have many/any cross compilers set up. In http://landley.net/aboriginal/bin grab the cross-compiler-*.tar.bz2 tarballs, extract them, add the "bin" subdirectory of each to the $PATH. Congratulations, you have cross compilers set up. (They're statically linked and relocatable, so should run just about anywhere. If they don't, let me know and I'll fix it.) Example build: make ARCH=sparc sparc32_defconfig PATH=/home/landley/simple-cross-compiler-sparc/bin:$PATH \ make ARCH=sparc CROSS_COMPILE=sparc- Rob-- 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/