From owner-freebsd-arm@FreeBSD.ORG Thu Sep 29 23:45:16 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF4311065673 for ; Thu, 29 Sep 2011 23:45:16 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate.funkthat.com [70.36.235.232]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB9B8FC1D for ; Thu, 29 Sep 2011 23:45:16 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id p8TNTa4D045022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Sep 2011 16:29:36 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id p8TNTYqS045021; Thu, 29 Sep 2011 16:29:34 -0700 (PDT) (envelope-from jmg) Date: Thu, 29 Sep 2011 16:29:33 -0700 From: John-Mark Gurney To: Aleksandr Rybalko Message-ID: <20110929232933.GC14645@funkthat.com> Mail-Followup-To: Aleksandr Rybalko , satish kondapalli , freebsd-arm@freebsd.org References: <1317195615589-4848235.post@n5.nabble.com> <20110928133448.65441459.ray@dlink.ua> <1317290169064-4852474.post@n5.nabble.com> <20110929131256.28cf6240.ray@dlink.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110929131256.28cf6240.ray@dlink.ua> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Thu, 29 Sep 2011 16:29:36 -0700 (PDT) Cc: freebsd-arm@freebsd.org, satish kondapalli Subject: Re: How to cross compile a kernel module? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 23:45:16 -0000 Aleksandr Rybalko wrote this message on Thu, Sep 29, 2011 at 13:12 +0300: > On Thu, 29 Sep 2011 02:56:09 -0700 (PDT) > satish kondapalli wrote: > > >> Thanks Aleksandr, > >> After adding "MODULES_OVERRIDE" option in the kernel config, my > >> module got compiled. > >> > >> But every time while building my module, the entire kernel also > >> compiled. is there any better mechanism to just cross compile the > >> module with out building the entire Kernel. > > To avoid recompile all things - do make KERNFAST=configname kernel. > > Maybe someone also show better way to cross compile one module, but I > don't know. I haven't tested this in a long time, but if you do: make buildenv from the root of your tree, it should setup your path w/ all the necessary cross-tools in your path, etc... Then you can go into the module directory and do a make manually.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."