From patchwork Thu Sep 6 15:37:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ra=C3=BAl_S=C3=A1nchez_Siles?= X-Patchwork-Id: 182233 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 8E1322C00B2 for ; Fri, 7 Sep 2012 01:37:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F400120537; Thu, 6 Sep 2012 15:37:47 +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 oBSG01hFeS3w; Thu, 6 Sep 2012 15:37:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DC45A2053E; Thu, 6 Sep 2012 15:37:46 +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 D44F18F74B for ; Thu, 6 Sep 2012 15:37:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F31A58C9CF for ; Thu, 6 Sep 2012 15:37:44 +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 QNTtHk9kqnFq for ; Thu, 6 Sep 2012 15:37:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 75FD48C0F3 for ; Thu, 6 Sep 2012 15:37:43 +0000 (UTC) Received: by weys43 with SMTP id s43so2323894wey.16 for ; Thu, 06 Sep 2012 08:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:x-face:date:to:mime-version:content-type :content-transfer-encoding:message-id; bh=3m/F364p6U4Ke5z5vX1c+VVuPSeEU9jQSwPet3fdGNk=; b=c2PyUZdOY0w2Nynl+oyBwA1hIA9dXBitsiImEWQ2Op6KsxpJF+uxC5rDzJ8YO/PUsu RVqlUeFAB0yaTcbJyY38rYMYDi/pUPuAltF4fYF2TPR8/p920eMiRyClbsmCrZ7YdjcO O25v3cM7aQbT52PEV51MH7n4c1qwE3hipHmA9Srb4cjhLL8OuMzUpo+6cKjX2OK8tvS8 CbKHcUHJo1JjKBkCQ5NnuBUqachW8QOp4hjlhl9DtcMnQg1bJohNoR4x0fr3pkI8/MYJ pOUygycXEz15+KSZm92bfnnCaiqjoD3Z92wOPCyHCYSjDGa5/oTdF46IlzH84S/dYRFv 8Rkg== Received: by 10.216.134.101 with SMTP id r79mr1447611wei.60.1346945861710; Thu, 06 Sep 2012 08:37:41 -0700 (PDT) Received: from portaka.localnet (243.55.218.87.dynamic.jazztel.es. [87.218.55.243]) by mx.google.com with ESMTPS id b7sm6544376wiz.9.2012.09.06.08.37.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Sep 2012 08:37:40 -0700 (PDT) From: =?utf-8?q?Ra=C3=BAl_S=C3=A1nchez_Siles?= X-Face: "Y8c-P6z#xzVu3N?e6eA%4eFyIMQ&lM[0$ MIME-Version: 1.0 Message-Id: <201209061737.32826.rasasi78@gmail.com> Subject: [Buildroot] [PATCH] Depend autotools targets on host-ccache when BR2_CCACHE is enabled. 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net In this case, autotools targets rely on $(TARGET_CONFIGURE_OPTS) which includes ccached compiler. Signed-off-by: Raúl Sánchez Siles --- package/pkg-autotools.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk index 785daab..e858ffc 100644 --- a/package/pkg-autotools.mk +++ b/package/pkg-autotools.mk @@ -200,6 +200,10 @@ $(2)_PRE_CONFIGURE_HOOKS += AUTORECONF_HOOK $(2)_DEPENDENCIES += host-automake host-autoconf host-libtool endif +ifeq ($(BR2_CCACHE),y) +$(2)_DEPENDENCIES += host-ccache +endif + # # Build step. Only define it if not already defined by the package .mk # file.