5.3 Building Kernel/World

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Jan 18 04:32:03 PST 2005


On 2005-01-17 14:30, Doug Poland <doug at polands.org> wrote:
> > On Jan 17, 2005, at 11:07, Kris Kennaway wrote:
> > >>>cd /usr/src
> > >>>make cleandir
> > >>>make cleandir
> > >>>make buildworld
> > >>>
> > >>>Kris
>
> Interesting, what does "make cleandir" do?  Is it different than
> running
>
> # cd /usr/obj
> # chflags -R noschg *
> # rm -rf *
>
> as documented in the handbook?

The first 'cleandir' run is pretty much equivalent to the instructions
in the Handbook.

If there are stale objects or libraries under /usr/src, the second
cleandir run cleans those too.

Normally, there shouldn't be any stale objects under /usr/src, because
the recommended buildworld/buildkernel cycle uses /usr/obj for that.

If there are left-overs under /usr/src, they are usually the result of
manual builds run in one of the subdirectories of /usr/src.

- Giorgos



More information about the freebsd-questions mailing list