From patchwork Sat Jul 22 04:47:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13322774 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 ED3C0EB64DA for ; Sat, 22 Jul 2023 04:48:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbjGVEs5 (ORCPT ); Sat, 22 Jul 2023 00:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbjGVEs1 (ORCPT ); Sat, 22 Jul 2023 00:48:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF9E83C0A; Fri, 21 Jul 2023 21:48:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6872460A4C; Sat, 22 Jul 2023 04:48:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEF7BC433CC; Sat, 22 Jul 2023 04:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690001304; bh=VV5tg2oV5uhqxjDebBRYN7lAbnxJg/0q4gs6El0Bz/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mG08w/YO2AVy4RvhlsZYRzU8pZ7AOynAFV251+7dUAQpeLDr1wrX6xYt+W3+8fKtR wwhZySwk/6Yn49cDO/EzC/F6iKyyHLB8hiu4fUvVsHTUb8hfie25cCiwMl9fyPvgb/ licrRafLcsQK5IOU5RdwNE7AWRynJZB0bStUf/nfYmC2O/ycmkr+HJi/SwiICuu+jC wJC195JJ1ouMd9Qaq/qHAzNrjYKb3a9y1H6/UEKgjLL5x4m03YL4abKtW4NtY3Zsle LnV1g/BfowWXyKagezKfu1wsu3mfGmCbAwHUWq5/H/NY3H5yB3qFLUwdB9J99awvOp BavFmJ8F7OGkA== 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 07/19] kbuild: rpm-pkg: replace $KERNELRELEASE in spec file with %{KERNELRELEASE} Date: Sat, 22 Jul 2023 13:47:54 +0900 Message-Id: <20230722044806.3867434-7-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230722044806.3867434-1-masahiroy@kernel.org> References: <20230722044806.3867434-1-masahiroy@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Avoid hard-coding the value of KERNELRELEASE in the generated spec file. Signed-off-by: Masahiro Yamada --- scripts/package/mkspec | 59 +++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/scripts/package/mkspec b/scripts/package/mkspec index a6a383aaaea7..34b2489106cf 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -39,6 +39,7 @@ EXCLUDES="$RCS_TAR_IGNORE --exclude=*vmlinux* --exclude=*.mod \ # $M: this line is enabled only when CONFIG_MODULES is enabled sed -e '/^DEL/d' -e 's/^\t*//' <