On Mon, Sep 08, 2003 at 04:58:22PM +0100, Paul Nasrat wrote: > I've been doing some work building drivers using XFree86 sdk, and > here are a few things I've noticed.
Hello, ... I have been working on this selfsame thing, but alas have not had time to do much work on this, but i will look at it again this WE. > In order to package a driver snapshot, I had to modify the INCLUDES to > be an absolute path as I wasn't doing it within the sdk tree. Mmm. The SDK as it currently stands doesn't survive well if you move it around, and the selfsame problem happens if you use drivers sources from another source than the SDK. From the nightly drivers CVS snapshots for example. > I was wondering would it be worth having a variable that gets expanded > by imake to the XFree86 sdk root so rather than having > > #if defined(XF86DriverSDK) > INCLUDES = -I. -I../../include > #else > ... standard includes > > it would be better to say something along the lines: > > INCLUDES = -I. -I$(XF86DriverSDKTop)/include Mmm, Yep, that would be nice, especially if you can later override the XF86DriverSDKTop variable to build anywhere. > this would make it easier for packagers as they can just set the value > with a define rather than having to patch each driver they want to build > out of tree (eg for testing newer driver versions). > > The imake command I used (I built the ati driver amongst others) was: Did you use the CVS ati driver with the CVS SDK, or the CVS ati driver with the 4.3.0 SDK ? > imake -I/usr/X11R6/lib/Server/config/cf -DUseInstalled -DXF86DriverSDK Yep, this is something i was aiming at. More of this this weekend. > Also I've been experimenting with building some larger projects which > tend to need a full XFree86 source tree with the sdk. This is going > quite well, but there is some way to go before building a whole Xserver > (eg vnc) is possible. What is the general feeling about enriching the > XFree86 SDK to more than just graphics drivers? I think egbert is working on a redesigned SDK, maybe such projects would fall better in such a framework. I myself am not so favorable to it, unless we build a two level SDK. One would be called DDK and be only for drivers, the standard SDK would build depend on it and provide functionality for more stuff. The Driver SDK needs to be kept small enough to enable people to easily rebuild drivers with it. Friendly, Sven Luther _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel