2010年7月22日 星期四

make-kpkg 時不 make clean

在 Debian-based Linux 上使用 make-kpkg compile 時,在每次執行 make-kpkg 指令,都會自動 make clean 將之前 compile 的部份清除掉重新編譯,要防止 make-kpkg 這樣作,可參考以下作法:

http://linux.derkeiler.com/Mailing-Lists/Debian/2005-05/3189.html


Add 'do_clean := NO' to /etc/kernel-pkg.conf.
As far as using ccache, you are able to specify your C compiler on the
command line. From the make-kpkg(1) man page:
You may control
which version of gcc used in kernel compilation by setting the Makefile
variables CC and HOSTCC in the top level kernel Makefile. You can do
this simply by

% MAKEFLAGS="CC=gcc-2.95" make-kpkg ...

(please see the top level kernel Makefile for variables that can be
set).