From owner-freebsd-arm@FreeBSD.ORG Sun Jun 22 15:58:32 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C44D64E for ; Sun, 22 Jun 2014 15:58:32 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5295D2056 for ; Sun, 22 Jun 2014 15:58:31 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Wyk9w-000N52-DX; Sun, 22 Jun 2014 15:58:24 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s5MFwKLr001310; Sun, 22 Jun 2014 09:58:20 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18BD1KaTQpumX9AtquJZBJb Subject: Re: build world cross compile From: Ian Lepore To: falcon17@hushmail.com In-Reply-To: <20140622115633.E847320185@smtp.hushmail.com> References: <20140622115633.E847320185@smtp.hushmail.com> Content-Type: text/plain; charset="us-ascii" Date: Sun, 22 Jun 2014 09:58:19 -0600 Message-ID: <1403452699.20883.290.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2014 15:58:32 -0000 On Sun, 2014-06-22 at 04:56 -0700, falcon17@hushmail.com wrote: > I would like to build 10-STABLE for arm on my amd64. I found some > instructions here > -https://wiki.freebsd.org/A_Brief_Guide_To_Cross_Compiling_FreeBSD(i > assume the third CPUTYPE example should be KERNCONF instead?) > all looks good, except that make.conf and src.conf examples do not say > a peep about arm! What are the right way of specifying these targets? > Do I need to build a special compiler before starting? > Thanks! Assuming that your /etc/make.conf and src.conf are empty, all you need to do to crossbuild for arm is: make builworld TARGET_ARCH=arm make buildkernel TARGET_ARCH=arm KERNCONF=whatever Use armv6 for the target arch if the target is a v6 or v7 chipset. There's no need to set CPUTYPE at all. -- Ian