FreeBSD de make world
[ Nob's Home |
FreeBSD ]
CVSupで同期したソースでmake worldします。
Information
必要なもの
- cvsupで同期した /usr/src/以下
- kernelが再構築できる開発環境
/etc/make.confの修正
- CFLAGS= -O -pipe
- NOPROFILE= true
- COPTFLAGS= -O -pipe
以上の#を外して有効にします。
/etc/groupの修正
# diff /etc/group /usr/src/etc/group
で、/etc/groupに変化がないか確認し、必要なら修正します。
/usr/obj
初めてのときは必要ありませんが、2回目以降は、
make buildworld
まずbuildworldします。
# cd /usr/src
# script /var/tmp/mw.out
Script started, output file is /var/tmp/mw.out
# make buildworld
… compile, compile, compile …
# exit
Script done, …
log
を取りながらmakeします。
time make buildworld
とすると、時間が測定できます。
Celeron 466MHzで59分かかりました。
/etcをbackup
# cp -Rp /etc /etc.old
で/etcを退避しておきます。
make installworld
single user modeに落ちてから、installworldします。
# shutdown now
# make installworld
これには6分ほどかかりました。
kernelの再構築
# cd /usr/src/sys/i386/conf
# config *****
# cd ../../compile/*****
# make depend
# make clean
# make
# make install
# fastreboot
[ Nob's Home |
FreeBSD ]
nob@makioka.y-min.or.jp