From patchwork Tue Jul 9 04:24:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 168700 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8019154ilk; Mon, 8 Jul 2019 21:25:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJicjOhXx7wpERkOLnIJ5BJGL5YP1deYDrRHCYnj8PcOAiobG3er857oaazOwxBoLSArY5 X-Received: by 2002:a17:902:e512:: with SMTP id ck18mr27888461plb.53.1562646357060; Mon, 08 Jul 2019 21:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562646357; cv=none; d=google.com; s=arc-20160816; b=pNG8EtlWYo++LnhJkuVoawi+DnHmrNycUcThkpz+QNwOHYAvZS2l8VIN78PoP0ZtVK POiwt6BOO1ezJSdUnbQEMUvqtKs42RdGbr5wFDpAV+KSmwptNWtHvQzLzFRfIzyoijMU uFC2KbyA4CjgcSpjYOjOWPtBb4tog5i9hkAFZo8Zw0FYkhw2M8gnFgqCX5I53wLFFtqX ipXVbEGBfFPyd8shFrHt9YQWc3+2bGEe0fX6IlbZpsNb3c6rimqnk877TRz/rNjx5Hdz KJg1zTZ+vaU8pkWRVH/0rlOapc1Rug6d1hziA3f7Ac9eJnRcFXPraYP/oXW01eKKjOR1 iNMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=4ZrbChqp9XlDbu2jnXmxXGqVpaJBsEdyTZt35TheD7k=; b=02OdA2e+DjW6DWa4TIhCG0fFYmM/6ImNZR584rMAYPzgYbi+ScOfcaBBUiADKq1k+9 V17oSBedIguD9edLrPPBPH3enaHLQbS+FgufJSCmdObe81BeBw7oczBqv3tLucCNHL9z fsCJubhmNrPjiPwoFLWHHeML4AM1mxyxo2aXpv1ALLTJftJYr0o6k0+b3nGF3QmNwcdV Wr3dAj2flSVPDnqA9JkQ8ZD+RRWSksCd+iPChFqGSieWgQtBpCbfD406onJ0zrMmEoVB /NSXEXEVm1uO7J/yY6oeYp6ZG9EStniKIdufqp/FEBm8OxXicfqEHFcRIRzZz23VQnLR L0xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="h/yr3UD8"; 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 bj5si19529023plb.227.2019.07.08.21.25.56; Mon, 08 Jul 2019 21:25:57 -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="h/yr3UD8"; 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 S1727500AbfGIEZy (ORCPT + 30 others); Tue, 9 Jul 2019 00:25:54 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:42461 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727454AbfGIEZw (ORCPT ); Tue, 9 Jul 2019 00:25:52 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id x694OqVj009969; Tue, 9 Jul 2019 13:24:53 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x694OqVj009969 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562646294; bh=4ZrbChqp9XlDbu2jnXmxXGqVpaJBsEdyTZt35TheD7k=; h=From:To:Cc:Subject:Date:From; b=h/yr3UD8r29twM9ZfD0rvCb5/Opp9qq5QZkleLNk2AI81UAh2X00lSLE5z86mpfLN pdrjTHpIGoKjDA9TFenfXZ0+xzGmVBl/DCMSPi36hrtgq/Pvt4m4ffHERWOQR8DTB4 mPHDsDQGLsB81EZRttpzi5oBObO8MXyqY76LW+SuMM5Xh9J5pj7abreOl/bZ1rtzoP f8CokcSxN6a8mc5iJ3/jX0/vLcViH2nWnbbO4V6TsWlfy2xWjWwpMBG0c4aqnfqRrP lbnhIw7tQZAdcJAC4K6tXzG7hkUK02jGToWNTo7ZOYLRbwQNAzTLc+mtaj8kOQGRB+ K7taoDasQ497Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Nicolas Pitre , Sam Ravnborg , Masahiro Yamada , linux-scsi@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Michal Marek , "Martin K. Petersen" , "James E.J. Bottomley" Subject: [PATCH 00/11] kbuild: create *.mod with directory path and remove MODVERDIR Date: Tue, 9 Jul 2019 13:24:04 +0900 Message-Id: <20190709042416.27554-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series kills the long standing MODVERDIR. Since MODVERDIR has a flat structure, it cannot avoid a race condition when somebody introduces a module name conflict. Kbuild now reads modules.order to get the list of all modules. The post-processing/installation stages will be more robust and simpler. Masahiro Yamada (11): kbuild: do not create empty modules.order in the prepare stage kbuild: get rid of kernel/ prefix from in-tree modules.{order,builtin} kbuild: remove duplication from modules.order in sub-directories scsi: remove pointless $(MODVERDIR)/$(obj)/53c700.ver kbuild: modinst: read modules.order instead of $(MODVERDIR)/*.mod kbuild: modsign: read modules.order instead of $(MODVERDIR)/*.mod kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod kbuild: create *.mod with full directory path and remove MODVERDIR kbuild: remove the first line of *.mod files kbuild: remove 'prepare1' target kbuild: split out *.mod out of {single,multi}-used-m rules .gitignore | 1 + Documentation/dontdiff | 1 + Makefile | 33 +++++++++------------------------ drivers/scsi/Makefile | 2 +- scripts/Makefile.build | 33 ++++++++++++++++----------------- scripts/Makefile.modbuiltin | 2 +- scripts/Makefile.modinst | 5 +---- scripts/Makefile.modpost | 17 +++++++++-------- scripts/Makefile.modsign | 3 +-- scripts/adjust_autoksyms.sh | 11 ++++------- scripts/mod/sumversion.c | 23 ++++------------------- scripts/modules-check.sh | 2 +- scripts/package/mkspec | 2 +- 13 files changed, 50 insertions(+), 85 deletions(-) -- 2.17.1