Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp448404pxx; Wed, 28 Oct 2020 08:34:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTaVq+N7nNgo4mAcAgp9+MQyNWcR1ZHA3DQO/lJ6x/tthoBGITjWZMSi1sazuZeD5QTflX X-Received: by 2002:a1c:7c06:: with SMTP id x6mr9287676wmc.171.1603899267518; Wed, 28 Oct 2020 08:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603899267; cv=none; d=google.com; s=arc-20160816; b=WBN0a2Z/ZvwCXSxbb+yj2of0YGvNhrRojisyI9utaVeXCqJYCA0R5zFtHys2QkMpl5 9N493qG9PvLz0QCrSmCY+gCe1YokPQZ2HCBToj1h6a/x/NOr5L+WWe1NOkLe2cDtw9Ez 0aLeuLwgMLtfR9CpLtp8YBI57T6fpUCCsvuC+c2o8UUg8ggumZDG68hulrB86CeWO5or tRgizox34lEbt25NeTqPjpWn9QKQyCnYIWofVxgYNmO+0opr0gtO6WtcFR6Qgvu5NJN+ VSUyVE7KtBqmczq1vfs4V/k2f2t5ivpUGdSWHR6AHI7vjveklMZwCzAB49cicevIubxU Bvlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qxc2Gl1psSHvU/y+hZfy6BIYCqJ9g70bxP1gestwb1k=; b=wPEzA6DnLMA8BZMx5vIsR7MjnpGnnUHs9/wZB52qacNmGqcOMKdIIARWwo6UeCnVgX eXAZD81J7kNaC3mtbHU/pmtuGaan17kIqvK70yX4N4TVlyKTa6feDq4jXtvhyXjK2oP5 iuAA5x6hLpwVaq0hYFcN9mW2G7Lhgv2M220eMwrnfxCQhCF8/TNFq3o5fWrHjsqlMIPY FlcKzNcW9RcdiPJnGaA9WFaCQoUDvugH6GAqjcu+iNWGfXQvrVu5q9OuPVE4VXsV9fTy 5UUux2w0GrP4XbAtEEhy7zwXrUcfBOpfcdcT7jH1AqHxAkWgbvfmxxeASlwZ3cgXy+mr u+2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dZ8lh61o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si2664388eds.99.2020.10.28.08.34.05; Wed, 28 Oct 2020 08:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dZ8lh61o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1811524AbgJ0Qjp (ORCPT + 99 others); Tue, 27 Oct 2020 12:39:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:42018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1801941AbgJ0PpK (ORCPT ); Tue, 27 Oct 2020 11:45:10 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85BF9223B0; Tue, 27 Oct 2020 15:45:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603813509; bh=YccVSx6ZuaiM4zc5OSZp35HbuBOuCVZ448jsDKpaK3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dZ8lh61oe1tRyXxOChWmcDl9sVIXN8HO3FnYHE8Zya+krMBR3cI+oRZ+RttehUACB vxtIe/BAFMQoprGz7Qryqi06Zz3v7nSkI3Uqa8+qwnvXHpHKBudrHsSc8ah+1SLeAo jX2wV1NoFsNHPP5yD5y9aU0NXScWvB38e91gk2y4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Josh Triplett , Masahiro Yamada , Sasha Levin Subject: [PATCH 5.9 544/757] kbuild: deb-pkg: do not build linux-headers package if CONFIG_MODULES=n Date: Tue, 27 Oct 2020 14:53:14 +0100 Message-Id: <20201027135516.015553377@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ Upstream commit bac977cbc0d6731fb8e67c2be0e4acbd959e10b3 ] Since commit 269a535ca931 ("modpost: generate vmlinux.symvers and reuse it for the second modpost"), with CONFIG_MODULES disabled, "make deb-pkg" (or "make bindeb-pkg") fails with: find: ‘Module.symvers’: No such file or directory If CONFIG_MODULES is disabled, it doesn't really make sense to build the linux-headers package. Fixes: 269a535ca931 ("modpost: generate vmlinux.symvers and reuse it for the second modpost") Reported-by: Josh Triplett Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- scripts/package/builddeb | 6 ++++-- scripts/package/mkdebian | 19 ++++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 6df3c9f8b2da6..8277144298a00 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -202,8 +202,10 @@ EOF done if [ "$ARCH" != "um" ]; then - deploy_kernel_headers debian/linux-headers - create_package linux-headers-$version debian/linux-headers + if is_enabled CONFIG_MODULES; then + deploy_kernel_headers debian/linux-headers + create_package linux-headers-$version debian/linux-headers + fi deploy_libc_headers debian/linux-libc-dev create_package linux-libc-dev debian/linux-libc-dev diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 48fbd3d0284a8..ccd46aad1dff6 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -183,13 +183,6 @@ Description: Linux kernel, version $version This package contains the Linux kernel, modules and corresponding other files, version: $version. -Package: $kernel_headers_packagename -Architecture: $debarch -Description: Linux kernel headers for $version on $debarch - This package provides kernel header files for $version on $debarch - . - This is useful for people who need to build external modules - Package: linux-libc-dev Section: devel Provides: linux-kernel-headers @@ -200,6 +193,18 @@ Description: Linux support headers for userspace development Multi-Arch: same EOF +if is_enabled CONFIG_MODULES; then +cat <> debian/control + +Package: $kernel_headers_packagename +Architecture: $debarch +Description: Linux kernel headers for $version on $debarch + This package provides kernel header files for $version on $debarch + . + This is useful for people who need to build external modules +EOF +fi + if is_enabled CONFIG_DEBUG_INFO; then cat <> debian/control -- 2.25.1