Message ID | 20190709042416.27554-7-yamada.masahiro@socionext.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8019096ilk; Mon, 8 Jul 2019 21:25:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQvlpzqiVepxF+9rqoIrdRCva7hErOJ5LlJCcPu5nemXgXFb0Nf3pk9f2GM0ZJdQzN4kOC X-Received: by 2002:a63:490a:: with SMTP id w10mr27668382pga.6.1562646351697; Mon, 08 Jul 2019 21:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562646351; cv=none; d=google.com; s=arc-20160816; b=R/ZveLFySDuaER52rGJczMRcjk9shyOKjU2YJJOOrlIt/eNDJEHX3GaPvNUq5mPdwc mk4cLgBtLZpMScUJLEDQko92B0DlnW5j/lPDVgTnyA+DmorV06PpsHzZhcnyHJyyu4dH LSn7NZ5sv8XeVLADNwr5ELIYfIR5hUNCmW7i/0J9Qzb5iYeWa25jL7zdNufTOwtija4l i5pNFRsY1qn5l5cOa/vfC3gv0niVxv9dUTe0i/edFgR9LyxRHg9g5Sra6ANZfpKaHg3C +B8j++tNbXl19v5cT9/m0xEYqPlfqgz/MHG7P79gtCJYFk9aPIpo3c2cQgRzQOlUJ6mf slGg== 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=9GTu+fhEWSsaBmqXT5Bo1ItxiSb25+D5qSp//fAlJHI=; b=GaxDttEedrHpruwoWortNUIIlS8EHffiEhZRiNlkDaFOuewN56FGfw9JyBjcSBFZKP ZxsqhnKSL9Y4VatWUYFK19zmKVpHiE04eShZmWl7cv8M3mrqi3O0F8X7ojIuuI19wIEd ADvaYV9s7RHD0rS1OfPbLb0TYuEp+Rmy8YfQH858fODGMgmCtXkMs9u5kMpZEBmozt6B aOrITHX28RULX5ECRwMLViQNt+4GG6sHlb4ZcRCUeYNEA5zF83nQJuNRo4lYiw0bh7ZO ZMmnOLEk3QvlSG1h5DgfyvQPEH5YZFuN4B49JQoFnfqI+KnBvkwwpdATx4HL6bZP3WPu KGyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=RynN3YqE; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z25si20039932pgk.415.2019.07.08.21.25.51; Mon, 08 Jul 2019 21:25:51 -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=RynN3YqE; 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 S1727386AbfGIEZn (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Tue, 9 Jul 2019 00:25:43 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:42169 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727076AbfGIEZl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 9 Jul 2019 00:25:41 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id x694OqVp009969; Tue, 9 Jul 2019 13:24:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x694OqVp009969 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562646298; bh=9GTu+fhEWSsaBmqXT5Bo1ItxiSb25+D5qSp//fAlJHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RynN3YqErvmL/4fPzpAU7OmzJQFrUjduikscS1EBsDjjl0ia0n94ootoO0O81BxaI 6u7ZKygViNX0ZYW4PIuFExrU7PXYTjT3YSibs04PMnHqeIqz7Xs9RkD230xlUAdWVv BNQIqTIF0OZhUKV7SO/E6r1cQ7XP8rVQcLGsn2kRdlpkw5fF4viTevwX7mchammvxb i8H9F1CMvQK3ST1YYxbi+eRzB7CgTusECLRwmg12d3OrVtr+D2aZ9GHdH2DlgX/APD C2f0KfeFx5IxwyeyJ1SLIO6GHzeovv2qOIj9IEmQcussE3uAY81P6bO4/qB7NURWAc s10bsPfeTVquw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada <yamada.masahiro@socionext.com> To: linux-kbuild@vger.kernel.org Cc: Nicolas Pitre <nico@fluxnic.net>, Sam Ravnborg <sam@ravnborg.org>, Masahiro Yamada <yamada.masahiro@socionext.com>, Michal Marek <michal.lkml@markovi.net>, linux-kernel@vger.kernel.org Subject: [PATCH 06/11] kbuild: modsign: read modules.order instead of $(MODVERDIR)/*.mod Date: Tue, 9 Jul 2019 13:24:10 +0900 Message-Id: <20190709042416.27554-7-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190709042416.27554-1-yamada.masahiro@socionext.com> References: <20190709042416.27554-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
kbuild: create *.mod with directory path and remove MODVERDIR
|
expand
|
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)
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 <yamada.masahiro@socionext.com> --- scripts/Makefile.modsign | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1