From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11D726FC9 for ; Sun, 17 Sep 2023 19:46:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18807C433C8; Sun, 17 Sep 2023 19:46:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694979963; bh=UiBHppHA977Lwrwb+w7YS8NZUHZNwRvM7b9tpGH52/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GVRgbZGvPrcYZilzUBoCsoaaz/hfFEXuBm9bGtw8/Hq6ISs5hkuMOshFKK7rmNDxo s6MlAxPU8J8RI0hqPB1K7l83Us4cpGErkZ+FsTzDxviowRq1EexvHpnOcYbcc9QXHH CMC8Smfys13MP08bl/6vgWZuHXtiNXvPwafdZ/7A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Masahiro Yamada , Nicolas Schier , Sasha Levin Subject: [PATCH 6.5 057/285] kbuild: do not run depmod for make modules_sign Date: Sun, 17 Sep 2023 21:10:57 +0200 Message-ID: <20230917191053.666689864@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230917191051.639202302@linuxfoundation.org> References: <20230917191051.639202302@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.5-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masahiro Yamada [ Upstream commit 2429742e506a2b5939a62c629c4a46d91df0ada8 ] Commit 961ab4a3cd66 ("kbuild: merge scripts/Makefile.modsign to scripts/Makefile.modinst") started to run depmod at the end of 'make modules_sign'. Move the depmod rule to scripts/Makefile.modinst and run it only when $(modules_sign_only) is empty. Fixes: 961ab4a3cd66 ("kbuild: merge scripts/Makefile.modsign to scripts/Makefile.modinst") Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier Signed-off-by: Sasha Levin --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 901cdfa5e7d3b..a5178b9863fb2 100644 --- a/Makefile +++ b/Makefile @@ -1962,7 +1962,9 @@ quiet_cmd_depmod = DEPMOD $(MODLIB) modules_install: $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst +ifndef modules_sign_only $(call cmd,depmod) +endif else # CONFIG_MODULES -- 2.40.1