Plan9/Build
Random notes on how to build 9front from source…
To rebuild the system I use the following commands:
% cd /
% . /sys/lib/rootstub
% cd /sys/src/
% mk nuke
% mk libs
% mk install
% mk clean
% cd /sys/man
% mk
% cd /sys/src/9/pc64
% mk install
% mk clean
% 9fs 9fat
% cp /amd64/9pc64 /n/9/
% unmount /n/9
% unmount /n/9fat
% rm /srv/dos
% fshalt -r
Note that when libraries are updated one ought to cd /sys/src/ && mk nuke
them first before replacing them.
When new instructions are added to the assembler and linker, they need to be rebuilt before libc
is rebuilt:
% for(i in (8a 8l 6a 6l)){ cd /sys/src/cmd/^$i && mk install }