From owner-freebsd-arch@FreeBSD.ORG Sun Feb 13 23:11:07 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E30216A4CE for ; Sun, 13 Feb 2005 23:11:07 +0000 (GMT) Received: from mail27.sea5.speakeasy.net (mail27.sea5.speakeasy.net [69.17.117.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id D669B43D45 for ; Sun, 13 Feb 2005 23:11:06 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 10475 invoked from network); 13 Feb 2005 23:11:06 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail27.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 13 Feb 2005 23:11:06 -0000 Received: from hydrogen.funkthat.com (xeryjg@localhost.funkthat.com [127.0.0.1])j1DNB5GH005148; Sun, 13 Feb 2005 15:11:06 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id j1DNB5vt005147; Sun, 13 Feb 2005 15:11:05 -0800 (PST) Date: Sun, 13 Feb 2005 15:11:05 -0800 From: John-Mark Gurney To: Ruslan Ermilov Message-ID: <20050213231105.GC40468@funkthat.com> Mail-Followup-To: Ruslan Ermilov , freebsd-arch@freebsd.org References: <20050213001752.GA40468@funkthat.com> <21203.1108255197@critter.freebsd.dk> <20050213093700.GF88292@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050213093700.GF88292@ip.net.ua> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 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 cc: freebsd-arch@freebsd.org Subject: Re: buildenv target X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 23:11:07 -0000 Ruslan Ermilov wrote this message on Sun, Feb 13, 2005 at 11:37 +0200: > Hi John-Mark, > > On Sun, Feb 13, 2005 at 01:39:57AM +0100, Poul-Henning Kamp wrote: > > Sounds like a good addition. > > I missed the original post, so replying here. I very much like > and support the idea. About the implementation, for the standard > case of root doing this, the standard ~root/.cshrc unfortunately > resets PATH, making this useless pretty useless. So I suggest > to use "sh" here. Another minor buglet is that the output for > pc98 will be mangled, "pc98:i386". Here's my version, simplified > and fixed: > > %%% > Index: Makefile.inc1 > =================================================================== > RCS file: /home/ncvs/src/Makefile.inc1,v > retrieving revision 1.473 > diff -u -p -r1.473 Makefile.inc1 > --- Makefile.inc1 20 Jan 2005 10:49:02 -0000 1.473 > +++ Makefile.inc1 13 Feb 2005 01:20:00 -0000 > @@ -457,6 +457,10 @@ WMAKE_TGTS+= build32 > buildworld: ${WMAKE_TGTS} > .ORDER: ${WMAKE_TGTS} > > +buildenv: > + @echo Entering world for ${TARGET_ARCH}:${TARGET} > + @${WMAKEENV} sh || true > + > TOOLCHAIN_TGTS= ${WMAKE_TGTS:N_depend:Neverything} > toolchain: ${TOOLCHAIN_TGTS} > kernel-toolchain: ${TOOLCHAIN_TGTS:N_includes:N_libraries} Hmmm.. wierd, I thought I tried this, but I kept getting i386, but I just tried it here, and works fine... Unless you object, I'll use /bin/sh and /usr/bin/true, just incase the path is a bit messed up.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."