Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp470459pxx; Wed, 28 Oct 2020 09:04:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8nLIbPMZ4yQAW7QOzAm9mQ4yL8eeSB+utzHhxeHHHj+YaDwyNnGpFjE7cezwB9/4OL6yD X-Received: by 2002:a19:4a88:: with SMTP id x130mr2852872lfa.31.1603901071182; Wed, 28 Oct 2020 09:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603901071; cv=none; d=google.com; s=arc-20160816; b=FLn6S6usR8i30+w5t+JxIaq1vegPznmiNeBkZbBO/m1zpgWRK92KwwqomVzMiHatgS QdLUtHapdNWc3TypJguvLlKXdvemtY5B1gHXsJhlk/09dT+Up06pJQUXfcSnJZQOfjx8 A3uWW2JgY6QHqrVZsgtsZ6dOom+7KciV20pv3io9UHEbF5qDKSo4a3CtcFO56Jx5XaKC UYIX3MuQ3/D2ECRTAi3J7jJOcVUxmi2PdppdI098xO+PggClTjm3g9dRHYcEx52w8P2x P3fMVMJkaNN9cSxghpRsVqM6VZsedFDH7mDUMac3ZFLElDJDbyYvz8KbQy2Dk/tBbiMs EXuQ== 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=4moCeMwYVyIO2WqK5LbQwDlrR8HQCGYNEPbooMXjZ1Y=; b=trSJTlzy9WI/wXXz5ZYN8pkI1uyVufCx1QYgqjTaeS+M+iRl89YY0hT0bcX3S9724P IMns8l21LEazpQn2trmS0lztK6ce2Z2w6fiSyyVGaPfee580D//FbDKua/rVje2p81ng L02qSkEW4g3HDwJoTZ6JhvOc45uWEVGedaMFIsk7caDtMzy1WoLwczjg0PX/fP/CgN64 q0fkTyB65+5OtjV8nr3IRcSIBgkvmBEoEY7h5ihpueOYWIjSOBFs7kqo0dPvsLjp6NkU +JN1m/xChuk3tebdTcXCadOHdERUqbqohUZZ+nPmX0aKQ5TotfDmIg4vOmsgztqrhj7D Nv8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GaziSQlL; 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 i19si2816688ejh.153.2020.10.28.09.04.07; Wed, 28 Oct 2020 09:04:31 -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=GaziSQlL; 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 S1814636AbgJ0Q6A (ORCPT + 99 others); Tue, 27 Oct 2020 12:58:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:45794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1794139AbgJ0PKJ (ORCPT ); Tue, 27 Oct 2020 11:10:09 -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 DAF4620657; Tue, 27 Oct 2020 15:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811408; bh=In6ODsqjDUsLruB/vRc+eDv8J/cXj5mUeu0tSPrUbnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GaziSQlLJ7P3O+MZDJ485fcM4B52xfqjxkuLiueJaoXjmipkHZGCySKlR0YY6hjdn /yOgXN1tsEMWB4QC0g6kg2cDLmRcUj/L7Hz+vmTtsrf42Kp5jftzj7dzVK7+ykKQRg cknG9hzOQVgTOphXKqtGn51H4Xe7MyGMMjq9CZWs= 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.8 452/633] kbuild: deb-pkg: do not build linux-headers package if CONFIG_MODULES=n Date: Tue, 27 Oct 2020 14:53:15 +0100 Message-Id: <20201027135543.921506910@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 df1adbfb8ead0..9342517778bf3 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