From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 27 04:52:49 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE954393; Thu, 27 Mar 2014 04:52:49 +0000 (UTC) Received: from mx0.deglitch.com (unknown [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8943AC62; Thu, 27 Mar 2014 04:52:49 +0000 (UTC) Received: from [192.168.11.2] (unknown [98.234.106.231]) by mx0.deglitch.com (Postfix) with ESMTPSA id CB4258FC40; Thu, 27 Mar 2014 08:52:16 +0400 (MSK) Content-Type: multipart/signed; boundary="Apple-Mail=_17B55FD1-4D6A-4AF4-AA36-6FF2ADE37135"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Cross-compiling a kernel module? From: Stanislav Sedov In-Reply-To: <20140326224443.GN60889@funkthat.com> Date: Wed, 26 Mar 2014 21:52:05 -0700 Message-Id: <28B91494-CCBB-4050-8E01-7B2BF0C4ABC9@freebsd.org> References: <20140326224443.GN60889@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.1874) Cc: freebsd-arm@freebsd.org, Martin Galvan , freebsd-drivers@freebsd.org, freebsd-embedded@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2014 04:52:49 -0000 --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 wrote: > $ cd $SRC > $ make kernel-toolchain TARGET_ARCH=3DarmXX > $ make buildenv TARGET_ARCH=3DarmXX = BUILDENV_SHELL=3D/usr/local/bin/shell > $ cd > $ 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--