Message ID | 20190709042416.27554-6-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 e2csp8019036ilk; Mon, 8 Jul 2019 21:25:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx4VqQ7X9lFP15oh5QF15ZY/31CD/vME5U0iJr85GpnVlwGWmzxNAFLrOrNdXKgacdVR4/ X-Received: by 2002:a63:231c:: with SMTP id j28mr27627256pgj.430.1562646346769; Mon, 08 Jul 2019 21:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562646346; cv=none; d=google.com; s=arc-20160816; b=SayjPrQAQ0pSUYAVC0uP6zcfWxtJM5NEL1k6TyKorn0uZ3Smpvyu7VLQrIDI5Zhwgr Y4zp+YDknwe83vjdAwGEGGKonIrTIavSLNdarj7q0gZIb2CzbYRyTA9TrmmQqbGXx7Zc uNvIC5PDfoNUXN3hAqW/yM1goJAXarpOGEDsHTmZu/WYGLAVdXmezTgK+OyX5V9Zy+fx TpLvAm0W/e+im9rA8AT1GFnlZd3jJ72dc2kuMvxYELa/CdvtYtu2Y9TGOFVYeste7U35 DfhrHKgFeHlWChuWbf3EigGg22mzsQw4pZmGQ6z9zmyWsDrhJOQoaRSAHiiPuOlS4fpY mNAw== 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=X1+deifnjdjSHLxV0pVUrGpafNj40fiq1sx4t0gZorM=; b=QLcEDy+JXDNMwMHoSdbeHQMSZ0gLFfd6CsyHtUbW8dqgsmbeMT1kBFIbYygpZiWaKW 31Ez9/MrDm82K6i54dULBFW4LGqwhTP7sL/gRFI25DIenFjPphdakIq9NFzJX2sxbw3g Xq7rq/m1//2/Do7O83KyW25rmSofeBgUbDCdZJlj4lQ7Q2s51eBtctb/yinaf6MYW50b Ly38xEk0u5XwS5r/LQwsrRiQncOLKdaWMlgPnz4V7f2PiqZwkhTEQ+nSsotVqhbjnstx Hq05uBXSNXwKYylPQbLxcO+NOHnP6zgFefMKQ4nq8bO4n0l5+2bXiZY84qwKb0aZlrx3 XJwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Zg+UQJmy; 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 b93si20826176plb.11.2019.07.08.21.25.46; Mon, 08 Jul 2019 21:25:46 -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=Zg+UQJmy; 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 S1727450AbfGIEZp (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Tue, 9 Jul 2019 00:25:45 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:42168 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbfGIEZl (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 x694OqVo009969; Tue, 9 Jul 2019 13:24:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x694OqVo009969 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562646297; bh=X1+deifnjdjSHLxV0pVUrGpafNj40fiq1sx4t0gZorM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zg+UQJmy7E8cn5faf6+Vg27zaelbAEWXhvAezc1dOOJg63MBjWxu+xikR8JGFx0YU /laI/bxxIArWJEWpda2PHKitHbRVa1pysJXLABDnUveVHYQIkjWJbwYp9sGk0zmbY1 xNXlECMA5d/UPPW2Adc84OJC4s+YN0olEEoUkPmLM/fXOly+gnWxF5I+7EHmi5BZ+w Dw8/l8sNJoFb7w8MqV+IpgKlDt/oh5r5cctsV34uxdWTpkWZR5AJ8WZyLakMoOmu3C Jafsq6nbuGgntDX/2PJi7tlZlyvox2+Rk3BkQKO4lr4WckdL4NPGDuaagM0w4GSnuu hY+/glG8bH5ww== 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 05/11] kbuild: modinst: read modules.order instead of $(MODVERDIR)/*.mod Date: Tue, 9 Jul 2019 13:24:09 +0900 Message-Id: <20190709042416.27554-6-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.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)
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 <yamada.masahiro@socionext.com> --- scripts/Makefile.modinst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.17.1