From owner-freebsd-current Sun Jan 26 15:48:17 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 499F737B401; Sun, 26 Jan 2003 15:48:16 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id A479043F3F; Sun, 26 Jan 2003 15:48:15 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id h0QNmFIx062082; Sun, 26 Jan 2003 15:48:15 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.6/Submit) id h0QNkxY2062061; Sun, 26 Jan 2003 15:46:59 -0800 (PST) Date: Sun, 26 Jan 2003 15:46:59 -0800 From: "David O'Brien" To: Juli Mallett Cc: current@FreeBSD.org, Peter Wemm Subject: Re: Patch to teach config(8) about "platforms". Message-ID: <20030126234659.GB61926@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org Mail-Followup-To: David O'Brien , Juli Mallett , current@FreeBSD.org, Peter Wemm References: <20030125153116.A25743@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030125153116.A25743@FreeBSD.org> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 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 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) > include directory as an analogue to , 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 like: > #include 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