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

Benoît Mauduit benoit.mauduit at gmail.com
Thu Feb 17 08:31:40 UTC 2011


On Thu, Feb 17, 2011 at 8:40 AM, Daniel Nyström
<daniel.nystrom at timeterminal.se> wrote:
> 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!
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>

Hello,

I am working with a company which needs this feature for BR.

I've made a quick patch which prevents buildroot to create
.stamp_build, .stamp_install_target and .stamp_install_staging if a
variable is set in package .mk file. ($($PKG)_DEV_MODE)
I don't know if it's the right approach but it works.. (calling make a
second time will rebuild these packages..)

The patch is attach to this mail.

Best regards,
Benoît Mauduit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Makefile-Add-PKG-_DEV_MODE-to-avoid-creating-stamps-.patch
Type: text/x-patch
Size: 2297 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110217/bbd36411/attachment-0002.bin>


More information about the buildroot mailing list