[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: Re: Bug#270299: kernel-headers-2.6.8-1: missing headers drm.h and drm_proc.h needed for building radeon modules.]



On Wed, 2004-09-15 at 15:15, Matthew Tippett wrote:
G'Day - (as an Aussie myself :).

Yes,

That is correct.  We should be using our own drm.h that we build our 
other items against.  This will be fixed in a future release.  For 
the moment, you are installing it in the same way that I do.
[...]

I have just made these build against both 2.6.8-1-k7 and 2.4.27-1-k7
kernel headers by making the following changes to
/usr/src/modules/fglrx-4.3.0-3.12.0;

1) edit make.sh and change;

  drmincludes=${KERNEL_PATH}/drivers/char/drm

to;

  drmincludes=${current_wd}

2) copy drm.h, drm_os_linux.h, drmP.h, and drm_proc.h from
/usr/src/kernel-source-2.6.8-1/drivers/char/drm/ into
/usr/src/modules/fglrx-4.3.0-3.12.0

I'm yet to verify that the generated modules work OK, but I at least
have nice debs now :-). This could be a simple fix for the next release
to make it build OK against headers only.

Note that during the build stuff from make.sh flashes by that suggests
it tries to figure out if the headers are OK, with things like;
"skipping patch for 'drmP.h', not needed". This suggests make.sh is an
abortion that can be flushed after decent drm headers are included.

-- 
Donovan Baarda <abo at minkirri dot apana dot org dot au>
http://minkirri.apana.org.au/~abo/