From owner-freebsd-current Thu Jan 30 13:31:54 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 868D937B401; Thu, 30 Jan 2003 13:31:52 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD6243FA3; Thu, 30 Jan 2003 13:31:51 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h0ULVcMW077659; Thu, 30 Jan 2003 13:31:38 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id h0ULVcVL044368; Thu, 30 Jan 2003 13:31:38 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6/Submit) id h0ULVc5C044367; Thu, 30 Jan 2003 13:31:38 -0800 (PST) (envelope-from marcel) Date: Thu, 30 Jan 2003 13:31:38 -0800 From: Marcel Moolenaar To: "M. Warner Losh" Cc: jmallett@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Patch to teach config(8) about "platforms". Message-ID: <20030130213138.GA44153@dhcp01.pn.xcllnt.net> References: <20030128235528.GA844@athlon.pn.xcllnt.net> <20030128160936.A4252@FreeBSD.org> <20030129004006.GA945@athlon.pn.xcllnt.net> <20030130.100957.06950735.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030130.100957.06950735.imp@bsdimp.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 30, 2003 at 10:09:57AM -0700, M. Warner Losh wrote: > In message: <20030129004006.GA945@athlon.pn.xcllnt.net> > Marcel Moolenaar 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, it has a > common set of mips include files/code, etc in src/sys/arch/mips > Forcing MACHINE_ARCH to be mips in both proved too problematic. Yes. I mentioned this to Juli and specifically asked if she was not going to do that. I can't recall an explicit answer. I think it was implied in the discussion at that time that it was not an option. From your other reply: > Keep in mind that for mips you have two different architectures: > mipsel and mips(eb). I keep harping on this because you cannot run > mipsel binaries on mipseb kernels (please ignore that some mips cpu > can, in theory do this, since no free OS has climbed that mountain). > You'll need different binaries (packages) for mips and mipsel. Good point. The toolchain configuration is related to this. We now select on MACHINE_ARCH, which would not capture the endianness if it was encoded in MACHINE. Granted, we could include MACHINE in the selection of the BFD and code generator files, but the patch did not include that. I still don't reject MIPS as the architecture and have the variants as sub-concepts, but we do need to discuss in that case how it's going to work. The packaging automaticly adds to the dimension of the problem. If variants have the same endianness and share a common runtime, you would like to be able to share packages between the variants. But if the endianness differs or the runtime is different, this cannot happen. If in both cases we talk about platform then I think our abstraction is inadequate. Given that NetBSD is known to be able to run on your toaster (it would on mine if I had one :-), it would be a mistake to reject their mechanism without fully understanding what it is we're rejecting. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message