LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to you have kbuild send output to a different directory? (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-you-have-kbuild-send-output-to-a-different-directory-4175564279/)

dfatlq 01-18-2016 01:00 PM

How to you have kbuild send output to a different directory?
 
Hi,

I want to tell kbuild to output the generated files (for a module) to a subdirectory. That way I can share to source across multiple kernel version builds and have the output go to its own directory.

I saw a patch was created in 2003 for an O= variable but tried (the O, not the patch) that and didn't work.

How do I tell it to use a subdir for output?

TIA!!

Rinndalir 01-21-2016 01:52 PM

Please show all the exact steps you took to try the O= solution. Might as well include kernel version too. It does work and should work. Or if you prefer you can look at the linux/README in case something's changed since I last read it.

dfatlq 01-21-2016 09:57 PM

Kernel version is 2.6.32-5-686 on Debian 6

I basically added an O= to the make command line

$(MAKE) -C $(KDIR) M=$(CURDIR) V=$(V) O=$(KVER) modules


All times are GMT -5. The time now is 05:10 PM.