From patchwork Wed Jul 17 06:17:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 169090 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp529747ilk; Tue, 16 Jul 2019 23:18:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyM7TRcp3q3B1pQNK5Zpbv03lvMTVPOa7I2UW5HgpW0r5YpKV74TCTjfKS+pK56hUHABRNC X-Received: by 2002:a63:755e:: with SMTP id f30mr39349872pgn.246.1563344308842; Tue, 16 Jul 2019 23:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563344308; cv=none; d=google.com; s=arc-20160816; b=f/9O7msGwPs0sJ85ouXZrtCawW3cBzN00PpcWr7UiVQq3cBhCon1+nwmZ3sbZRaICS Z/Yen8YdhxVMzHfRnkBMxYexzhZs+fgNGECV7mKfOJAUtAVvjr92a1UHF8Zcw0b1REHW cDM80KpE6d4FXV98ItacSu7x/E8mtCLbKmfiLzE7OcpFnlQaxHfJT16lMLK68XivAiqS JiQtT3hopl3cmcyFfny/fwgLGscBidyPGFPscAwGa36f1+8r9QKC4KSPpeDX74uJBoDp /D5EmAn8kZiB4/vf+JXWSJCYdtfNfofauESRhlcr+okzHa1m8sQ+2yeBd5+AN+44TAzV WlEA== 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=+yHX6hQw6OuR92f/Hwcn458uT44htMCycbRv85DrcTU=; b=NVkP46UkIm8Nqh7Q033Yij7faL93Sw3fozaW3jA/a1AAc+M03RCjXkedOUmEz1Ew5R miN1y7fVoNc/nrxuJWxwTqb6j7jYu6yXgXibWUk37WH/20RNNwQJ1DswzB/4XNgYsxa2 OwZ6BmgUuwfmgSt4j74z/PTazQ9vzuMdShpGRAAQrtRKT+AtI2y0iKaMsT8nsP70Fvfk /VKDet1FqXwJqbL/ULLQFU/EoNEUEP6WnxPaCj/fgTGXwuzUwZKQHFaEg93jzQXMRDE/ ZkMDeUTkVhKz5kUOa69u0rz+oQuBKpmlrH1htWIvUnJcRDYPWYMYpxQxvlguBySLI9Zl u/iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WnnXStxn; 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 d9si16559388pgv.577.2019.07.16.23.18.28; Tue, 16 Jul 2019 23:18:28 -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=WnnXStxn; 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 S1726949AbfGQGS1 (ORCPT + 29 others); Wed, 17 Jul 2019 02:18:27 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:62957 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfGQGS0 (ORCPT ); Wed, 17 Jul 2019 02:18:26 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x6H6I5Oh009435; Wed, 17 Jul 2019 15:18:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x6H6I5Oh009435 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563344290; bh=+yHX6hQw6OuR92f/Hwcn458uT44htMCycbRv85DrcTU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WnnXStxnJFNvoFfWAQmGD1Nbi4KX7Y2o6KZ5tH7MndH+tuICLHarIOUq1rYFe0pqm mQJvAhWDUo16SQ/26eHp0GTuiWRFU4EzJoXOtMMQaza3xCNhWVqPnJPSl+NeC/mx9O NNQKwXZnGpSPj9X5Yds2DV9bWe3HjgMwkGIcR9k/x579hz0bojLjW20boi57r3MNnd QJa3f54MDuKZbe7I5EkdLDrk/Xk5teT8KYLfvE3hK5IAUxSYnvKebHQYGt1LCHP4se N0oC0XphRuQ6bMvVOigXkDb6xCJSBLX65Bpzm5S3p+x9Hs8qvV07NG1wbCLF2/rZvm C93Z58TrTlJHw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Joe Lawrence , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v3 05/12] kbuild: modinst: read modules.order instead of $(MODVERDIR)/*.mod Date: Wed, 17 Jul 2019 15:17:53 +0900 Message-Id: <20190717061800.10018-6-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190717061800.10018-1-yamada.masahiro@socionext.com> References: <20190717061800.10018-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 installed. This is simpler than parsing *.mod files in $(MODVERDIR). For external modules, $(KBUILD_EXTMOD)/modules.order should be read. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None scripts/Makefile.modinst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.17.1 diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst index 0dae402661f3..5a4579e76485 100644 --- a/scripts/Makefile.modinst +++ b/scripts/Makefile.modinst @@ -8,10 +8,7 @@ __modinst: 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 $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/)modules.order)) PHONY += $(modules) __modinst: $(modules)