How to separate obj and src for external module build?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux