Re: Dealing with 2.5.x subarch headers

Sam Ravnborg (sam@ravnborg.org)
Wed, 15 Jan 2003 17:15:04 +0100


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/