Re: 2.5.37+ i386 arch split broke external module builds

David Woodhouse (dwmw2@infradead.org)
Wed, 02 Oct 2002 12:28:03 +0100


alexamici@tiscali.it said:
> in order to access the kernel interfaces, modules that live outside
> the kernel sources were used to only need: CFLAG += -I$(TOPDIR)/
> include

That was broken anyway -- you always got the CFLAGS wrong if you just did
that. The only way that I only of to get the CFLAGS to match the kernel
build reliably is to do something like:

make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules

--
dwmw2

- 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/