From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 7917E386440; Tue, 5 May 2026 09:10:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777972245; cv=none; b=BTQ8HQ16oHoV15U+ZSr1tNO6Zua45p/D6MDpbNsVq0weClfGIgVhHGtk9MdZFdq9MjyQ/4TDs5Pti0XCNjkpEDtX+wmhv/L0G1BYx1iaUQLTZ8XeiJIBPhSRetSXxbnakU9f0T+2Nny3+1TUq5HMK2WYzh+aSmHhwBT1089ao5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777972245; c=relaxed/simple; bh=OjVEQENALnBrLz41nWZb6yT3a4erxpjD/nxLglpoCvs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t3P1qiJgwc2oNuuyI3hIytDKRjepMkm/zm69/g4ZCtUfN2XfhiegqEID3mvGSFoaoTnJ3/mUYOJIM36qOG/j2gGvVwk9nHk8IbaRrbiIJRh73ElPotepacLfSsc+AoX0H1+6hBL44DICI93P0mG1b2+ombvhhxmMAkK8Rrbxk6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=XYlaUPL2; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="XYlaUPL2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1777972242; bh=OjVEQENALnBrLz41nWZb6yT3a4erxpjD/nxLglpoCvs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XYlaUPL2+1keZjN6BW3dcVpUl1RE38eQ/mlaVVvGmo2i9QCzRFbU331m2UYsSbCld hta5KOZvDq0W86hZIs2n1rYUwCZ+NdnAkIxcW5Y5qHrZWxaytUG2jOyjEHymCGLDmA Xja87gSXTb9+q0HubyhjmtkQGlwGOrsIzkE2RZwc= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 05 May 2026 11:05:15 +0200 Subject: [PATCH v5 11/14] module: update timestamp of modules.order after modules are built Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260505-module-hashes-v5-11-e174a5a49fce@weissschuh.net> References: <20260505-module-hashes-v5-0-e174a5a49fce@weissschuh.net> In-Reply-To: <20260505-module-hashes-v5-0-e174a5a49fce@weissschuh.net> To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Nathan Chancellor , Nicolas Schier , Arnd Bergmann , Luis Chamberlain , Petr Pavlu , Sami Tolvanen , Daniel Gomez , Paul Moore , James Morris , "Serge E. Hallyn" , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Nicolas Schier , Daniel Gomez , Aaron Tomlin , "Christophe Leroy (CS GROUP)" , Nicolas Bouchinet , Xiu Jianfeng , Christophe Leroy Cc: Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , bpf@vger.kernel.org, =?utf-8?q?Fabian_Gr=C3=BCnbichler?= , Arnout Engelen , Mattia Rizzolo , kpcyrd , Christian Heusel , =?utf-8?q?C=C3=A2ju_Mihai-Drosi?= , Eric Biggers , Sebastian Andrzej Siewior , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org, debian-kernel@lists.debian.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1777971921; l=973; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=OjVEQENALnBrLz41nWZb6yT3a4erxpjD/nxLglpoCvs=; b=uffap1Yp7A9oUyxJAg/JMqLbZ7j2qeL8SXGije4OWjL3Lmqea939UF78GetZTKRZdUELCxw7k wcm9ivOs6zTCvQInib7BHj9Xe5zk405K6/DXSFSlvx+rY7B0KYo+1yw X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Make sure that modules.order is always newer than the module .ko files. Other rules can then use modules.order as a prerequisite and rerun if any module is (re-)built. Signed-off-by: Thomas Weißschuh --- scripts/Makefile.modfinal | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal index b09040ccddd2..44a382689a5a 100644 --- a/scripts/Makefile.modfinal +++ b/scripts/Makefile.modfinal @@ -66,6 +66,13 @@ endif targets += $(modules:%.o=%.ko) $(modules:%.o=%.mod.o) .module-common.o +# Update modules.order when a module is (re-)built. +# Allow using it as target dependency. +targets += modules.order +__modfinal: modules.order +modules.order: $(modules:%.o=%.ko) + @touch $@ + # Add FORCE to the prerequisites of a target to force it to be always rebuilt. # --------------------------------------------------------------------------- -- 2.54.0