linux-kernel

make .o files in separate folder in linux kernel compilation

喜夏-厌秋 提交于 2020-08-24 07:26:25
问题 see in linux kernel compilation if just do make make ARCH=xyz uImage then it will compile files as per your .conf file and create .o or .ko in same folder where your .c file is there. So is there any way so i can force to compilation so that all .o and .ko will be any in different folder specified by me 回答1: try using make O=/path/to/mydir Here is the documentation from the kernel's Makefile: # kbuild supports saving output files in a separate directory. # To locate output files in a separate