From: Hamish Moffatt <hamish@cloud.net.au>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Avoid make distclean to remove packages fromrootfs
Date: Tue, 28 Oct 2008 12:04:42 +1100 [thread overview]
Message-ID: <20081028010442.GA27610@cloud.net.au> (raw)
In-Reply-To: <e4c675870810271411j60951480x90de0d4520abcb75@mail.gmail.com>
On Mon, Oct 27, 2008 at 10:11:12PM +0100, Roberto A. Foglietta wrote:
> 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:
You shouldn't edit anything in $(TARGET_DIR) yourself - edit the
source, then rebuild.
However, there does need to be a way to copy the target_skeleton over
the root directory again in case you've edited files (startup scripts,
passwd file, fstab etc). And you might not want to copy this over an
existing $(TARGET_DIR), because then you might lose changes made
by packages.
I didn't understand your softclean and rootclean targets though. Here's
what I have added to my own tree:
root-clean:
rm -rf $(PROJECT_BUILD_DIR)/.root $(PROJECT_BUILD_DIR)/autotools-stamps $(TARGET_DIR)
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
next prev parent reply other threads:[~2008-10-28 1:04 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
2008-10-27 22:19 ` Roberto A. Foglietta
2008-10-28 1:04 ` Hamish Moffatt [this message]
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=20081028010442.GA27610@cloud.net.au \
--to=hamish@cloud.net.au \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox