Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10063108ybi; Wed, 10 Jul 2019 22:48:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyO/oaL37k68jDgKpUyivtO4F37ZpZa5j3c8C00A6djxSY00TJdD80gnt+i29hhJr2SwWz2 X-Received: by 2002:a65:448a:: with SMTP id l10mr2424528pgq.53.1562824116003; Wed, 10 Jul 2019 22:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562824115; cv=none; d=google.com; s=arc-20160816; b=xWjMSsk7rk/FWO3MpSiWILzeVIUSEbK3TtMoQ0cQHy0m6rx9D6+wB/JeSaiQ0f7Xoe /XLES9H+XYVZg3xkzNceS0eqQ2ISqls4Sxa1ozif8+NOvY5+8rL2pbYuT4UF7vHbODvL 2EqcR0j33sx0CObGP1wy/tOQvYX2eMMdXfqUerpnNPQiuxRec6/QQy+oLz0oQKv7qtRq mM3/JXqVG5GcLm8VCREoHPr3NIqGaXxfHfKuZpx4wmCiXb0JOJChQVn6QXsezhZOI7Sc HmC7ETlATEmNclWnY3knEHeZvUgs8pwYdH2oyIK6c44l26YU8HNZQKdLtsKA38gWNV7V jg+A== 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=6aRVUmTSBwVJYpeiNrND1Xnxtiy5tFvj/eUl4BEOmnc=; b=XHFC1TILb1AdTzyJxMJ3g1P1jIQUfgQ/TMy6RjuiT9TVsMVdYdWJkVFRlz79qTuv05 c8z1cicxTn84Xrt3vzMiDstIHOYmAR/Jvt84MwGJDU/VqHRMgIh7aB3aLaMPKOMvIc1F VThnzND7awo+b4qpcM+w+cJcTEtAyUXsrKJ6GRT5ezPjSzZhQpK6cl0JkBZgowv1NyF0 w22XMk7VQLJEW0HxcVXcKQlS7x9UFkyiukWY0pyCxq44WVekm8elGdSZsEUwxDugGU2p oKaUgiRp2R9OQvmGJphicMiPmcgklmkeG5mKQ/7U2Pf0yyHCd+Ntm9/qiKp8PE41Vlpn 2rlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="gI/Vgxkl"; 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 24si4349588pgw.107.2019.07.10.22.48.20; Wed, 10 Jul 2019 22:48:35 -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="gI/Vgxkl"; 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 S1728233AbfGKFq0 (ORCPT + 99 others); Thu, 11 Jul 2019 01:46:26 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:59527 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728028AbfGKFpz (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 x6B5ip8P031345; Thu, 11 Jul 2019 14:44:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x6B5ip8P031345 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562823896; bh=6aRVUmTSBwVJYpeiNrND1Xnxtiy5tFvj/eUl4BEOmnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gI/Vgxkl42D76bzIw86W0xAvgqd/+P9LGeK3eqdoNY+/3cg32JjQiPq+OEI5ruDDa 53++i6RCIod+sjVonx9UOF0AwIH8wwyq+kz98nq1muLri3nAmE+/CY0hSD8vYgThxN xlluPEopOqRYPImPeZwz+pPjZ/CUOhFu0eRVuAXpLqSFg5cJow8jRY74FA0GNoS/zM v7VRJyoDyUx5aGxAtrYOA81J0VHJsSGZmLvcBY2QTHd4XpRw6RHIf529efE1P/YQxk RpokO3chRPcsLuBW6FmfUYun6h5aivyvfGhM3tSHAUgcYusgAmO6s+yO3sc9mLklIj wWGw2od18x9UA== 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 05/11] kbuild: modinst: read modules.order instead of $(MODVERDIR)/*.mod Date: Thu, 11 Jul 2019 14:44:28 +0900 Message-Id: <20190711054434.1177-6-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 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 v2: None scripts/Makefile.modinst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) -- 2.17.1