Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: evbarm build using exorbitant disk space during build



On Wed, Apr 30, 2014 at 08:37:45AM -0700, Matt Thomas wrote:
> Most the space from the kernels comes have makeoptions DEBUG="-g" in
> the config files.  Having a way a build could override that would
> result in significant savings.

Indeed - disabling that on all kernels gives:

615M    /hosts/evbarm
9.7G    /usr/obj/evbarm
2.2G    /usr/obj/evbarm/usr/src/releasedir
3.7G    /usr/obj/evbarm/usr/src/sys/arch/evbarm

> Maybe config should take a -g{,0} option which would add makeoptions
> DEBUG="-g" automagically if -g was present or making sure makeoptions
> DEBUG= is ignored if -g0 was present.
>
> Then etc/Makefile could invoke config with -g0 to suppress making gdb
> kernels.

I like that, and we could add build.sh kernel.gdb=MYKERNEL

Or, like matthew suggested, control it by something in /etc/mk.conf, with
default to "no -g".

This may need further discussion, but as a immediate step I would like
to manually override all DEBUG=-g for *_INSTALL kernels, which probably
is already enough to get the builds going for now.

Anyone see problems with that?

Martin


Home | Main Index | Thread Index | Old Index