All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 04/12] package: add <pkg>-rebuild and <pkg>-reconfigure
Date: Wed, 20 Jul 2011 07:52:03 +0200	[thread overview]
Message-ID: <c2f2d67a5161a763ebd6738c28c27e470d0e0dbd.1311141087.git.thomas.petazzoni@free-electrons.com> (raw)
In-Reply-To: <cover.1311141087.git.thomas.petazzoni@free-electrons.com>

We are often asked "how can I restart the build of a package ?" or
"how can I restart the build of package from the configure part
?". Obviously, tweaking with stamp files is possible, but not very
user friendly.

Therefore this patch adds two new per-package targets: <pkg>-rebuild
and <pkg>-reconfigure. They will remove the right stamp files and
restart the complete build process (by using the 'all' target, so that
not only the package is reconfigured, recompiled and reinstalled, but
the root filesystem images are also regenerated).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Makefile.package.in |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index c22c104..96ed9a7 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -555,6 +555,19 @@ $(1)-clean:		$(1)-uninstall \
 
 $(1)-dirclean:		$$($(2)_TARGET_DIRCLEAN)
 
+$(1)-clean-for-rebuild:
+			rm -f $$($(2)_TARGET_BUILD)
+			rm -f $$($(2)_TARGET_INSTALL_STAGING)
+			rm -f $$($(2)_TARGET_INSTALL_TARGET)
+			rm -f $$($(2)_TARGET_INSTALL_HOST)
+
+$(1)-rebuild:		$(1)-clean-for-rebuild all
+
+$(1)-clean-for-reconfigure: $(1)-clean-for-rebuild
+			rm -f $$($(2)_TARGET_CONFIGURE)
+
+$(1)-reconfigure:	$(1)-clean-for-reconfigure all
+
 # define the PKG variable for all targets, containing the
 # uppercase package variable prefix
 $$($(2)_TARGET_INSTALL_TARGET):		PKG=$(2)
-- 
1.7.4.1

  parent reply	other threads:[~2011-07-20  5:52 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20  5:51 [Buildroot] [pull request] Pull request for branch for-2011.08/pkg-infra Thomas Petazzoni
2011-07-20  5:52 ` [Buildroot] [PATCH 01/12] package: show complete URL for external-deps Thomas Petazzoni
2011-07-20  5:52 ` [Buildroot] [PATCH 02/12] package: enhance infrastructure to support source dir override Thomas Petazzoni
2011-07-20  6:42   ` Thomas De Schampheleire
2011-07-20 18:16     ` Thomas Petazzoni
2011-07-24 15:03       ` Thomas De Schampheleire
2011-07-20  5:52 ` [Buildroot] [PATCH 03/12] package: add configuration option to specify a local override file Thomas Petazzoni
2011-07-20  5:52 ` Thomas Petazzoni [this message]
2011-07-20  5:52 ` [Buildroot] [PATCH 05/12] package: implement a 'local' site method Thomas Petazzoni
2011-07-20  6:29   ` Thomas De Schampheleire
2011-07-20 18:19     ` Thomas Petazzoni
2011-07-24 14:50       ` Thomas De Schampheleire
2011-07-25  7:11         ` Thomas Petazzoni
2011-07-25  7:20           ` Yann E. MORIN
2011-07-25  8:37             ` Thomas De Schampheleire
2011-07-25  8:41               ` Yann E. MORIN
2011-07-25  8:47                 ` Thomas De Schampheleire
2011-07-25  8:42           ` Thomas De Schampheleire
2011-07-25  9:00             ` Thomas Petazzoni
2011-07-28  7:52               ` Arnout Vandecappelle
2011-07-20  5:52 ` [Buildroot] [PATCH 06/12] package: add helper functions to get package name and directory magically Thomas Petazzoni
2011-07-20  5:52 ` [Buildroot] [PATCH 07/12] package: remove useless arguments from GENTARGETS Thomas Petazzoni
2011-07-20  5:52 ` [Buildroot] [PATCH 08/12] package: remove useless arguments from AUTOTARGETS Thomas Petazzoni
2011-07-20  5:52 ` [Buildroot] [PATCH 09/12] package: remove useless arguments from CMAKETARGETS Thomas Petazzoni
2011-07-20  5:52 ` [Buildroot] [PATCH 10/12] Makefile.package.in: Pass non-prefixed name as argument to GENTARGETS_INNER Thomas Petazzoni
2011-07-20 16:03   ` Quotient Remainder
2011-07-20 19:19     ` Thomas Petazzoni
2011-07-20  5:52 ` [Buildroot] [PATCH 11/12] Add support for local packages through 'file://' pseudo-protocol Thomas Petazzoni
2011-07-20  9:38   ` Thomas De Schampheleire
2011-07-20  5:52 ` [Buildroot] [PATCH 12/12] fakeroot: remove target packages Thomas Petazzoni
2011-07-20  6:02 ` [Buildroot] [pull request] Pull request for branch for-2011.08/pkg-infra Thomas Petazzoni

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=c2f2d67a5161a763ebd6738c28c27e470d0e0dbd.1311141087.git.thomas.petazzoni@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.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.