From owner-freebsd-arch@FreeBSD.ORG Fri Apr 1 20:37:35 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB9F016A4CF for ; Fri, 1 Apr 2005 20:37:35 +0000 (GMT) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63BCA43D4C for ; Fri, 1 Apr 2005 20:37:35 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 14325 invoked from network); 1 Apr 2005 20:37:35 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 1 Apr 2005 20:37:34 -0000 Received: from [10.50.41.231] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j31KbS12035272; Fri, 1 Apr 2005 15:37:29 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-arch@FreeBSD.org Date: Fri, 1 Apr 2005 13:43:56 -0500 User-Agent: KMail/1.6.2 References: <20050331.225633.125544617.imp@bsdimp.com> In-Reply-To: <20050331.225633.125544617.imp@bsdimp.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <200504011343.56385.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: arch@FreeBSD.org Subject: Re: small change to config X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2005 20:37:36 -0000 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 <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org