Date: Sat, 23 Jun 2001 17:15:27 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Warner Losh <imp@harmony.village.org> Cc: arch@FreeBSD.ORG Subject: Re: Proposed sys/compile change Message-ID: <Pine.BSF.4.21.0106231625530.46152-100000@besplex.bde.org> In-Reply-To: <200106221917.f5MJHZV76094@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106231625530.46152-100000>
