From owner-freebsd-arch Sat Jun 23 0:17:31 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 201B637B408 for ; Sat, 23 Jun 2001 00:17:27 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id RAA11500; Sat, 23 Jun 2001 17:17:19 +1000 Date: Sat, 23 Jun 2001 17:15:27 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Warner Losh Cc: arch@FreeBSD.ORG Subject: Re: Proposed sys/compile change In-Reply-To: <200106221917.f5MJHZV76094@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 22 Jun 2001, Warner Losh wrote: > There was a thread in hackers@ that suggested that someone put > together patches to move the compile area to sys/compile/MACHINE or > sys/MACHINE/compile. I chose the latter since it is more orthogonal, > imho, and similar to how otherbsd has done it. I generally reject the > former since it uglifies things, imho, and has less going for it. I would prefer to use the canonical place in the object tree: /usr/obj/usr/src/sys/${MACHINE}/conf (with adjustments for the obj and src trees not being in the usual places). The main problem with this is that config files in sys/${MACHINE}/conf are not directories, so things like `make objlink' and not using a separate object directory wouldn't work right. > Index: sys/conf/Makefile.alpha > =================================================================== > RCS file: /home/imp/FreeBSD/CVS/src/sys/conf/Makefile.alpha,v > retrieving revision 1.102 > diff -u -r1.102 Makefile.alpha > --- sys/conf/Makefile.alpha 2001/06/13 10:58:28 1.102 > +++ sys/conf/Makefile.alpha 2001/06/22 19:01:39 > @@ -29,7 +29,7 @@ > .if exists(./@/.) > S= ./@ > .else > -S= ../.. > +S= ../../.. > .endif > .endif > M= ${MACHINE_ARCH} You can prepare for putting things in the obj tree by changing config(8) to generate `@' (a symlink which points to the sys directory via an absolute path) and changing kernel Makefiles to use `@' instead of $S and not have the above ifdef. This method is already used for modules (except `@' is generated by kmod.mk in a less reliable way than config(8) can do). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message