From patchwork Wed Jul 17 06:17:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 169099 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp530224ilk; Tue, 16 Jul 2019 23:19:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0L/SSm/Y6GKaHVZg2EZ/eP//6u9Qg8LGoicRgl6Abb5CK/ZkxZLCovqOdcBjxer/2MDFQ X-Received: by 2002:a17:902:e65:: with SMTP id 92mr39411017plw.13.1563344340687; Tue, 16 Jul 2019 23:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563344340; cv=none; d=google.com; s=arc-20160816; b=mFaPvy2DF0vRRnWRMB+uqEVFgDigLQJoCaEsdCHTg9Swss6q9WCPBWGAu9sd7l9VTl +HKivLXeWK4VSkljmZbRVcN8SNBHg1BAoLbOB+U32wOxhghsH178bYJAxhak7hlx4MC6 qMXw8dB7tnRq/vyR5Ze27Lv24Z+QkGauoOi7BIioDhrjzjmAGXevHuvgU+QQafHfV/zi GpQQoFSCeMze0ljP0Z+VGY6wT/1h2F853E7g8sGYRclc0Tx62w3GteCGlulQkJsg2pkE Mai1HskkT07+35iFnnYUCdPJ4fNntNnIOwv1vOPE025qpfW2mSW8qxiW9ai4F/2ZSXt0 h/Aw== 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=MsNRvlaE02YX1DTdpyxIjkokwz0Ur1MdtPkFVwAq4b4=; b=LqzHOECNznkQr/xSn7ZvLuhnB68IZ/YZDYIsQeP1GgR5pl5BCVcjAOC/dJkmlXdDtD efJPHSUNeJ9JXIFyolrU/gCHmwuP43zKwX0kcynnGpowpro5LQGoquL5VW/pA7y0HK/l sAO9ZFP8HfemXMKBUWj6JD02X9+E9I4mnVyNInG5ZXaQ1WRfqlXk1uD9PQjBC43lnVkk N0cNsRt2ANdgPnf8HtWIQu59e+8JoEcsfQdLYwnCU/E2QYNxtgdWP05g9/tuo/NyMAF3 kOmDfiswtpZGYCQQYH8ZTSKPapUZrJG+lu6TkHBDNlSG/9qgMBMkU2FUpQPzfVwOSnq4 bNzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=oq3djoWp; 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 v15si22454316pfm.238.2019.07.16.23.19.00; Tue, 16 Jul 2019 23:19:00 -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=oq3djoWp; 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 S1728497AbfGQGS7 (ORCPT + 29 others); Wed, 17 Jul 2019 02:18:59 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:63621 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727582AbfGQGSu (ORCPT ); Wed, 17 Jul 2019 02:18:50 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x6H6I5Oc009435; Wed, 17 Jul 2019 15:18:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x6H6I5Oc009435 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563344286; bh=MsNRvlaE02YX1DTdpyxIjkokwz0Ur1MdtPkFVwAq4b4=; h=From:To:Cc:Subject:Date:From; b=oq3djoWpo5WcGiuxcGvDlSmpHWrZr4kgViu2MjtmR1w8MEVYnSfr2mP4e04Ptg9kd wyFg3Ycl2l0fQvSostoJg0269KOkRZR0cGf3kw3/cH4Nn67ugenUgiHeRBrofPvLt6 4gXYWNCsMp7iXdiLIbUxLzIpH3rZDoYOO/bRkdjJmzKepG2gRIwb1u2uVt0NmfiY7c wyhhDMuG7r6fQEyiYXU+XoFcdLW4hzWwjfFpkUxFBbvu7sFwifEHp08xAZpmJPJqW0 isneZcJ3sCva4Z/DOlClTkLv/FqyqykwttLTfpbGThqEFuZ9MhOlYvxAIeFyoJSSZx NeHOHn3Up2Hag== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Joe Lawrence , Masahiro Yamada , "James E.J. Bottomley" , Jonathan Corbet , "Martin K. Petersen" , Michal Marek , Shuah Khan , Thomas Renninger , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH v3 00/12] kbuild: create *.mod with directory path and remove MODVERDIR Date: Wed, 17 Jul 2019 15:17:48 +0900 Message-Id: <20190717061800.10018-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 (12): 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: export_report: read modules.order instead of .tmp_versions/*.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 +- lib/Kconfig.debug | 12 +------ scripts/Makefile.build | 40 +++++++++------------- scripts/Makefile.modbuiltin | 2 +- scripts/Makefile.modinst | 5 +-- scripts/Makefile.modpost | 19 +++++----- scripts/Makefile.modsign | 3 +- scripts/adjust_autoksyms.sh | 14 +++----- scripts/export_report.pl | 11 +++--- scripts/mod/sumversion.c | 23 +++---------- scripts/modules-check.sh | 2 +- scripts/package/mkspec | 2 +- tools/power/cpupower/debug/kernel/Makefile | 4 +-- 16 files changed, 62 insertions(+), 115 deletions(-) -- 2.17.1