Date: Wed, 26 Mar 2014 21:52:05 -0700 From: Stanislav Sedov <stas@freebsd.org> To: John-Mark Gurney <jmg@funkthat.com> Cc: freebsd-arm@freebsd.org, Martin Galvan <omgalvan.86@gmail.com>, freebsd-drivers@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: Cross-compiling a kernel module? Message-ID: <28B91494-CCBB-4050-8E01-7B2BF0C4ABC9@freebsd.org> In-Reply-To: <20140326224443.GN60889@funkthat.com> References: <CAN19L9FL=ure6FENe5=HxkOj=AzmJfks7hKsRnoZXCJxE0vfhQ@mail.gmail.com> <20140326224443.GN60889@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_17B55FD1-4D6A-4AF4-AA36-6FF2ADE37135 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Mar 26, 2014, at 3:44 PM, John-Mark Gurney <jmg@funkthat.com> wrote: > $ cd $SRC > $ make kernel-toolchain TARGET_ARCH=3DarmXX > $ make buildenv TARGET_ARCH=3DarmXX = BUILDENV_SHELL=3D/usr/local/bin/shell > $ cd <moduledir> > $ make >=20 > 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=92t 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 --Apple-Mail=_17B55FD1-4D6A-4AF4-AA36-6FF2ADE37135 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJTM651AAoJEG2OTJ9WF+r7tpsH/2OjyJcF/w2b24ETxVDePTXW U+nvYCU5ZwC2abZfkZ0Y41q3oKgzNp9kcphu4IDzhnSgcaVxDtxl6g/EsmTvaeJs VKq/4PJUL5qpO2HFdnEiVM7xO8ipGk+lp0prRIG2KXEznQfZC8EcYd0lvyC/vcqY hNKX3daGA7L+qPcGrcCeBkYS21MOGKGvRmHJvZ02I7aZVqcKB8HMWXITIjkRmI/0 ryHb27JLLQ88ZezZWrU/csRiDrSsYhJzPOv9eMBwIml2bULQXjhQUX+UixfFtZw8 R9wWmhjUb0i5jdk2clCtnVPkHkyiNON+WMOJrw2qczdJXPUhE/hEyjZF/jBd9q4= =ntF/ -----END PGP SIGNATURE----- --Apple-Mail=_17B55FD1-4D6A-4AF4-AA36-6FF2ADE37135--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28B91494-CCBB-4050-8E01-7B2BF0C4ABC9>