From owner-freebsd-arch Fri Oct 15 15:20:38 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 7A88414D71 for ; Fri, 15 Oct 1999 15:20:33 -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 AAA07710 for ; Sat, 16 Oct 1999 00:20:32 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id AAA51518 for freebsd-arch@freebsd.org; Sat, 16 Oct 1999 00:20:31 +0200 (MET DST) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (Postfix) with ESMTP id 734DB14D71 for ; Fri, 15 Oct 1999 15:20:18 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.3/8.9.1) id IAA78857; Sat, 16 Oct 1999 08:23:23 +1000 (EST) (envelope-from jb) Date: Sat, 16 Oct 1999 08:23:23 +1000 From: John Birrell To: Warner Losh Cc: John Birrell , Marcel Moolenaar , arch@freebsd.org Subject: Re: make world issues Message-ID: <19991016082323.F67481@freebsd1.cimlogic.com.au> References: <19991016075251.D67481@freebsd1.cimlogic.com.au> <380716A4.20961526@scc.nl> <19991016075251.D67481@freebsd1.cimlogic.com.au> <199910152211.QAA66179@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <199910152211.QAA66179@harmony.village.org>; from Warner Losh on Fri, Oct 15, 1999 at 04:11:12PM -0600 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Oct 15, 1999 at 04:11:12PM -0600, Warner Losh wrote: > In message <19991016075251.D67481@freebsd1.cimlogic.com.au> John Birrell writes: > : 'make' knows about MACHINE and MACHINE_ARCH. 'sysctl' can tell us what > : the kernel thinks it is. We should stick to using these. > > When I added TARGET_ARCH and TARGET I did it so that a make could be > built that hard wired MACHINE and MACHINE_ARCH in the right way so > that the tools could be built. Right now w/o them you have to have > your own, hand built cross compile tools. I don't. I just build a cross-compiler and a cross-assembler during the host `make world'. All the other tools are just the normal host tools (with the extra BFD formats if they are binutils tools). If sys.mk detects that I am cross-compiling it munges the things that are required to get the binutils programs to use the desired target format. > > : 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 > : > : There are a few commits I will make RSN to allow others to do this too. > > Hmmmm, I'd be keen on reviewing them. I'll package them up when I get a chance. I need to send the gcc/egcs makefile hierarchy to David O'Brien for review anyway. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ john.birrell@opendirectory.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message