Hi, I want to put all obj files (*.o, *.ko etc) into a different directory (e.g. obj/) rather than the same src (*.c, Makefile) directory while building an external module: $(MAKE) -C $(KERNELDIR) M=$(SRC) modules How to do it? I tried to use O (KBUILD_OUTPUT), but still no luck. It seems that O (KBUILD_OUTPUT) is just used for kernel build output. $(MAKE) -C $(KERNELDIR) M=$(SRC) O=$(OBJ) modules It doesn't work. Thanks. -- 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