Messages in this thread | | | Date | Sun, 11 Apr 2004 22:33:16 +0200 | From | Sam Ravnborg <> | Subject | Re: kernelversion distinction (was 2.6.5 - incomplete headers?) |
| |
> > Any improvements? Up to which kernel version should old style make be used?
You cannot use same Makefile for both 2.4 and 2.6?
Using the syntax: make -C $KERNELSRC SUBDIRS=$PWD modules
should allow you to do that if there is no special requirements. The Makefile should be an ordinary kbuild Makefile in this case:
obj-m := module.o module-objs := mod1.o mod2.o etc..
Another approach would be to keep two Makefiles, one for 2.4, another for 2.6. Default could be Makefile (for 2.6) and Makefile.24 for older kernels. This makes much less conditionals.
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/
| |