small change to config

John Baldwin jhb at FreeBSD.org
Fri Apr 1 12:37:36 PST 2005


On Friday 01 April 2005 12:56 am, M. Warner Losh wrote:
> I'd like to make a small change to config, and use that change to
> improve the pc98 port.
>
> Right now, the machine line in config looks like:
>
> 	machine pc98
>
> This causes compile/FOO/machine to be linked to pc98/include.  We have
> similar logic for modules.
>
> NetBSD's machine line, on some architecutres, has two arguments, which
> correspond to $MACHINE and $MACHINE_ARCH respectively.  I'd like to
> pull this concept into FreeBSD.  The only machine that this impacts is
> pc98.  pc98 config files would change to:
>
> 	machine pc98 i386
>
> config creates the machine link, as now.  In addition, a link is made
> from i386 to sys/i386/include.  This allows the majority of the .h
> files that are shared amoung ports that have the same CPU to live in
> one place, and the machine/foo.h files with minor tweaks.
>
> I'd like to move to this model on FreeBSD, and use it to reduce the
> number of #ifdef PC98 in the tree, while allowing a cleaner separation
> of pc98 from i386.  This should reduce the maintanence impact of
> having pc98 in the tree, as well as being cleaner.

Sounds ok to me.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-arch mailing list