From patchwork Fri Jul 20 13:39:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Braun X-Patchwork-Id: 172278 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 6ECDE2C00C3 for ; Fri, 20 Jul 2012 23:39:45 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1700631D74; Fri, 20 Jul 2012 13:39:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yoRvFmHFQyKm; Fri, 20 Jul 2012 13:39:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 25D1431DB9; Fri, 20 Jul 2012 13:39:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3B4E48F753 for ; Fri, 20 Jul 2012 13:39:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 33CA18A328 for ; Fri, 20 Jul 2012 13:39:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7pKeT8PsMkJA for ; Fri, 20 Jul 2012 13:39:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.sceen.net (shattrath.sceen.net [94.23.252.191]) by whitealder.osuosl.org (Postfix) with ESMTP id 20AA78A2E8 for ; Fri, 20 Jul 2012 13:39:37 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.sceen.net (Postfix) with ESMTP id 0436B14078A; Fri, 20 Jul 2012 15:39:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at sceen.net Received: from mail.sceen.net ([127.0.0.1]) by localhost (mail.sceen.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F0H+NvklY3ty; Fri, 20 Jul 2012 15:39:34 +0200 (CEST) Received: by mail.sceen.net (Postfix, from userid 1000) id 41AE3140442; Fri, 20 Jul 2012 15:39:34 +0200 (CEST) From: Richard Braun To: buildroot@busybox.net Date: Fri, 20 Jul 2012 15:39:32 +0200 Message-Id: <1342791572-18657-1-git-send-email-rbraun@sceen.net> X-Mailer: git-send-email 1.7.2.5 Subject: [Buildroot] [PATCH] pkg-infra: limit -reconfigure and -rebuild actions X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net The -reconfigure and -rebuild per package targets unconditionally recreate the root filesystem image by depending on the all target. Restrict their actions to their package instead. Signed-off-by: Richard Braun --- package/pkg-generic.mk | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index c01440e..f5b05a3 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -389,12 +389,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)-configure # define the PKG variable for all targets, containing the # uppercase package variable prefix