1. 你可以使用O=参数将编译结果放到其他位置(非源代码目录),例如:make O=~/build ...
这样做的好处是你的源代码目录不会受到任何改变;你甚至可以在不同的体系结构间共享源代码。
注意对每一条make命令都必须附加O=参数
2. 指定ARCH和CROSS_COMPILE:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- gconfig|xconfig
同样对每条make命令附加以上参数。这样避免将ARCH和CROSS_COMPILE写在Makefile里。
3. 多进程并行编译
给make加上-j参数。例如make -j4,就是开4个进程。这个对提高编译速度作用明显。