Date: Fri, 28 Mar 2014 09:07:41 -0300 From: Martin Galvan <omgalvan.86@gmail.com> To: Stanislav Sedov <stas@freebsd.org> Cc: freebsd-arm@freebsd.org, freebsd-embedded@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: Cross-compiling a kernel module? Message-ID: <CAN19L9G294UdLTffTawpMcEDfpo53Ts9mrW3ffUG0U6ANwY=yg@mail.gmail.com> In-Reply-To: <28B91494-CCBB-4050-8E01-7B2BF0C4ABC9@freebsd.org> References: <CAN19L9FL=ure6FENe5=HxkOj=AzmJfks7hKsRnoZXCJxE0vfhQ@mail.gmail.com> <20140326224443.GN60889@funkthat.com> <28B91494-CCBB-4050-8E01-7B2BF0C4ABC9@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Works like a charm. Thanks a lot guys! 2014-03-27 1:52 GMT-03:00 Stanislav Sedov <stas@freebsd.org>: > > On Mar 26, 2014, at 3:44 PM, John-Mark Gurney <jmg@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 > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN19L9G294UdLTffTawpMcEDfpo53Ts9mrW3ffUG0U6ANwY=yg>