Re: Patch to teach config(8) about "platforms".

2003-01-30 Thread Terry Lambert
"M. Warner Losh" wrote: > In message: <[EMAIL PROTECTED]> > Marcel Moolenaar <[EMAIL PROTECTED]> writes: > : Alpha has multiple platforms, but it has not been made explicit. > : pc98 is an alternate platform for i386. And we have PowerPC and > : mips. > > Keep in mind that for mips you

Re: Patch to teach config(8) about "platforms".

2003-01-30 Thread Marcel Moolenaar
On Thu, Jan 30, 2003 at 10:09:57AM -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Marcel Moolenaar <[EMAIL PROTECTED]> writes: > : general theme. Thus (in this case), ARCH=mips and MACH=algor or > : MACH=sgimips... > > Actually, NetBSD uses MACHINE_ARCH=mipsel for lit

Re: Patch to teach config(8) about "platforms".

2003-01-30 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Marcel Moolenaar <[EMAIL PROTECTED]> writes: : Alpha has multiple platforms, but it has not been made explicit. : pc98 is an alternate platform for i386. And we have PowerPC and : mips. Keep in mind that for mips you have two different architectures: mip

Re: Patch to teach config(8) about "platforms".

2003-01-30 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Marcel Moolenaar <[EMAIL PROTECTED]> writes: : general theme. Thus (in this case), ARCH=mips and MACH=algor or : MACH=sgimips... Actually, NetBSD uses MACHINE_ARCH=mipsel for little endian machines and MACHINE_ARCH=mips for big endian machines. However,

Re: Patch to teach config(8) about "platforms".

2003-01-30 Thread M. Warner Losh
Any reason why the NetBSD approach to this problem won't work? IMHO, the meta-port should drive the derived ports. The static parts of the system are radically different between the different mips platforms. Using the endian.h stuff as an example: src/sys/arch/arc/include/endian.h is just "#inc

Re: Patch to teach config(8) about "platforms".

