From patchwork Wed Sep 25 08:05:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 277741 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id DF05A2C00A2 for ; Wed, 25 Sep 2013 18:06:06 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D8448AC32; Wed, 25 Sep 2013 08:06:06 +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 BNhmGFfeSqrs; Wed, 25 Sep 2013 08:06:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 92C2E8AB6C; Wed, 25 Sep 2013 08:06:02 +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 2E8ED1BF82F for ; Wed, 25 Sep 2013 08:06:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EBA5C8AB6C for ; Wed, 25 Sep 2013 08:06:00 +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 YZtmm13ddIAE for ; Wed, 25 Sep 2013 08:05:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by whitealder.osuosl.org (Postfix) with ESMTPS id DCA6D8AB37 for ; Wed, 25 Sep 2013 08:05:58 +0000 (UTC) Received: by mail-pd0-f176.google.com with SMTP id q10so5713757pdj.21 for ; Wed, 25 Sep 2013 01:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=ag0PTged4dcJQk8Ke9XkmkDdA8Pc1DS97tOnE1UE6W4=; b=C8cfJWvRYZehACYhsJF4eo6/O9P44PfuHq2oawuM113uz6PZu9XgBM1QqnLolticPe FlgTPt6wzcYjPsJW6fHb95HNZJsagi3MvCqDmjxZi81psWj6QNupZXBsotSb1XfuKW5C OsC7M0z3gd33e8OyxQxuCJ/2Ns3V1pIOpzb9An0DvVPWy3EnyaoRmyz/ZAicRjePiy0o aUMlZ7p3MJi8fNsMGXDYQjGy5bFoK1Eq6xEl+71FK35OdOD7+n1c7DVkMxd+eaki0vNx 5olFgZc1eZOD+wXQP/6+VmTmRBCZUzG6R0PdyoIMWnW1Z9Z1kIYMpwqUIINSZqQFByK8 m2wg== X-Received: by 10.67.11.103 with SMTP id eh7mr10970332pad.153.1380096358715; Wed, 25 Sep 2013 01:05:58 -0700 (PDT) Received: from ld2036.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id gg10sm45817957pbc.46.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Sep 2013 01:05:58 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Wed, 25 Sep 2013 10:05:39 +0200 Message-Id: <1380096339-4686-5-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1380096339-4686-1-git-send-email-fabio.porcedda@gmail.com> References: <1380096339-4686-1-git-send-email-fabio.porcedda@gmail.com> MIME-Version: 1.0 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH v5 4/4] pkg-generic: enable recursive make for $($(PKG)_BUILD_CMDS) 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 Add '+' prefix to the $($(PKG)_BUILD_CMDS) command to enable jobserver for the sub-make. Without the '+' prefix GNU make does not detect the sub-make so the jobserver is not avaiable for the sub-make. From GNU make documentation: Using the MAKE variable has the same effect as using a ‘+’ character at the beginning of the recipe line. This special feature is only enabled if the MAKE variable appears directly in the recipe: it does not apply if the MAKE variable is referenced through expansion of another variable. In the latter case you must use the ‘+’ token to get these special effects. Signed-off-by: Fabio Porcedda --- package/pkg-generic.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 0de1f35..499362b 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -117,7 +117,7 @@ $(BUILD_DIR)/%/.stamp_configured: # Build $(BUILD_DIR)/%/.stamp_built:: @$(call MESSAGE,"Building") - $($(PKG)_BUILD_CMDS) + +$($(PKG)_BUILD_CMDS) $(foreach hook,$($(PKG)_POST_BUILD_HOOKS),$(call $(hook))$(sep)) $(Q)touch $@