Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7412505ybi; Mon, 8 Jul 2019 21:26:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyU/ZW8M1RoWinjvIRnrupJLo8EtkZw294dOCMhiDcLdpkXHnzwMcfAzMXbp1QVzTSzQiu9 X-Received: by 2002:a17:902:fe14:: with SMTP id g20mr27924112plj.54.1562646399996; Mon, 08 Jul 2019 21:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562646399; cv=none; d=google.com; s=arc-20160816; b=eocJ2iB5ICUHMDwX3zJ5gvO2Y0KgdJbBJhOPlojWB9gjlZirqfxTNnyEw9fwIxSev7 YorWQ9j2oKRF123O57iYRNnKEQkFpf3/WYDLxY+TI+K+VOYWuLFcwZOKyEu66bs98zxL Sw0s07Tt5ebiZtz5zHQPLcBtw7sFx8lXUqpNnuAcPkwbHaBXXXsDWAR2HisP8aD/cP7m LwXDJbG/PtZdTbdxfilladrDs7kfa17JjSi9tUfDLdlRou97hAIIydnib++9vMX7BHtI XszwwUh+Zi69OIzbeWCIS4Io9UDm5zweBHVuEBbfTTIDHEHb4077HdrT9f3vWmDqVV7j lZ3A== 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 bg11si1530136pjb.72.2019.07.08.21.26.25; Mon, 08 Jul 2019 21:26:39 -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 S1727491AbfGIEZy (ORCPT + 99 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