From patchwork Wed Feb 22 14:47:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13149251 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B282C636D6 for ; Wed, 22 Feb 2023 14:50:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231837AbjBVOuJ (ORCPT ); Wed, 22 Feb 2023 09:50:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232371AbjBVOtz (ORCPT ); Wed, 22 Feb 2023 09:49:55 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 079014C12; Wed, 22 Feb 2023 06:49:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 61B62CE1DDB; Wed, 22 Feb 2023 14:48:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57FB1C433D2; Wed, 22 Feb 2023 14:48:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677077308; bh=yfGB7wkl3+UVIAj3h3HfdZVfdpzFWH0CMmxedu0oZTM=; h=From:To:Cc:Subject:Date:From; b=unolfEpo3XY6bLDU5npar61VWM3jC4W/1XssF6IiK2h9L/rN/26yENZYAbZ2E3Fg6 UiW+PdeG8XgLBijUuoQ8p4rFCWXCvclPhEA5feBkZd0Oe0KeUPZhMrWx+oH011ruh1 5rcTRLGaAyEI2qJCzqVsi11OK3gzWweTqrflg6BjX+a4+cfl62PRKhlFbPhZTIfqlo 8SjpuxBIM30ulYyxU9srDeikm1Y9sqq/agEgfzX2P11F/8BA1CYrBE3RmikzJA9IIR pBdIjgyZgNi+7Y0DXu2AQ/01iz+QwDbWNuBhFoJK6XpzG8pbYXOuOZQBNb+7mK0zwL KYQngtYH9LvKw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier Subject: [PATCH] kbuild: rpm-pkg: remove unneeded KERNELRELEASE from modules/headers_install Date: Wed, 22 Feb 2023 23:47:29 +0900 Message-Id: <20230222144730.3813421-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org There is no need to pass KERNELRELEASE to installation targets. KERNELRELEASE used for building the kernel is saved in include/config/kernel.release. Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor --- scripts/package/mkspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 83a64d9d7372..3c550960dd39 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -99,8 +99,8 @@ $S %else cp \$($MAKE -s image_name) %{buildroot}/boot/vmlinuz-$KERNELRELEASE %endif -$M $MAKE %{?_smp_mflags} KERNELRELEASE=$KERNELRELEASE INSTALL_MOD_PATH=%{buildroot} modules_install - $MAKE %{?_smp_mflags} KERNELRELEASE=$KERNELRELEASE INSTALL_HDR_PATH=%{buildroot}/usr headers_install +$M $MAKE %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} modules_install + $MAKE %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr headers_install cp System.map %{buildroot}/boot/System.map-$KERNELRELEASE cp .config %{buildroot}/boot/config-$KERNELRELEASE $S$M rm -f %{buildroot}/lib/modules/$KERNELRELEASE/build