--- Joel Becker <Joel.Becker@xxxxxxxxxx> wrote: > 1) Have the build name the output files > appropritately. That is, > compile foo.c to foo-kernel.o and foo-userspace.o. > Then link as needed. > The makefile dependencies Just Work. > Thanks Joel, In case of Solution 1. what changes required in Makefile. I mean how to build foo-kernel.c from foo.c using kbuild makefile. Suppose this is my makefile obj-m := mymodule.o mymodule-objs += \ dir1/foo.o \ dir2/bar.o all: make -C /usr/src/linux M=`pwd` modules. I only want to change name for foo.c to foo-kernel.o, not for bar.c. Thanks Murtuja Best Jokes, Best Friends, Best Food and more. Go to http://in.promos.yahoo.com/groups/bestofyahoo/ -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html