From patchwork Thu Mar 14 21:04:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10853597 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B34C1874 for ; Thu, 14 Mar 2019 21:04:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 144F02A393 for ; Thu, 14 Mar 2019 21:04:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12C422A56C; Thu, 14 Mar 2019 21:04:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B80092A393 for ; Thu, 14 Mar 2019 21:04:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727625AbfCNVEY (ORCPT ); Thu, 14 Mar 2019 17:04:24 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:49928 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727616AbfCNVEY (ORCPT ); Thu, 14 Mar 2019 17:04:24 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2EKwrno102596; Thu, 14 Mar 2019 21:04:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=9RCT+vZ4LHGltOx07QR2gv0KFtbNHD4EcZNxCaWTFA8=; b=KvZx0u36nH3k8HeXaIwj5Fjw8CX1YUmw+QN3oREh8Y+8djP3bPcbmnHoP4M7rr5zBBph jLkjgxgN/E28EssGTzdPOqt5n63AvqI0JDbflBgLH5SxTxibzP5zBHMANAVZA/+8bNdM hQF6sx7ImR5sOFtIzPq49rbOmiWv85FbUoWkf9SsIoQD/SmDeCs/ijBsWCKjKj+8C/mp TmoWxyWuel3DqWqtfqhvn00MEyEfgwLSmZUXSj5kdCogntlJSYCCf4/4sveXEjF3obOr m/Vs4JQa4z6DcrMJ7DXFm2AdFaJUge2LehKIrBc4DivP2vAHkGC7xPCswzKS2yN/hLlg wg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2r464ruec7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Mar 2019 21:04:21 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x2EL4LUJ002696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Mar 2019 21:04:21 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2EL4L1U002660; Thu, 14 Mar 2019 21:04:21 GMT Received: from localhost (/10.145.178.102) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Mar 2019 21:04:20 +0000 Subject: [PATCH 06/36] debian: enable parallel make From: "Darrick J. Wong" To: sandeen@sandeen.net, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Date: Thu, 14 Mar 2019 14:04:20 -0700 Message-ID: <155259746044.31886.13633380455067163247.stgit@magnolia> In-Reply-To: <155259742281.31886.17157720770696604377.stgit@magnolia> References: <155259742281.31886.17157720770696604377.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9195 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903140143 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Darrick J. Wong Use parallel make to speed up dpkg builds. Signed-off-by: Darrick J. Wong Reviewed-by: Nathan Scott --- debian/rules | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index 7c2a8b3c..e8509fb3 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,11 @@ export DH_VERBOSE=1 +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + PMAKEFLAGS += -j$(NUMJOBS) +endif + package = xfsprogs develop = xfslibs-dev bootpkg = xfsprogs-udeb @@ -30,7 +35,7 @@ build-arch: built build-indep: built built: dibuild config @echo "== dpkg-buildpackage: build" 1>&2 - $(MAKE) default + $(MAKE) $(PMAKEFLAGS) default touch built config: .census @@ -38,7 +43,7 @@ config: .census @echo "== dpkg-buildpackage: configure" 1>&2 $(checkdir) AUTOHEADER=/bin/true dh_autoreconf - $(options) $(MAKE) include/platform_defs.h + $(options) $(MAKE) $(PMAKEFLAGS) include/platform_defs.h touch .census dibuild: @@ -48,10 +53,10 @@ dibuild: $(diopts) $(MAKE) include/platform_defs.h; \ mkdir -p include/xfs; \ for dir in include libxfs; do \ - $(MAKE) -C $$dir NODEP=1 install-headers; \ + $(MAKE) $(PMAKEFLAGS) -C $$dir NODEP=1 install-headers; \ done; \ for dir in include libxfs libxcmd libfrog mkfs; do \ - $(MAKE) $$dir; \ + $(MAKE) $(PMAKEFLAGS) $$dir; \ done; \ mv mkfs/mkfs.xfs mkfs/mkfs.xfs-$(bootpkg); \ $(MAKE) distclean; \