> #define __KERNEL__
> #include <linux/config.h> (ok)
> #ifdef CONFIG_MODVERSIONS
> #define MODVERSIONS
> #include <linux/modversions.h> (ok)
> #endif
No, this is not OK. Add a simple Makefile like the normal kernel ones
and do something like
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd`
It's the only way to get the correct gcc options &c.
-- 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/