From owner-freebsd-arch Sat Oct 16 4:24:10 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 6C12A14A25 for ; Sat, 16 Oct 1999 04:24:07 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id NAA21443 for ; Sat, 16 Oct 1999 13:24:07 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id NAA57198 for freebsd-arch@freebsd.org; Sat, 16 Oct 1999 13:24:06 +0200 (MET DST) Received: from mail.scc.nl (node1374.a2000.nl [62.108.19.116]) by hub.freebsd.org (Postfix) with ESMTP id 87B7B14A25 for ; Sat, 16 Oct 1999 04:23:50 -0700 (PDT) (envelope-from freebsd-arch@scc.nl) Received: (from daemon@localhost) by mail.scc.nl (8.9.3/8.9.3) id MAA46849 for arch@FreeBSD.org; Sat, 16 Oct 1999 12:58:42 +0200 (CEST) (envelope-from freebsd-arch@scc.nl) Received: from GATEWAY by dwarf.hq.scc.nl with netnews for arch@FreeBSD.org (arch@FreeBSD.org) To: arch@freebsd.org Date: Sat, 16 Oct 1999 12:58:34 +0200 From: Marcel Moolenaar Message-ID: <38085A5A.9FB6FF97@scc.nl> Organization: SCC vof Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <380716A4.20961526@scc.nl>, <19991016075251.D67481@freebsd1.cimlogic.com.au> Subject: Re: make world issues Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Birrell wrote: > > On Fri, Oct 15, 1999 at 01:57:24PM +0200, Marcel Moolenaar wrote: > > D2. > > introduce TARGET_ARCH and TARGET_OBJ to specify for which architecture > > and object format we are building (resp.). MACHINE_ARCH and MACHINE_OBJ > > will be set to reflect the current (ie running) environment. This should > > help fix P3. > > 'make' knows about MACHINE and MACHINE_ARCH. 'sysctl' can tell us what > the kernel thinks it is. We should stick to using these. Exactly. We should therefore not change the semantics of the variables by using them to specify the machine we are building for, instead of the machine we are running on (compiled for). If there's one thing you need to seperate during cross-compilation, then it's the machine you're running on and the machine you're building for. > > D4. > > allow concurrent cross-builds by defining a TRGTROOT under OBJROOT using > > TARGET_ARCH and TARGET_OBJ. If, for example, OBJROOT=/usr/obj, > > TARGET_ARCH=i386 and TARGET_OBJ=elf, then TGTROOT can be defined as > > cross-build for the Alpha can be performed at the same time > > (TRGTROOT=/usr/obj/alpha/elf). This may help in fixing P9 and may be > > advanteous in making snapshots and releases on build-machines. > > To cross-build, I don't need to set so many things. On i386, I just: > > export MACHINE=alpha > export MACHINE_ARCH=alpha > make world I'm talking concurrent cross-builds here. This means: make -j4 TARGET_ARCH=mips world & make -j4 TARGET_ARCH=alpha world & -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD project mailto:marcel@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message