Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7747637imu; Thu, 15 Nov 2018 00:31:36 -0800 (PST) X-Google-Smtp-Source: AJdET5c+fK+2z8LF4oFUXWFP/W0iK3MWIzM7kDAPEwH2q8CaPEOpv408BQiCHEuMG0Suc+qRJjG/ X-Received: by 2002:a62:b2c3:: with SMTP id z64mr2022203pfl.120.1542270696619; Thu, 15 Nov 2018 00:31:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542270696; cv=none; d=google.com; s=arc-20160816; b=jGaIpZK2Wf8faF27HOkfjiYh/Ag4eSup3+MxTjFUT2GiaBv3lCKXirafcpX1AdPDI/ Zp2m0YfPIeqM3KHNYxKeRCa3kDhsrHaePd3UsTtuxo6ap2O/I0kLZycOsLo3zftnQZqm twQHyQN4Rehx0MvbhekkxKUZPOjANX46Ez1ANHIYBkYkCj78LKaTXB7QxGKzIJVhXipx YpzTqF4SsSAmTSQIKAMe/vGU/3ucgxnVh/Do8Bn8urDGVw3wCY9a/N2BjujZ/PVKf4Xo dQz6U4ummxUIPK368sqHDFm8qmvUsLNP5+O2mTUKDpLaBZW1wUf4w2G/O81YsA1GXb8c 39GQ== 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=IRtBlra79ityFxOzerUxtBZ6lgbNtkSmw7waFIWzvW8=; b=zP6etbtyXlW93rmby0vqIl/KHRuZQbx2rKRWvyk3RGnCJJ1GF2XB+tYW8EBSuvHH6S NnVfDj3uC8VrWQZj6diMaGBCb+pleYYm7FD/BCJxGBXoCAYyqjFpVXDDDHsjOTdQcqTO JKzZmZxcvgO0xp4x0bT9HsoNP1XhrQDlb+cCVC46U5ORUO5w73ZR9me9bVZzELMHbA2I usMWUOVRpZYCxv6jz79UOnO9ZrzKSfr9lgzXZXLOLN4R3afsXn7xwz9WbqUmsDraM/2z eW3dLz+48bHU13vSKX8mWI+YTN8POxdmDtUzWlg0CUcVSeChfLNjY2QHPe95K/HPfA5B arBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="L0/JYsGC"; 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 t5si20588905pgc.369.2018.11.15.00.31.22; Thu, 15 Nov 2018 00:31:36 -0800 (PST) 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="L0/JYsGC"; 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 S2387621AbeKOSgd (ORCPT + 99 others); Thu, 15 Nov 2018 13:36:33 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:52830 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728673AbeKOSgc (ORCPT ); Thu, 15 Nov 2018 13:36:32 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id wAF8RHoX022794; Thu, 15 Nov 2018 17:27:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com wAF8RHoX022794 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1542270439; bh=IRtBlra79ityFxOzerUxtBZ6lgbNtkSmw7waFIWzvW8=; h=From:To:Cc:Subject:Date:From; b=L0/JYsGCHGw9RdA0nXXyQTKucxaanMg9FPbDoZhP1nH8N6t59KJzqQgkBS3jLzIVp 9HoQI+x8Ak1IEsWhVRGGeiBZriIttOYRjzXzoqtegTN5mCJRTM8rOyx9bcSup3/y17 fClIOULsk2a8u+JxIcadlAIhQvLdHCBtci9ny5CRsbUywdnIqsfxP3PUt2xc5587Zh NSgWpGqwqhT5S12N+SeQcsrrC+2HgxUzcjJvvz+ruhbp6GRQmuUZqII6VEVpoVFUTS PabHxVysRfBFUIc8zENeI4mnff7x0SzMLx9giBbgOd2w1nXxKRwSm6DG8wA7WskVG4 yYwgqr3/PSJpA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Nicolas Pitre , Rasmus Villemoes , Masahiro Yamada , linux-arch@vger.kernel.org, Arnd Bergmann , Michael Ellerman , linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Marek , Richard Weinberger , Will Deacon , Ingo Molnar , Ard Biesheuvel , Jeff Dike Subject: [PATCH 0/8] kbuild: clean-up modversion, TRIM_UNUSED_KSYMS, if_changed_rule, etc. Date: Thu, 15 Nov 2018 17:27:07 +0900 Message-Id: <1542270435-11181-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As a Kbuild maintainer, I always struggle to keep the core makefiles clean because people tend to squeeze more and more clutter code into the kbuild core in order to do what they want to do. The biggest step forward in this series is to re-implement the build trick of CONFIG_TRIM_UNUSED_KSYMS in a cleaner way. scripts/Kbuild.include now looks nice again. Also, in my rough estimation, building with CONFIG_TRIM_UNUSED_KSYMS became 40-50 % faster. Besides those, nice cleanups are here and there. Masahiro Yamada (8): kbuild: remove redundant 'set -e' from filechk_* defines kbuild: remove redundant 'set -e' from sub_cmd_record_mcount kbuild: refactor modversions build rules kbuild: simplify dependency generation for CONFIG_TRIM_UNUSED_KSYMS kbuild: change if_changed_rule to accept multi-line recipe kbuild: remove trailing semicolon from cmd_* passed to if_changed_rule kbuild: refactor if_changed and if_changed_dep kbuild: remove redundant 'set -e' from cmd_* defines arch/um/Makefile | 2 +- include/asm-generic/export.h | 13 +++--- include/linux/export.h | 18 ++++---- scripts/Kbuild.include | 44 +++----------------- scripts/Makefile.build | 98 +++++++++++++++++++------------------------- scripts/Makefile.lib | 2 +- scripts/basic/fixdep.c | 31 ++------------ scripts/gen_ksymdeps.sh | 25 +++++++++++ scripts/package/Makefile | 1 - 9 files changed, 96 insertions(+), 138 deletions(-) create mode 100755 scripts/gen_ksymdeps.sh -- 2.7.4