From owner-freebsd-arch Tue Jan 23 22:59:45 2001 Delivered-To: freebsd-arch@freebsd.org Received: from harmony.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 967E437B69B for ; Tue, 23 Jan 2001 22:59:27 -0800 (PST) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.11.1) with ESMTP id f0O6xJ955490; Tue, 23 Jan 2001 23:59:19 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200101240659.f0O6xJ955490@harmony.village.org> To: "Justin T. Gibbs" Subject: Re: Local driver include files. Cc: arch@FreeBSD.ORG In-reply-to: Your message of "Tue, 23 Jan 2001 12:10:12 MST." <200101231910.f0NJACs85801@aslan.scsiguy.com> References: <200101231910.f0NJACs85801@aslan.scsiguy.com> Date: Tue, 23 Jan 2001 23:59:19 -0700 From: Warner Losh Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Short version: I like it... Long version: In message <200101231910.f0NJACs85801@aslan.scsiguy.com> "Justin T. Gibbs" writes: : Well, it was. I was able to build a kernel with the following : modifications: I think this might work. Did you change all "local" includes as well? If so, did you also compile the modules? Did that work too? This would make things easier to share with other systems. But only if those other systems also allow that to happen. I don't think that NetBSD's and OpenBSD's build system would allow it. If you wanted to support them, you'll need to your changes included there. From a asthetic point of view, I like this idea. As long as the include files are knowable, this makes it easier to maintain. And a little easier to explain to other folks. It would also make things more "local" and improve "locality of reference". It wouldn't help with the "where are the bus interface files located" problem that we also have (ok, it isn't a big problem), but you'd likely need ifdefs for that. Or maybe not since that sort of thing tends to be encapsulated in separate glue files for OSes or in interesting tricks done in include files. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message