From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Avoid make distclean to remove packages fromrootfs
Date: Mon, 27 Oct 2008 22:28:04 +0100 [thread overview]
Message-ID: <20081027212804.GG14184@mx.loc> (raw)
In-Reply-To: <e4c675870810271411j60951480x90de0d4520abcb75@mail.gmail.com>
On Mon, Oct 27, 2008 at 10:11:12PM +0100, Roberto A. Foglietta wrote:
>2008/10/27 Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>:
>> On Mon, Oct 27, 2008 at 09:42:42PM +0100, Roberto A. Foglietta wrote:
>
>[...]
>
>>
>>>--- Makefile (revision 23784)
>>>+++ Makefile (working copy)
>>>@@ -324,7 +324,7 @@
>>> touch $(STAGING_DIR)/.fakeroot.00000; \
>>> fi
>>> -find $(TARGET_DIR) -type d -name CVS -o -name .svn | xargs rm -rf
>>>- -find $(TARGET_DIR) -type f -name .empty | xargs rm -rf
>>>+ -find $(TARGET_DIR) -type f -name .empty -delete
>>> touch $@
>>>
>>> $(TARGET_DIR): $(PROJECT_BUILD_DIR)/.root
>>>@@ -341,6 +341,7 @@
>>> find $(TARGET_DIR)/lib -name '*.a' -delete
>>> find $(TARGET_DIR)/usr/lib -name '*.la' -delete
>>> find $(TARGET_DIR)/lib -name '*.la' -delete
>>>+ find $(TARGET_DIR) -type f -name '*~' -delete
>>
>> No. Use xargs instead.
>
> Why?
config FEATURE_FIND_DELETE
bool "Enable -delete option allowing to delete files"
default n
>>> source: $(TARGETS_SOURCE) $(HOST_SOURCE)
>>>@@ -357,6 +358,19 @@
>>> # Cleanup and misc junk
>>> #
>>> #############################################################
>>>+
>>>+install: softclean all
>>>+ # TODO: to fix this bug in the proper way
>>>+ name=$$(find $(STAGING_DIR) -name 'libfreetype.so'); \
>>>+ dest=$$(dirname $$name | sed -e "s,$(STAGING_DIR),$(TARGET_DIR),"); \
>>>+ cp -af $$name* $$dest; $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $$dest/libfreetype.so
>>>+
>>>+rootclean:
>>>+ rm -rf $(TARGET_DIR) $(PROJECT_BUILD_DIR)/.root
>>>+
>>>+softclean:
>>>+ rm -rf $(IMAGE) $(PROJECT_BUILD_DIR)/autotools-stamps
>>>+
>>
>> No. Adding yet more targets makes absolutely no sense at all.
>> Just make 'make clean' wipe the stamps and let 'make realclean' wipe the
>> built stuff.
>
>clean remove a lot of things not only the stamps
>
>clean: $(TARGETS_CLEAN)
> rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE)
>$(PROJECT_BUILD_DIR)/.root $(PROJECT_BUILD_DIR)/autotools-stamps
>
>a) you want reinstall things in root because they have been corrupted
>without loosing your customization on scripts/configurations:
>
>make install (which for work correctly need to do: softclean all, this
>is the reason because softclean exist)
>
>b) you want remove root and remade it from scratch
>
>make rootclean install
>
>in both a) and b) cases you want do these things in the fastest way.
Work out a setup which deals fine via
- clean
- realclean
- distclean
Everything else is too finegrained and doesn't help since it's not
intuitive.
>> And DOCUMENT that stuff in 'make help'!
> I will made some tests in order to show you how much time people can
>save in using some targets appropriately. Then if you will agree with
>me that those targets are really useful I will document them. Testing
>extensively the buildroot in many configuration implies to move AS
>FAST AS POSSIBLE from one build to another one without recompiling the
>WORLD.
I don't care about that, personally.
My tree is at least 50% faster when configuring stuff
(AUTO_CONFIGURE_TARGET) and furthermore compiles packages correctly, as
opposed to the thing you're using.
next prev parent reply other threads:[~2008-10-27 21:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 12:06 [Buildroot] [RFC] Avoid make distclean to remove packages from rootfs Roberto A. Foglietta
2008-10-22 12:20 ` [Buildroot] [RFC] Avoid make distclean to remove packages fromrootfs John Schimandle
2008-10-22 12:48 ` Roberto A. Foglietta
2008-10-27 20:42 ` [Buildroot] [PATCH] " Roberto A. Foglietta
2008-10-27 20:49 ` Bernhard Reutner-Fischer
2008-10-27 21:11 ` Roberto A. Foglietta
2008-10-27 21:28 ` Bernhard Reutner-Fischer [this message]
2008-10-27 22:19 ` Roberto A. Foglietta
2008-10-28 1:04 ` Hamish Moffatt
2008-10-28 6:47 ` Roberto A. Foglietta
2008-10-22 12:52 ` [Buildroot] [RFC] Avoid make distclean to remove packages from rootfs Bernhard Reutner-Fischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081027212804.GG14184@mx.loc \
--to=rep.dot.nop@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.