From patchwork Thu Nov 15 08:27:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 151210 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6714864ljp; Thu, 15 Nov 2018 00:29:45 -0800 (PST) X-Google-Smtp-Source: AJdET5cLRWbt/5DlSlbAZAUBXI2BMN3K9gHvrXh99wUAGFca9M9/hCX0dhZ/DD05bjbLPkjne1lr X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr5337338plb.169.1542270585457; Thu, 15 Nov 2018 00:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542270585; cv=none; d=google.com; s=arc-20160816; b=Zm/ip5oJHloEuHlWeOOhVHAha6zO/M8GmaDUMj50e4cJdifgVM91ViUScOqeVPItJQ 0ZpwlCriHAcDX0hrZa8R7BC+y4bgdBRtwqwzllc8U/bp2/GBCms3ZNTHj5mycZTeWoVm 1We1dmd4U6TAC7OFgcwIWiXh+LB+ekBmOfKTl4ann9iznd55ZIBzGD/hF7hgVAArTEba n3oGbpaEHo2o/nZZ2bRy2wZPadrcpmB7YUKJHky7e/jq0Mcx88ZzPn9Un6ANmXTcHZZ8 RP0/8xSU/2xn4dv7HKN6tgRk9LDMRUEQ2gKIf8iGDrxvS/jhrauxaqTqek+97gR69Z1A SQlg== 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 d17si4206368pfm.40.2018.11.15.00.29.45; Thu, 15 Nov 2018 00:29:45 -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 S2387636AbeKOSgd (ORCPT + 32 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