stevensli 回复于:2003-03-03 13:52:00 |
Procedure 1. Building a kernel the ``traditional'' way Run config( ![]() # /usr/sbin/config MYKERNEL Change into the build directory. # cd ../compile/MYKERNEL For FreeBSD version prior to 5.0, use instead: # cd ../../compile/MYKERNEL Compile the kernel. # make depend # make Install the new kernel. # make install Procedure 2. Building a kernel the ``new'' way Change to the /usr/src directory. # cd /usr/src Compile the kernel. # make buildkernel KERNCONF=MYKERNEL Install the new kernel. # make installkernel KERNCONF=MYKERNEL Note: In FreeBSD 4.2 and older you must replace KERNCONF= with KERNEL=. 4.2-STABLE that was fetched before Feb 2nd, 2001 does not recognize KERNCONF=. |
henkon 回复于:2003-03-03 13:31:52 |
config 内核文件名 |
夜猫子 回复于:2003-03-03 13:33:26 |
你要先在/sys/i386/conf下运行
config ./kernel_ipfw 然后 cd ../../compile/kernel_IPFW make depend && make && make install |
quakelee 回复于:2003-03-03 18:43:55 |
你们就不能提供一个有创意的方法,比如我就会用
cd /usr/src make buildkernel KERNCONF=kernel_IPFW make installkernel KERNCONF=kernel_IPFW |
bluepunk 回复于:2003-03-03 18:30:46 |
#pwd
/sys/i386/conf config ./kernel_ipfw #cd ../../compile/kernel_IPFW #make depend all install |
dabeck 回复于:2003-03-27 10:14:06 |
人家不是说了嘛。 |
ihweb 回复于:2003-03-27 10:33:34 |
[quote:9a6daea6b1="quakelee"]你们就不能提供一个有创意的方法,比如我就会用
cd /usr/src make buildkernel KERNCONF=kernel_IPFW make installkernel KERNCONF=kernel_IPFW[/quote:9a6daea6b1] 有空可真的要试试这种编译内核的方法。 |
onedaycj 回复于:2003-03-29 16:16:56 |
[quote:f48fed359c="ihweb"]
有空可真的要试试这种编译内核的方法。[/quote:f48fed359c] 好慢呢.... |
quakelee 回复于:2003-03-29 23:48:55 |
什么叫做有空,没空才用我的方法,因为省掉了
config mykern cd ../../compile/mykern make depend make 这四步,而用一步解决了 |