2003-01-30 Thread John Baldwin
On 30-Jan-2003 Benno Rice wrote: > On Thu, 2003-01-30 at 15:57, David O'Brien wrote: >> On Tue, Jan 28, 2003 at 11:46:47PM -0800, Marcel Moolenaar wrote: >> > I would not introduce a , but rather >> > . The reason for this is that the >> > /usr/include/platform directory is only needed on powerpc

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Benno Rice
On Thu, 2003-01-30 at 15:57, David O'Brien wrote: > On Tue, Jan 28, 2003 at 11:46:47PM -0800, Marcel Moolenaar wrote: > > I would not introduce a , but rather > > . The reason for this is that the > > /usr/include/platform directory is only needed on powerpc and mips, > > which seems to indicate th

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Benno Rice
On Thu, 2003-01-30 at 15:48, David O'Brien wrote: > On Tue, Jan 28, 2003 at 09:37:16PM -0800, Juli Mallett wrote: > > I've made a note that you don't think my way is optimal. I do, and > > that's that, at this point. No black magic, no convoluted config > > files, etc. Go deal with the ODE confi

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Terry Lambert
David O'Brien wrote: > On Tue, Jan 28, 2003 at 09:37:16PM -0800, Juli Mallett wrote: > > I've made a note that you don't think my way is optimal. I do, and > > that's that, at this point. No black magic, no convoluted config > > files, etc. Go deal with the ODE config and Mach's configuration >

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread David O'Brien
On Tue, Jan 28, 2003 at 11:46:47PM -0800, Marcel Moolenaar wrote: > I would not introduce a , but rather > . The reason for this is that the > /usr/include/platform directory is only needed on powerpc and mips, > which seems to indicate that it should be under . Also, > the use of machine/${variant

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread David O'Brien
On Tue, Jan 28, 2003 at 09:37:16PM -0800, Juli Mallett wrote: > I've made a note that you don't think my way is optimal. I do, and > that's that, at this point. No black magic, no convoluted config > files, etc. Go deal with the ODE config and Mach's configuration > files, I have. Or NetBSD's.

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread David O'Brien
On Tue, Jan 28, 2003 at 08:13:22PM -0500, Mike Barcroft wrote: > Benno Rice <[EMAIL PROTECTED]> writes: > > On Wed, 2003-01-29 at 11:18, Juli Mallett wrote: > > > * De: Juli Mallett <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > > > [ Subjecte: Re: Pa

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Marcel Moolenaar
On Wed, Jan 29, 2003 at 01:28:33PM -0800, Juli Mallett wrote: > > > > I thought the idea was to have machine be usable for platforms, so > > as to have the mapping machine->MACHINE. This makes the keyword > > unusable for handling the pc98 case. I guess I was confused (now > > you know who needs t

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-29 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > On Wed, Jan 29, 2003 at 12:55:30PM -0800, Juli Mallett wrote: > > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-29 ] &

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Marcel Moolenaar
On Wed, Jan 29, 2003 at 12:55:30PM -0800, Juli Mallett wrote: > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-29 ] > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > > If we just make "machine" mean more of what it mean

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-29 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > If we just make "machine" mean more of what it means now, then we're > > set. > > But pc98 needs to be dealt

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Marcel Moolenaar
On Wed, Jan 29, 2003 at 11:55:42AM -0800, Juli Mallett wrote: > > > > What if an architecture doesn't have different platforms. Do we > > want to give a platform name that matches the architecture or > > do we make platform optional? I think I prefer it to be optional. > > This could mean we have

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Juli Mallett
* De: John Baldwin <[EMAIL PROTECTED]> [ Data: 2003-01-29 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > On 29-Jan-2003 Benno Rice wrote: > > On Wed, 2003-01-29 at 18:46, Marcel Moolenaar wrote: > >> On Wed, Jan 29, 2003

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-29 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > On Wed, Jan 29, 2003 at 07:19:38PM +1100, Benno Rice wrote: > > > > Or are you saying that you would prefer to change how the machi

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread John Baldwin
On 29-Jan-2003 Benno Rice wrote: > On Wed, 2003-01-29 at 18:46, Marcel Moolenaar wrote: >> On Wed, Jan 29, 2003 at 05:32:51PM +1100, Benno Rice wrote: >> > > >> > > Agreed. There's an advantage there, but see also my reply to >> > > Juli about the use of "machine" to mean MACHINE_ARCH and the >>

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Marcel Moolenaar
On Wed, Jan 29, 2003 at 07:19:38PM +1100, Benno Rice wrote: > > > The same happens in config(8) where we create a platform link > > in all cases, not just for powerpc and mips. > > Ok, the nice side to having platform/foo.h is that (to go back to the > endian example) you can have machine/endian.

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 11:56:59PM -0800, Juli Mallett wrote: > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > You see how the current approach affects other architectures if you

Re: Patch to teach config(8) about "platforms".

2003-01-29 Thread Benno Rice
On Wed, 2003-01-29 at 18:46, Marcel Moolenaar wrote: > On Wed, Jan 29, 2003 at 05:32:51PM +1100, Benno Rice wrote: > > > > > > Agreed. There's an advantage there, but see also my reply to > > > Juli about the use of "machine" to mean MACHINE_ARCH and the > > > use of "platform" to mean MACHINE. Th

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > You see how the current approach affects other architectures if you > look at the diff for src/sys/conf/kmod.mk. All architectures, > i

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 10:58:53PM -0800, Juli Mallett wrote: > > And no, it wasn't really bikeshedding, it just began to feel that > it was just a matter of "but I think we should go at it from this > angle" when really all I intended to get was whether or not my > code was OK. I fell short ther

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Wed, Jan 29, 2003 at 05:32:51PM +1100, Benno Rice wrote: > > > > Agreed. There's an advantage there, but see also my reply to > > Juli about the use of "machine" to mean MACHINE_ARCH and the > > use of "platform" to mean MACHINE. This I don't find appealing. > > I can see your point here, but

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > On Tue, Jan 28, 2003 at 10:20:52PM -0800, Juli Mallett wrote: > > Sorry if you find it childish to want to move on from that sort >

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 10:20:52PM -0800, Juli Mallett wrote: > > > > Your proposal affects FreeBSD. I'm having a constructive discussion > > about your proposal because I like to understand your point of > > view and tell you mine. Childish behaviour does not impress me. > > In fact it only tells

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Benno Rice
On Wed, 2003-01-29 at 17:25, Marcel Moolenaar wrote: > On Wed, Jan 29, 2003 at 04:56:10PM +1100, Benno Rice wrote: > > > > > > No, I see MACHINE_ARCH implied by where you run config. This seems > > > strange and I'm not completely sure it's a good thing, but > > > MACHINE_ARCH is defined in /sys/$

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Wed, Jan 29, 2003 at 04:56:10PM +1100, Benno Rice wrote: > > > > No, I see MACHINE_ARCH implied by where you run config. This seems > > strange and I'm not completely sure it's a good thing, but > > MACHINE_ARCH is defined in /sys/${ARCH}/include/param.h and > > defining the architecture in the

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > On Tue, Jan 28, 2003 at 09:37:16PM -0800, Juli Mallett wrote: > > > > > but it explcitly means a location, a path. The intr

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 09:37:16PM -0800, Juli Mallett wrote: > > > but it explcitly means a location, a path. The introduction of > > platform is more confusing. First of all it maps to MACHINE, > > while we have the machine keyword mapping to something else. > > MACHINE is a cpp define and (rel

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Benno Rice
On Wed, 2003-01-29 at 16:18, Marcel Moolenaar wrote: > On Tue, Jan 28, 2003 at 08:57:38PM -0800, Juli Mallett wrote: > > > > Yes, you are following me. But also, you mention that "machine" > > as implemented means what I said it means, but there is other > > precident for using it as I say. For

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > On Tue, Jan 28, 2003 at 08:57:38PM -0800, Juli Mallett wrote: > > > > Yes, you are following me. But also, you mention that &qu

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 08:57:38PM -0800, Juli Mallett wrote: > > Yes, you are following me. But also, you mention that "machine" > as implemented means what I said it means, but there is other > precident for using it as I say. For example, BSD/OS uses > "machine sparc" and "options SUN4M". Ne

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > > Good. What is the new paradigm? > > > > As explained, you have a master port, to the architecture, assume that >

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 07:01:58PM -0800, Juli Mallett wrote: > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > > > > We attach lots of meaning to MACHINE. You keep m

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Terry Lambert
Mike Barcroft wrote: > Benno Rice <[EMAIL PROTECTED]> writes: > > I'd also like to point out that PowerPC will benefit greatly from this. > > PowerPC platforms vary wildly in how they do various things (incl. > > endianness in some cases) and so this provides a much cleaner mechanism > > to select

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Mike Barcroft <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > Benno Rice <[EMAIL PROTECTED]> writes: > > On Wed, 2003-01-29 at 11:18, Juli Mallett wrote: > > > * De: Juli Mallet

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > > > We attach lots of meaning to MACHINE. You keep missing that that > > > > is NOT the same as the "machine"

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 06:20:13PM -0800, Juli Mallett wrote: > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > > No, we have not established that. > > > > *s

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > No, we have not established that. > > *sigh* > > Is the problem space 2D or 3D? Define your terms better. I could argue t

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 05:42:59PM -0800, Juli Mallett wrote: > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > On Tue, Jan 28, 2003 at 04:49:55PM -0800, Juli Mallett wrote: >

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > On Tue, Jan 28, 2003 at 04:49:55PM -0800, Juli Mallett wrote: > > > > > So, given that we have MACHINE_ARCH and MACHINE alre

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 04:49:55PM -0800, Juli Mallett wrote: > > > So, given that we have MACHINE_ARCH and MACHINE already to our > > disposal, I don't get the feeling that we are in need to add > > something else because the problem space appears 2D, not 3D. > > > > Right? > > That's what I'm

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Mike Barcroft
Benno Rice <[EMAIL PROTECTED]> writes: > On Wed, 2003-01-29 at 11:18, Juli Mallett wrote: > > * De: Juli Mallett <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > > > In short,

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > But > > that determines what is a link to, and files. that is > > read. So that means that we need to have stubbed in bot

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 04:09:36PM -0800, Juli Mallett wrote: > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > On Tue, Jan 28, 2003 at 03:17:49PM -0800, Juli Mallett wrote:

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Benno Rice
On Wed, 2003-01-29 at 11:18, Juli Mallett wrote: > * De: Juli Mallett <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > In short, platform provides machinery for a single port of FreeBSD > which repr

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Juli Mallett <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] In short, platform provides machinery for a single port of FreeBSD which represents exactly one MACHINE_ARCH to support a numbe of different ha

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > On Tue, Jan 28, 2003 at 03:17:49PM -0800, Juli Mallett wrote: > > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] &

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 03:17:49PM -0800, Juli Mallett wrote: > * De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] > [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > > I just really would like things to be clean, and abstracted, an

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > > I just really would like things to be clean, and abstracted, and not waste > > anyone's time. Why should we have to duplicat

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Marcel Moolenaar
[sorry -- dropping in the middle of the thread] On Tue, Jan 28, 2003 at 12:08:30PM -0800, Juli Mallett wrote: > > This approach is a really bad one architecturally, in my opinion. It means > there is a lot of duplication of what may all be VERY similar, and it means > that if we had say 5 platfo

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Juli Mallett
* De: Takahashi Yoshihiro <[EMAIL PROTECTED]> [ Data: 2003-01-28 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > In article <[EMAIL PROTECTED]> > Juli Mallett <[EMAIL PROTECTED]> writes: > > > For example "platform sg

Re: Patch to teach config(8) about "platforms".

2003-01-28 Thread Takahashi Yoshihiro
In article <[EMAIL PROTECTED]> Juli Mallett <[EMAIL PROTECTED]> writes: > For example "platform sgimips" implies > "options SGIMIPS". Below are patches to makefile glue and config(8) > itself. I think that using '#ifdef ' (like #ifdef PC98) is not a good idea. If it requires, the file should be

Re: Patch to teach config(8) about "platforms".

2003-01-26 Thread Juli Mallett
* De: David O'Brien <[EMAIL PROTECTED]> [ Data: 2003-01-26 ] [ Subjecte: Re: Patch to teach config(8) about "platforms". ] > On Sat, Jan 25, 2003 at 03:31:16PM -0800, Juli Mallett wrote: > > This patch is needed for the MIPS port's infrastructure, and wil

Re: Patch to teach config(8) about "platforms".

2003-01-26 Thread David O'Brien
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 his

Patch to teach config(8) about "platforms".

2003-01-25 Thread Juli Mallett
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-t