From owner-freebsd-current@FreeBSD.ORG Sat Feb 12 22:00:28 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAFE016A4CF for ; Sat, 12 Feb 2005 22:00:28 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C78C143D5A for ; Sat, 12 Feb 2005 22:00:27 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1CM0NeL052288; Sun, 13 Feb 2005 00:00:23 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 56995-05; Sun, 13 Feb 2005 00:00:23 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1CM0M28052285 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 Feb 2005 00:00:23 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j1CM0QLt013468; Sun, 13 Feb 2005 00:00:26 +0200 (EET) (envelope-from ru) Date: Sun, 13 Feb 2005 00:00:20 +0200 From: Ruslan Ermilov To: Mathew Kanner Message-ID: <20050212220020.GD44342@ip.net.ua> References: <20050212145501.GG5488@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="imjhCm/Pyz7Rq5F2" Content-Disposition: inline In-Reply-To: <20050212145501.GG5488@cnd.mcgill.ca> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: freebsd-current@FreeBSD.org Subject: Re: cross platform X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 22:00:28 -0000 --imjhCm/Pyz7Rq5F2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Mathew, On Sat, Feb 12, 2005 at 09:55:02AM -0500, Mathew Kanner wrote: > Hi All, > I want to get midi working for amd64 and by fixing up the > (kernel) printf directives, I have two stupid question: > - How do I compile a module for a different platform? >=20 Well, you can: cd /usr/src make buildworld TARGET_ARCH=3Damd64 make buildkernel TARGET_ARCH=3Damd64 assuming a module is connected to the build in sys/modules/Makefile. You can save huge time by only building a toolchain: cd /usr/src make kernel-toolchain TARGET_ARCH=3Damd64 make buildkernel TARGET_ARCH=3Damd64 Or, if you want to compile a single module only (and that's the fastest way to cross-build), assuming it's in sys/modules/midi: cd /usr/src make kernel-toolchain TARGET_ARCH=3Damd64 make _obj SUBDIR_OVERRIDE=3Dsys/modules/midi TARGET_ARCH=3Damd64 make _depend SUBDIR_OVERRIDE=3Dsys/modules/midi TARGET_ARCH=3Damd64 make everything SUBDIR_OVERRIDE=3Dsys/modules/midi TARGET_ARCH=3Damd64 > - How do I know which is the right directive? Is this documented > somewhere?=20 >=20 Please see the build(7) manpage, it talks a bit about cross-builds. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --imjhCm/Pyz7Rq5F2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCDnx0qRfpzJluFF4RAliRAJ4gPMFgZCQbMZeLMprgGYLUvvb3AACgkf5V hFzbT8S1h4CuwWXm4pLD7xU= =ZbLH -----END PGP SIGNATURE----- --imjhCm/Pyz7Rq5F2--