From owner-freebsd-arm@freebsd.org Sun Jul 19 16:27:40 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24D7A9A53A1 for ; Sun, 19 Jul 2015 16:27:40 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D788E1A74 for ; Sun, 19 Jul 2015 16:27:39 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t6JGRNlg081118 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 19 Jul 2015 09:27:23 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t6JGRNwn081117; Sun, 19 Jul 2015 09:27:23 -0700 (PDT) (envelope-from jmg) Date: Sun, 19 Jul 2015 09:27:23 -0700 From: John-Mark Gurney To: Leonardo Fogel Cc: "DanielO'Connor" , freebsd-arm Subject: Re: How to Xbuild to BBB? Message-ID: <20150719162723.GR8523@funkthat.com> References: <1437313072.79524.YahooMailBasic@web120803.mail.ne1.yahoo.com> <1437314010.63166.YahooMailBasic@web120804.mail.ne1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437314010.63166.YahooMailBasic@web120804.mail.ne1.yahoo.com> X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Sun, 19 Jul 2015 09:27:24 -0700 (PDT) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2015 16:27:40 -0000 Leonardo Fogel wrote this message on Sun, Jul 19, 2015 at 06:53 -0700: > Actually, I've run: > > $ env MAKEOBJDIRPREFIX= make buildenv ... > $ env MAKEOBJDIRPREFIX= make kernel-toolchain ... > > Turn off computer... The following day, turn on computer: > > $ env MAKEOBJDIRPREFIX= make buildenv ... > $ env MAKEOBJDIRPREFIX= make buildkernel ... > > Turn off... Turn on: > > $ env MAKEOBJDIRPREFIX= make buildenv ... > $ env MAKEOBJDIRPREFIX= make installkernel ... > > I think this is worth mentioning, because I don't know how buildenv works. the buildenv steps shouldn't be necessary... buildenv is only useful if you want to cross build a specific binary, such as rebuilding ntpd w/o building the entire world (and assuming you already have toolchain built)... The targets kernel-toolchain, buildkernel, and installkernel will do the correct cross build if TARGET_ARCH is specified (the other world targets also do the correct thing)... It's probably confusing that buildenv is one of the first targets listed in build(7)... Looks like we need to be more explicit about this, and that buildworld and friends are already support cross building... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."