From patchwork Sat Sep 30 01:10:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 114524 Delivered-To: patch@linaro.org Received: by 10.140.104.133 with SMTP id a5csp1414525qgf; Fri, 29 Sep 2017 18:10:51 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBy3xSbFvrgH/tz6NZ4tBpAcC4FRf3DCq8KUzDIJBdjPzlZXmVEzWwig/Z57IRYF38eNU7s X-Received: by 10.159.234.3 with SMTP id be3mr8752058plb.5.1506733851093; Fri, 29 Sep 2017 18:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506733851; cv=none; d=google.com; s=arc-20160816; b=BGS1anqqohwLBUttbZrRlOYk2Jk7ZH7IWj09AL0iilfzjHJQPZ4uTi3g2tyaz4EeVz BdVfDW9qJGp3qcN/n6T2w0bKncZSdmkjQ65RLJCGlBW0HcCqVBUWLbFLGvkoVGt1lc+s nXkSiOTdW5q6KrBcEeCAvnw9mWky/FrqPWHWaCcgX5RyZkrKqrnq+WMHC9UhVt+OG+3W Y85osiSHmEnJ2yqGAphSavhP1R37QxnAFkKyKVO88p/EG/iDRTPogQC/5qeQ/YbnozzA e6aEPyJAxJ3wdLQRIYDvhx6dwesXRg1C/I9WiLKwcU6AYUA4kRRlVuJbKg8brrFMWpEB js9A== 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=p9+E4NafwWoucFJYGV2+by6aY0ug1Uey4Dhqyr/Jask=; b=heTVrwTRRpxXx9mzwQPmlk7BA0AKfnAeJpKL5YuZ594XoMULXP+/NKC6WyMvRSFwZp BfouqswtwgRQLz7+NN04gLzv3Bv6QEDpW4hHndKe/0k1gCmhFMTpQrG5fksMWlUkHf4y YjYNonpnT0tUrgcVuEt+P+dvQ676Mn105VgyVtio0JYjCFFtSU0G4/ALIm6YiWSR9Dtz zhLC3eANsReFB/zsoMy5lFoHbk6y2iWX3vRPW0oxlVmJQmF0uVe/pOPODqgL56NYy9zM bNmFXvIiVEAW4H1KCrvTS9dUAMKC01qoCVncjdMxpD4XB3LyBSGcGIWRQvmbVyf2l3rE 6f/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rTSzao5S; 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 j1si4096601pgn.726.2017.09.29.18.10.50; Fri, 29 Sep 2017 18:10:51 -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=rTSzao5S; 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 S1752777AbdI3BKi (ORCPT + 26 others); Fri, 29 Sep 2017 21:10:38 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:25300 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752621AbdI3BKf (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 v8U1AOK9030198; Sat, 30 Sep 2017 10:10:26 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v8U1AOK9030198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1506733826; bh=p9+E4NafwWoucFJYGV2+by6aY0ug1Uey4Dhqyr/Jask=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rTSzao5SxLgZxkBnvLpwK2Heg9pwahqewRQHv107OtGSVnLiYXRnUnKQAqrGZ7QhY dafQ9OAuMIKs0ghPh/w7dwxgHgkkwhu60sOhKFezHNkTQJdUkfVOE1TQUOXOztJB6l 1y41HnasQ1+Dmm3aORcOWXUXWT9750gAXVZUcH9ERXIfUq3Dy8a0dv44P7KX2nW5m4 VQYlpMIpbet+GE1VrOfa5CjUXkP+s2e/Z29Wtpvbvo3Zc99BwRZ/XH6/tvShj3OEs/ J6KzK3qAdHOAfBsoFY5p0xuS2lcuABupD/qA/BRFW+liL5g/TNqj95HgmX1lQcdnRn 4SrIIpV9LkIGg== 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 5/9] kbuild: rpm-pkg: fix build error when CONFIG_MODULES is disabled Date: Sat, 30 Sep 2017 10:10:07 +0900 Message-Id: <1506733811-24636-5-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 When CONFIG_MODULES is disabled, make rpm-pkg / binrpm-pkg fails with the following message: The present kernel configuration has modules disabled. Type 'make config' and enable loadable module support. Then build a kernel with module support enabled. Do not install modules in the case. Also, omit the devel package. Signed-off-by: Masahiro Yamada --- scripts/package/mkspec | 57 ++++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 25 deletions(-) -- 2.7.4 diff --git a/scripts/package/mkspec b/scripts/package/mkspec index f34e3bf..8a9ab85 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -16,6 +16,12 @@ else S= fi +if grep -q CONFIG_MODULES=y .config; then + M= +else + M=DEL +fi + if grep -q CONFIG_DRM=y .config; then PROVIDES=kernel-drm fi @@ -30,6 +36,7 @@ EXCLUDES="$RCS_TAR_IGNORE --exclude=.tmp_versions --exclude=*vmlinux* \ # # Labels: # $S: this line is enabled only when building source package +# $M: this line is enabled only when CONFIG_MODULES is enabled sed -e '/^DEL/d' -e's/^\t*//' <