Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 15:46:59 -0800
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        Juli Mallett <jmallett@FreeBSD.org>
Cc:        current@FreeBSD.org, Peter Wemm <peter@FreeBSD.org>
Subject:   Re: Patch to teach config(8) about "platforms".
Message-ID:  <20030126234659.GB61926@dragon.nuxi.com>
In-Reply-To: <20030125153116.A25743@FreeBSD.org>
References:  <20030125153116.A25743@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 25, 2003 at 03:31:16PM -0800, Juli Mallett wrote:
> This patch is needed for the MIPS port's infrastructure, and will be
> needed for the PowerPC one, as given ports may support any number of
> platforms, on those architectures (and arguably, the same applies to
> i386 vs. pc98, but historically...).  What it does is it sets up a
> build-time (and install-time, given right MACHINE_ARCH vs. MACHINE)
> <platform> include directory as an analogue to <machine>, where we
> need it.  For kernels with a "platform" setting, it also sets the
> appropriate option for it.  For example "platform sgimips" implies
> "options SGIMIPS".  Below are patches to makefile glue and config(8)
> itself.
> For clarity, this is used in cases where the platform may define its
> own values that a header needs, and as such, you might see something
> in <machine/endian.h> like:
> #include <platform/endian.h>

I may not be fully following you, but I'd like to keep such changes down
to what is absolutely necessary.  Can you show your GENERIC sgimips
config?  Also show an example of where one would need a platform/endian.h
on both powerpc (which is far enough along to discuss this need) and mips
(which I think we should wait later until the port is officially in CVS).
I have a guess, but I want to make absolutely sure.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030126234659.GB61926>