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

Daniel Nyström daniel.nystrom at timeterminal.se
Thu Feb 17 07:40:16 UTC 2011


2011/2/16 Bjørn Forsman <bjorn.forsman at gmail.com>:
>
> rm output/build/*/.stamp*
>
> (works for packages using the auto/generic/cmake infrastructure)
>
> or `make package-uninstall package` to rebuild a single package.

Doing so, you can do "make clean" as well, since every package will be
reextracted and patched and rebuilt. Or am I missing something?

I guess rm build/*/.stamp_{built,{staging,target}_installed} would be
what I'm after, but giving your first patch a second look, I notice
you already got rm .stamp_target_installed which should be enough for
recreating the target dir (which was your original intention).

I also looks like any package version bumps would be handled correctly
on target recreation, which will probably solve most scenarios.

My vote is to apply your patch (when you consider it complete) and if
there will still be any case not covered by it, we just deal with that
later on.

Thanks alot for looking into this by the way!



More information about the buildroot mailing list