Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10061881ybi; Wed, 10 Jul 2019 22:47:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuyBe03XEZd5fK98bP0d/9fpWuNnMlA1E1A3w3PsQolHz4MOvwTGksLNA/suhH6FityD0s X-Received: by 2002:a63:7a06:: with SMTP id v6mr2465517pgc.115.1562824024011; Wed, 10 Jul 2019 22:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562824024; cv=none; d=google.com; s=arc-20160816; b=wXRmowjyQVgESm7VWJhSVk+VDoSxK1eeqwNDhA5QNE9NKcO5Y2Mwo8NqsLXxhbT/iq 9Cyk0nwRKFj+pvTsKqA2/B3T+q/aZyxnK1XOHBN9hEfoDBUHJuD1O3F0IVTcBDmtoOSX fML5P4IMgBcDgL6BnVb28yYHLn7FEsiomPgSYH+X+cilGvy7QryGkw/ZApmFCCZYXZBu sjiUy4iFeqYH9ZTPWTcIbmVD3GOrC/1AmIvauhfHJP7lNRBiSyg6lyGa01zRPyvENXQC EcdTq0kHub8jUVX0XQJztJ6ujJgTFxdFGD/KEJn1oIYtWEU2k990TsMjm6i8/NQo6n8q 6M8g== 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=dURe8OXsJ3VqMwo+bDGqg5UHB/JeoagK5A52yE/eJIQ=; b=Zskab3b97sdrJOXfs8K6ob7z8D7o0EwCt6sJtuLEP8sBmBfKNDUYad2schTBumbgBj UZW2szYIpr5whbOWWdkOJVqvKRnxbh1j3C7xWVuB702hPYFJ/PH5MnQfkEActl/lkN4A ynafuJMXlqPC6l3AiqLugURWnK4/pmDzgroYLZuwPk44rCfXWNhBQDZkgsG6rbZg06ex QGDWJRe3Qg9NZxFcas0txdBEwDhI3mojYQnB8iTXxWS/VP16NaMeet6TCCFhJ/5F7hc1 T9TaGGBRXSWSic/WC+Ur3euPynRhXV9AOL00KW1mfpk3L1yhzMQ1D4rHYLF2PxHYnu49 8xFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=o8B7IsVT; 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 z6si4128527plo.193.2019.07.10.22.46.48; Wed, 10 Jul 2019 22:47:04 -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=o8B7IsVT; 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 S1728192AbfGKFqO (ORCPT + 99 others); Thu, 11 Jul 2019 01:46:14 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:59981 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728147AbfGKFqL (ORCPT ); Thu, 11 Jul 2019 01:46:11 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x6B5ip8K031345; Thu, 11 Jul 2019 14:44:52 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x6B5ip8K031345 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562823892; bh=dURe8OXsJ3VqMwo+bDGqg5UHB/JeoagK5A52yE/eJIQ=; h=From:To:Cc:Subject:Date:From; b=o8B7IsVTM7O8ebdGZ8tXaasbQBj5NmkLDOc3iIhjP9359znVcnQTuUdOK6UC6mmXE 45Zgwg/FsLQbgWRTlt/cU4aJJN8/PTsL9ZG999cPSmXIOI7U3JpBnqRIntmkQU7Qcy ndcdt66nJrGMd6XGsEI3b7RUskh67AzBy420AzW8vMIpKeodw3IM5blZI2k7ftRXMZ kj/VXexLQ8POkXfh58JLCoFBvE4fR4AzvMNOB/oxL5n78EgsV11LNlNYsIUoV7O+9a 40u4AMEut6WnHxXuzOoxbEO/QqBnE1/vLBWaqQaHOa6mgs8heu+mi8jCXRawzjhtj9 6IUAcLtXUswvA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Nicolas Pitre , 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 v2 00/11] kbuild: create *.mod with directory path and remove MODVERDIR Date: Thu, 11 Jul 2019 14:44:23 +0900 Message-Id: <20190711054434.1177-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 | 36 ++++++++++-------------------------- 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(+), 88 deletions(-) -- 2.17.1