From patchwork Sat Sep 30 01:10:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 114528 Delivered-To: patch@linaro.org Received: by 10.140.104.133 with SMTP id a5csp1414966qgf; Fri, 29 Sep 2017 18:11:30 -0700 (PDT) X-Google-Smtp-Source: AOwi7QA56HXLN+Tiu3QzvqwNlYxjccx2NmZlPEHe7Js5yOGl437eUed91xz8egwACd6yMV7lCacS X-Received: by 10.98.65.27 with SMTP id o27mr9401298pfa.205.1506733890252; Fri, 29 Sep 2017 18:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506733890; cv=none; d=google.com; s=arc-20160816; b=RWhVsOPW9gX0felZtxfyiPLAuLh4iivEPb/qxodiFpXNYYBdVTW2OUiCwBZ1hpkb1C pBaCFNyE2Ae5H7kR6Kq2KeupNv5GgS/K5reTJEfO0xo5vCG3rjeOOY1dfZuW+/ka4ZAK KSV33uLiJzbhQfTPK0o1hhS53STVjh9skXbAaBk+RXH+o3hShRGvdGb31QtJEI3kOWAG /pQdBLRDCVj/w9VGKlPszMQo4/sZZj8eaS4dvNFc2rXAMiO4//HtjmKGauyrY6fMUElW UdoEf5sPpA9rP9uDIno301Be8E0YK3Wz4Pz60KpohFFkMUsXiqUzmJ4mJTg+zoXLkN38 ClTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=yeqfK9atw9ppP3MCck1LaG1V9BfMdKw5A6KonPSwlIs=; b=SbY/n1dq9PRDxW6vUWrjGqOWRRg6Mbq7G5DE01wsbPNfIJwHKxhgN2nAc98sCEdva0 ejrUtQwSsV6OqCCbrI3fXb13dPqzCRbjRoeZhuD/opIggf5r4mnC4EnmB7p6KFA6j2qc GzV/UfmJql7I3TAktMpmo5iNEI5P2/yeHWuejgjforjVOqdwIyn8HaCQ0JFpckOlQSsv dXdDISKZdJ5bMS5CbQMLCNcj28P2neBETjBZWF1out8pYmVTvcrH1zoKAMipaMPn1umT byj/EBdVrZJpmqE5sPcKpA+Y2lkbt6HWraZGHAjpix2W+qimw6aNlK92VkmeUmd7pZPH F58w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=iYcq5Gmg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si4179076plv.552.2017.09.29.18.11.30; Fri, 29 Sep 2017 18:11:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=iYcq5Gmg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752837AbdI3BLQ (ORCPT + 26 others); Fri, 29 Sep 2017 21:11:16 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:25317 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752728AbdI3BKf (ORCPT ); Fri, 29 Sep 2017 21:10:35 -0400 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-07.nifty.com with ESMTP id v8U1AOKD030198; Sat, 30 Sep 2017 10:10:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v8U1AOKD030198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1506733829; bh=yeqfK9atw9ppP3MCck1LaG1V9BfMdKw5A6KonPSwlIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iYcq5GmgUmvh8WWU3ac3n6Cj2udUFaVDWrbxlxn+yXwZ+LhUZKZWIHhjegFd67ARF IA9ZbJG1uv+LWbVOKWcyLMIHm7J2jIj6ZWErM6bPcOGFfjc49clOKOLnickGk+itYw 2LR6IP2Nl7AF2tmUCUVy9tQuUHq66gbKN/K6XIHqqoTVDGAbEaG2t9cC126J7yOKRm zEaUukGjeK8hSThmJbg/cqrbiATi++Q/dzW1TZY8MRL0jl8nu5eJxFNu9pNIJLgWtg tc/AZgGFZGY/Rhn/Lkjue23augDQhId4JFkiEfXlNPd0wMXpTRz6qfVwI2RXLssS1r SpuGczxco0tAw== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 9/9] kbuild: rpm-pkg: do not force -jN in submake Date: Sat, 30 Sep 2017 10:10:11 +0900 Message-Id: <1506733811-24636-9-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506733811-24636-1-git-send-email-yamada.masahiro@socionext.com> References: <1506733811-24636-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The spec file always passes %{?_smp_mflags}, but we have two problems here. [1] "make -jN rpm-pkg" emits the following warning message: make[2]: warning: -jN forced in submake: disabling jobserver mode. [2] We can not specify the number of jobs that run in parallel. Whether we give -jN or not from the top Makefile, the spec file always passes ${?_smp_mflags} to the build commands. ${?_smp_mflags} will be useful when we run rpmbuild by hand. When we invoke it from Makefile, -jN is propagated down to submake; it should not be overridden because we want to respect the number of jobs given by the user. Set _smp_mflags to empty string in this case. Signed-off-by: Masahiro Yamada --- scripts/package/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/scripts/package/Makefile b/scripts/package/Makefile index 70eea1e..9ed96aef 100644 --- a/scripts/package/Makefile +++ b/scripts/package/Makefile @@ -50,7 +50,8 @@ rpm-pkg rpm: FORCE $(MAKE) clean $(CONFIG_SHELL) $(MKSPEC) >$(objtree)/kernel.spec $(call cmd,src_tar,$(KERNELPATH),kernel.spec) - +rpmbuild $(RPMOPTS) --target $(UTS_MACHINE) -ta $(KERNELPATH).tar.gz + +rpmbuild $(RPMOPTS) --target $(UTS_MACHINE) -ta $(KERNELPATH).tar.gz \ + --define='_smp_mflags %{nil}' # binrpm-pkg # ---------------------------------------------------------------------------