From owner-freebsd-questions@FreeBSD.ORG Wed Jan 18 22:39:29 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 263C9106564A for ; Wed, 18 Jan 2012 22:39:29 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id 93A288FC08 for ; Wed, 18 Jan 2012 22:39:28 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id q0IMcuCn065517; Wed, 18 Jan 2012 23:38:56 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id C392A1235F; Wed, 18 Jan 2012 23:38:56 +0100 (CET) Date: Wed, 18 Jan 2012 23:38:56 +0100 From: Roland Smith To: Christer Solskogen Message-ID: <20120118223856.GB14760@slackbox.erewhon.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LpQ9ahxlCli8rRTG" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Mailing List Subject: Re: Cross building FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2012 22:39:29 -0000 --LpQ9ahxlCli8rRTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 18, 2012 at 01:40:02PM +0100, Christer Solskogen wrote: > Hi! >=20 > I've just installed FreeBSD 9.0-RELEASE on my Mac Mini G4 (powerpc) - > Can I use my other, and much faster, machine(amd64) to compile world > and kernel to either populate /usr/obj or to generate base.txz, and > kernel.txz? It should be possible. See e.g. this article: http://bsdimp.blogspot.com/2006/09/cross-building-freebsd.html You do have to look up what the correct values of TARGET and TARGET_ARCH are on powerpc. IIRC, the G4 is 32-bit. So according to running 'make target' in /usr/src, it should be TARGET=3D"powerpc" and TARGET_ARCH=3D"powerpc". If you use the DESTDIR variable on the build command line, you can put the generated world and kernel in a separate directory, the contents of which y= ou can then copy (e.g. with tar|nc or with rsync) to /usr/obj on the Mac Mini.= =20 Personally, 9.0 is the first release where I haven't bothered to build a custom kernel, because the GENERIC kernel seems to have everything I need built-in or available as a module. And neither have I bothered yet with building a custom world.=20 Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --LpQ9ahxlCli8rRTG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk8XSgAACgkQEnfvsMMhpyVtWgCePhgCLG4msyEQ3/JqyH5p4lfq 5kUAn0ELK9DblgYW3iXKj6bIRbCVTmN3 =ssuP -----END PGP SIGNATURE----- --LpQ9ahxlCli8rRTG--