[Buildroot] [PATCH] Add target-clean makefile target

Angelo Compagnucci angelo.compagnucci at gmail.com
Wed Jul 16 08:29:50 UTC 2014

Dear Thomas,

2014-07-16 10:09 GMT+02:00 Thomas Petazzoni
<thomas.petazzoni at free-electrons.com>:
> Dear Angelo Compagnucci,
> On Wed, 16 Jul 2014 09:47:01 +0200, Angelo Compagnucci wrote:
>> > (7) is due to the fact that Git was not rebuilt, so it still believes
>> > that OpenSSL support is available. The scenario above is fairly simple,
>> > but there are many, many more similar but more subtle scenarios to
>> > screw things up.
>> Good catch, but this could be documented somewhere.
> Right, but then a patch adding "make target-clean" should also be
> responsible for adding the appropriate documentation :-)

If there is hope to have target-clean accepted, then I'll be working
on the documentation as soon as possible!

>> I think that is better to explain buildroot's users that they have to
>> rebuild a package when they mess it's dependencies instead of all the
>> whole rootfs! Compilation of a rootfs can take hours ...
>> Yes, I know, probably removing Openssl screws up a hundred of packages
>> and it's not practical to rebuild one by one, but I think this is a
>> corner case more than the rule.
> Not that much: any optional dependency in Buildroot will exhibit
> exactly the same behavior, and there are hundreds if not thousands of
> places were we rely on optional dependencies.

Yes, I can understand the implications. Honestly, using buildroot
naively, I never encountered such behaviors, but I was not going
deeply into dependencies, only selecting and deselecting packages here
and there.
Buildroot served me well!

> By I tend to agree that we could provide the tool, provided that there
> is sufficient documentation to explain how to use it correctly.

Yes, it's exactly what I'm looking for.

> Best regards,
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

Profile: http://it.linkedin.com/in/compagnucciangelo

More information about the buildroot mailing list