|
看到别人在 make world, 我心里也痒痒, 呵呵.
懒得去看 handbook 里关于 make world 的说明,
草草看了几篇 make world 的帖子, 就来实践了. :p
首先, 编辑了 /usr/share/examples/cvsup/standard-supfile
修改 *default host=CHANGE_THIS.FreeBSD.org
为 *default host=cvsup.FreeBSD.org
当然, 也可以选择别的 mirrors. 可是,主站的 src 是最新的啊, 呵呵.
现在, cvsup ...
# cd /usr/src/
# cvsup -g -L 2 /usr/share/examples/cvsup/standard-supfile
wait ....
ok, 现在 build world
# pwd
/usr/src
# make buildworld
wait ... wait ... 根据你的机器时间不等.
ok, 现在 build kernel
# pwd
/usr/src
# make buildkernel KERNCONF=GENERIC
wait ... 当然, 你也可以自己编辑一个内核配置文件来替换 GENERIC.
我更新的内核源代码中有一个错误:
/usr/src/sys/kern/sched_ule.c
第 1719 行为:
1719 mi_switch(SW_VOL);
这个函数应该有两个参数, 在其他地方是这么用的:
kern_idle.c: mi_switch(SW_VOL, NULL);
所以我就加了个 NULL 参数.
ok. 现在 make installkernel, make installworld
# pwd
/usr/src
# make installkernel KERNCONF=GENERIC
# mergemaster -cv
# make installworld
# reboot
ok, finished.
mergemaster 的时候, 你根据提示做就可以了
"d" 是删除. "i"是安装. "m"是合并. |
|