Aaron Lehmann wrote:

> Hrm, well, no wonder.
> 
>       #include <linux/config.h>
> 
> I had been telling it my linux source was in /home/aaronl/src/linux.
> So that would have expanded to /home/aaronl/src/linux/linux, which is
> nonexistant. It probably used whatever's in /usr/include/linux
> instead.
> 
> Passing --with-linux-source=/home/aaronl/src worked. IMHO this is bad
> design, because it asks for the dir _above_ the linux source tree and
> expects the toplevel dir of the linux tree to be named "linux". I
> think this argument should be passed the full path to the linux source
> tree instead of the dir above that. The configure --help text is
> ambiguous at best here/.

Eh?  You *are* supposed to pass the path to the linux source tree.

In your case, if you have a full linux source tree under 
/home/aaronl/src/linux (this means for example that the MAINTAINERS
file resides at /home/aaronl/src/linux/MAINTAINERS), then you are
supposed to run configure with the argument
  --with-linux-source=/home/aaronl/src/linux

Then, the Makefile will append '/include' and pass the option
-I /home/aaronl/src/linux/include to the compiler.

The #include statement above will then find the file
/home/aaronl/src/linux/include/linux/config.h
like it is supposed to ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  [EMAIL PROTECTED]

Reply via email to