[Buildroot] [PATCH] Avoid make distclean to remove packages fromrootfs

Roberto A. Foglietta roberto.foglietta at gmail.com
Mon Oct 27 20:42:42 UTC 2008


2008/10/22 John Schimandle <john_schimandle at hotmail.com>:
> I perform the following steps to rebuild the rootfs. It's fast and easy.
>
> rm project_build_ARCH/PROJECT/.root
> rm -rf project_build_ARCH/PROJECT/root
>

^^^^ these lines are not enough and sometime are too much (i.e.: about
losing the customization)

rm -rf project_build_ARCH/PROJECT/autotools-stamps

^^^^ this line resolves the problem to reinstall everything (apart
libfreetype which buggy installation put them in staging_dir but not
in target_dir)

> Once these steps are done then the next make will copy in a clean skeleton
> template and all the other Makefiles will notice the install targets are
> missing and they will install all the targets. This is the cleanest and
> fastest method I have found because this only copies files.
>
> Maybe this should be added to the top level Makefile.


Attached patch allow two more targets:

make install

or

make rootclean install


 I hope this helps,
-- 
/roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile-r23778.patch
Type: text/x-diff
Size: 1655 bytes
Desc: not available
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20081027/81eeb8f1/attachment.patch>


More information about the buildroot mailing list