Date: Sat, 16 Oct 1999 12:58:34 +0200 From: Marcel Moolenaar <marcel@scc.nl> To: arch@freebsd.org Subject: Re: make world issues Message-ID: <38085A5A.9FB6FF97@scc.nl> References: <380716A4.20961526@scc.nl>, <19991016075251.D67481@freebsd1.cimlogic.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38085A5A.9FB6FF97>