[Buildroot] [PATCH] Makefile: improve $(TARGET_DIR) (re)creation

Bjørn Forsman bjorn.forsman at gmail.com
Wed Feb 16 16:55:38 UTC 2011


On 16 February 2011 16:03, Daniel Nyström
<daniel.nystrom at timeterminal.se> wrote:
> 2011/2/16 Bjørn Forsman <bjorn.forsman at gmail.com>
>>
>> On 15 February 2011 13:10, Daniel Nyström
>> <daniel.nystrom at timeterminal.se> wrote:
>> > 2011/2/15 Bjørn Forsman <bjorn.forsman at gmail.com>:
>> >> 2011/2/13 Bjørn Forsman <bjorn.forsman at gmail.com>:
>> >>> With this patch, just remove $(TARGET_DIR) and Buildroot will recreate
>> >>> it.
>
> [snip]
>>
>> >
>> > I'm afraid I can't say anything about this particular approach (I
>> > don't even have time to test it right now) but I do would love a way
>> > to regenerate the target dir.
>>
>> It's good to know I'm not the only one wanting this :-)
>
> Actually, there has been a few request of such feature just recently on the
> Freenode IRC channel.
>
> One great step would be to remove all "compiled" and "installed" stamps and
> let every package get rebuilt (if necessary!) and reinstalled. In that case,
> testing minor changes to single packages would be a quick job. Not an
> half-hour job as of today.

rm output/build/*/.stamp*

(works for packages using the auto/generic/cmake infrastructure)

or `make package-uninstall package` to rebuild a single package.

> I think there is work going on to add a step when installing packages, where
> it would first be turned into a tarball and later on extracted upon the
> target root fs. But I havn't heard anything about it for months.

Yeah, an update on that would be nice.

Best regards,
Bjørn Forsman


More information about the buildroot mailing list