From owner-freebsd-questions@FreeBSD.ORG Thu Jan 19 06:38:01 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 C4D7C106566C for ; Thu, 19 Jan 2012 06:38:01 +0000 (UTC) (envelope-from christer.solskogen@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5A9E78FC0C for ; Thu, 19 Jan 2012 06:38:00 +0000 (UTC) Received: by wgbgn7 with SMTP id gn7so5155173wgb.31 for ; Wed, 18 Jan 2012 22:38:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=u3kdsqhCr18f3fkwyrEHyLSOXbmvMmI1hw5jqKMomzQ=; b=lf3gDxxwFx/NFogfrmrcvfNeyLkZou3DMeGm6xxvGMP28Wsv2Qncfh/5vFiFd+Mhrc GtkRrDTkPBwByJtpE5HrPXp5A1+OFMP9ZZWlcE9AYXBpo7RP4+oWYY4O7kk4Nu7RZILo 2HlKw53CAXtIgv3K/ynYcMvB81yPvv7qjYa4o= Received: by 10.180.101.101 with SMTP id ff5mr36511864wib.14.1326955079307; Wed, 18 Jan 2012 22:37:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.142.20 with HTTP; Wed, 18 Jan 2012 22:37:38 -0800 (PST) In-Reply-To: <20120118223856.GB14760@slackbox.erewhon.net> References: <20120118223856.GB14760@slackbox.erewhon.net> From: Christer Solskogen Date: Thu, 19 Jan 2012 07:37:38 +0100 Message-ID: To: Roland Smith Content-Type: text/plain; charset=UTF-8 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: Thu, 19 Jan 2012 06:38:01 -0000 On Wed, Jan 18, 2012 at 11:38 PM, Roland Smith wrote: > On Wed, Jan 18, 2012 at 01:40:02PM +0100, Christer Solskogen wrote: >> Hi! >> >> 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 > Hm, that didn't help me much. I've already built both the kernel and world on my amd64 machine. > 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="powerpc" and TARGET_ARCH="powerpc". > There is no reason to add TARGET_ARCH when TARGET==TARGET_ARCH :) > 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 you > can then copy (e.g. with tar|nc or with rsync) to /usr/obj on the Mac Mini. > Well, that is the question. How to copy those file over. Files have special chflags (for instance in /lib) > 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. > I agree. But there tend to be some erratas when the time comes. (And there is no freebsd-update on ppc) And building on a PPC is a pain :) -- chs,