[Buildroot] force buildroot to regenerate the output/target directory tree

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Feb 25 14:16:37 UTC 2013

Dear Francesco Montorsi,

On Mon, 25 Feb 2013 13:46:00 +0000 (UTC), Francesco Montorsi wrote:

> I've been using buildroot since some time and there is a thing I
> didn't figure out yet. Consider this situation: I have a working
> buildroot environment; I have copied into the output/target folder
> some stuff so that when I run "make" buildroot generates for me
> images into output/images which already contain the contents I
> manually copied. Now I would like to "reset" the output/target
> folder, i.e. obtain the buildroot "vanilla" output/target tree and to
> obtian the buildroot vanilla output/images.... how can I do that
> without doing a "make clean" (which requires re-compilation of all
> packages and takes a lot of time)? 
> does a "rm -rf output/target && make" works? 

No, it doesn't work, and as of today, there isn't really a simple and
reliable way of doing that.

How long is your entire build? What is your configuration (post
your .config if possible)? Do you have an external toolchain? Have you
used ccache? Are you perhaps building inside a virtual machine and/or
on a slow laptop?

Best regards,

Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.

More information about the buildroot mailing list