Re: Dealing with 2.5.x subarch headers

From: Sam Ravnborg (sam@ravnborg.org)
Date: Wed Jan 15 2003 - 11:15:04 EST


On Wed, Jan 15, 2003 at 11:48:14AM +0100, Brice Goglin wrote:
> Hi,
>
> I am working on a module for 2.5.x. My module requires
> something like irq_vectors.h.
> Due do previous messages about this and John Stultz'
> subarch cleanup patch (merged in 2.5.53), I finally
> added "-Iinclude/asm/mach-default" to gcc options.

You should avoid introducing all this.
Do the following

$ make -C path/to/kernel/src SUBDIRS=$PWD modules

That will do the trick, and you include the .config for the selected kernel.

        Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:54 EST