Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10063162ybi; Wed, 10 Jul 2019 22:48:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3mhvExqxb65R2o4tOMwAJorlyA6Iqju/o/4xKAzwF2dgHQnkz2QYV52EhXyaTlnfryX/+ X-Received: by 2002:a63:e953:: with SMTP id q19mr2453035pgj.313.1562824119430; Wed, 10 Jul 2019 22:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562824119; cv=none; d=google.com; s=arc-20160816; b=Q+WfJhZZW28gOTnVNZN9DVH1O861XJnV/RrsfiPH9ZEErGxAr5R+Rvt+qxGuIUREAJ 5xJA6wvWMmuJo1t1r2jsAJGTbcItrv4DgVFwDfefNyUyc4uDprKAO02+Xhn/d1GJFtrE CEosPijOEIg1eLqc32fx0mLnf/4LZFgLJmU9nuKvYW88JU4/Gh7PlUlTuC27y6gnqqQN QAPPUAogWWtSMhcxzZfiniaS4LLQx7mETgQTm6GGWtd6q7wAc6LuvOAs/b/LbXKdHZ4Y kSLT6FUQyqSEi9xX9jYFIZg7qcWhIZKUZhbeiDATte/Kahpil124QZnMa6RcS7amDZ0z +bCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=1zEZHAW0UpTSAns9BBkOgZFy59b+y/4j41w96kvIZ+Q=; b=a4CG0VMWro9YpQKpJZna+0XhL2hZ/TvCtBu2+d4PvVtKitiNKr06/zwi8mqYfLWUJl xgUx5coTx4RMxhSLpDlSftNEHkz/bZdXBsD3+b+DKqCl2T/Xyvk+TtnaIvIISrOY6J9X PEqCmmPgfpYRvSBT5ehLe8Y/F0+w0no2PEQQfLYgl46VMW5v1cW62CqK9AN2PavRl3PI rav+/N+xP/RZPgtmLGOD47Gu9w7Oq24+W9gUcE1j/tyQTMOm3mYuI68jjAqA/EowEtd4 UtsV6twzwlrjlN8SbamFOdVYt4lpRtkAcZwE2YHWmksB+QDUEkKh1hL6rMKEhBXzDKs0 sQBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=G9HS4ZmB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g90si4035250plb.282.2019.07.10.22.48.24; Wed, 10 Jul 2019 22:48:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=G9HS4ZmB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728252AbfGKFq1 (ORCPT + 99 others); Thu, 11 Jul 2019 01:46:27 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:59526 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728030AbfGKFpz (ORCPT ); Thu, 11 Jul 2019 01:45:55 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x6B5ip8Q031345; Thu, 11 Jul 2019 14:44:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x6B5ip8Q031345 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562823896; bh=1zEZHAW0UpTSAns9BBkOgZFy59b+y/4j41w96kvIZ+Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G9HS4ZmBuLG3L98G76TzvdwLRWUjZU78qt+ES9tTxhlzPWOFwsgPsbVLHjglL8kvQ hbg5pY2s6o5wEuZN1Kl27fO0NqkDOVWyJ3aTokFSk+RI+pSpTX1DeuYNxVJ0Cy1Lvd fMZtfyaioNI0HgIsrPdwLj540EOcTokB7xK/KYZOPfsMwYiD4hNyB3bHmRVz54y0pp zFfi/0Y2H52/KbLxpJQn0EDOEg0ev1cLrHpYWd3ziHTnH7C68i/4Ws45P2HrLeYt2X eRRQ3Uiv1sG71oNfaEa67YbosbyH4DGDYrXg1DUaPD2ihc1aNcR+JAxcltcMrZzB4u ld3fC6bbVTaXA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Nicolas Pitre , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2 06/11] kbuild: modsign: read modules.order instead of $(MODVERDIR)/*.mod Date: Thu, 11 Jul 2019 14:44:29 +0900 Message-Id: <20190711054434.1177-7-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190711054434.1177-1-yamada.masahiro@socionext.com> References: <20190711054434.1177-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Towards the goal of removing MODVERDIR, read out modules.order to get the list of modules to be signed. This is simpler than parsing *.mod files in $(MODVERDIR). The modules_sign target is only supported for in-kernel modules. So, this commit does not take care of external modules. Signed-off-by: Masahiro Yamada --- Changes in v2: None scripts/Makefile.modsign | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Makefile.modsign b/scripts/Makefile.modsign index da56aa78d245..d7325cefe709 100644 --- a/scripts/Makefile.modsign +++ b/scripts/Makefile.modsign @@ -8,8 +8,7 @@ __modsign: include scripts/Kbuild.include -__modules := $(sort $(shell grep -h '\.ko$$' /dev/null $(wildcard $(MODVERDIR)/*.mod))) -modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o))) +modules := $(sort $(shell cat modules.order)) PHONY += $(modules) __modsign: $(modules) -- 2.17.1