Patchwork Fix bug with dependencies of *-rebuild and *-reconfigure

login
register
mail settings
Submitter Jérôme Pouiller
Date May 13, 2013, 3:25 p.m.
Message ID <1368458741-8838-1-git-send-email-jezz@sysmic.org>
Download mbox | patch
Permalink /patch/243426/
State Accepted
Headers show

Comments

Jérôme Pouiller - May 13, 2013, 3:25 p.m.
If targets $PKG-rebuild or $PKG-reconfigure are launched on a not fully built
directory, Buildroot finish build of all packages instead of only build asked
package.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
---
 package/pkg-generic.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Thomas Petazzoni - Aug. 13, 2013, 10:11 a.m.
Dear Jérôme Pouiller,

On Mon, 13 May 2013 17:25:41 +0200, Jérôme Pouiller wrote:
> If targets $PKG-rebuild or $PKG-reconfigure are launched on a not fully built
> directory, Buildroot finish build of all packages instead of only build asked
> package.
> 
> Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>

Applied to the next branch, after rewording the commit message. This
patch is not fixing a bug at all, it's changing what was an intended
behavior.

Thanks!

Thomas

Patch

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index b55b5f0..d25797c 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -437,12 +437,12 @@  endif
 			rm -f $$($(2)_TARGET_INSTALL_IMAGES)
 			rm -f $$($(2)_TARGET_INSTALL_HOST)
 
-$(1)-rebuild:		$(1)-clean-for-rebuild all
+$(1)-rebuild:		$(1)-clean-for-rebuild $(1)
 
 $(1)-clean-for-reconfigure: $(1)-clean-for-rebuild
 			rm -f $$($(2)_TARGET_CONFIGURE)
 
-$(1)-reconfigure:	$(1)-clean-for-reconfigure all
+$(1)-reconfigure:	$(1)-clean-for-reconfigure $(1)
 
 # define the PKG variable for all targets, containing the
 # uppercase package variable prefix