Re: 2.5.37+ i386 arch split broke external module builds

From: David Woodhouse (dwmw2@infradead.org)
Date: Wed Oct 02 2002 - 06:28:03 EST


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/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:33 EST