Cross-compiling a kernel module?

Martin Galvan omgalvan.86 at gmail.com
Fri Mar 28 12:07:43 UTC 2014


Works like a charm. Thanks a lot guys!


2014-03-27 1:52 GMT-03:00 Stanislav Sedov <stas at freebsd.org>:

>
> On Mar 26, 2014, at 3:44 PM, John-Mark Gurney <jmg at funkthat.com> wrote:
>
> > $ cd $SRC
> > $ make kernel-toolchain TARGET_ARCH=armXX
> > $ make buildenv TARGET_ARCH=armXX BUILDENV_SHELL=/usr/local/bin/shell
> > $ cd <moduledir>
> > $ make
> >
> > The buildenv command sets up the new shell with an environment that is
> > the same as if you were running under a buildkernel or buildworld
> > environment..  You can use this to build one off programs like bin/ls
> > too.
>
> Don't forget to set the KERNBUILDDIR option as well to point to your
> kernel object dir so the module will pick up all the right options.
>
> --
> ST4096-RIPE
>
>
>
>


More information about the freebsd-embedded mailing list