Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2011 16:29:33 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Aleksandr Rybalko <ray@dlink.ua>
Cc:        freebsd-arm@freebsd.org, satish kondapalli <nitw.satish@gmail.com>
Subject:   Re: How to cross compile a  kernel module?
Message-ID:  <20110929232933.GC14645@funkthat.com>
In-Reply-To: <20110929131256.28cf6240.ray@dlink.ua>
References:  <1317195615589-4848235.post@n5.nabble.com> <20110928133448.65441459.ray@dlink.ua> <1317290169064-4852474.post@n5.nabble.com> <20110929131256.28cf6240.ray@dlink.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <nitw.satish@gmail.com> 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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110929232933.GC14645>