From patchwork Wed Aug 15 14:27:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10566651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 942261390 for ; Wed, 15 Aug 2018 14:28:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C3C929D1B for ; Wed, 15 Aug 2018 14:28:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F8CF29D22; Wed, 15 Aug 2018 14:28:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8736129D1B for ; Wed, 15 Aug 2018 14:28:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728957AbeHORU0 (ORCPT ); Wed, 15 Aug 2018 13:20:26 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43257 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729125AbeHORU0 (ORCPT ); Wed, 15 Aug 2018 13:20:26 -0400 Received: by mail-lj1-f194.google.com with SMTP id r13-v6so1090465ljg.10 for ; Wed, 15 Aug 2018 07:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id; bh=RpYCJOJBuPI6VUTj/r96n9THMA6NhemNuRpkTH24LUY=; b=U5Gp1aGhaKjQ+CTim4xRmXYXcZjDOLgXy6K+aEYmDqV7SPposBwwgpT2tplb0tVu5R S70B05GCTQaiJPcISPqzegKzBn635t7PXKMdDEzbQn+8yJ8KxI0hVFSl5BehtE9Eg4bc Y6wQ77Egt9S7fKvk9pb5JKlCOqZbcTCWleGrA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RpYCJOJBuPI6VUTj/r96n9THMA6NhemNuRpkTH24LUY=; b=ocLlQGxPAnTd6DyNbKPvkDMZ3aqJIlJK3eADYwKHR2PWFddXvvLjzQQ1L+GBx4aNir h2Q9wrSjHdSQ05ETPZaG0s/iNdRC4KZWx/fh3byPEYQgpHrrYIll0e9m9gFkeazMWxUx 08Otti9fEDQ8F9W9F5RgNUzOdaE4qqqGr+yje6+to1DkN4RCAlbll6jdKuPr0HBI7aIQ lHnEZRGS6eTaw2yxTF1tZF6Z44nettPpmszMqP9sjiEc2nkH2GC0O7m1ItIsaSWcwMpw lbBQBM5oFhbd4HUhO7132MhPDDQ7GyssQPkWrEY7nVR/PpptO9nISI/cETovfSk4ZZHH WvPQ== X-Gm-Message-State: AOUpUlH6it1Ujs+nYv5h0QIT0XTOFYbafNytUh2Giz6I8+GULXpRvUMY 29mVUuCXPELpYlz15Lk4l4gU6usNIyks1g== X-Google-Smtp-Source: AA+uWPxdL9lQUPCEjbT7XqDhLQvEDyuvtxR929DJoXE5PrrW4gn11Kw5bGAzkMInP+R8vFSaTWu0fQ== X-Received: by 2002:a2e:1609:: with SMTP id w9-v6mr8672558ljd.120.1534343282158; Wed, 15 Aug 2018 07:28:02 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id l3-v6sm4559597lfi.36.2018.08.15.07.28.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Aug 2018 07:28:01 -0700 (PDT) From: Rasmus Villemoes To: Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rasmus Villemoes Subject: [PATCH 0/3] Kbuild: Some fixdep tweaks Date: Wed, 15 Aug 2018 16:27:46 +0200 Message-Id: <20180815142749.18804-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.16.4 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These patches eliminate two (albeit tiny and shortlived) processes from the cmd_and_fixdep rule, i.e. from every TU being compiled. Whether the diffstat below is worth it I'll leave to Kbuild maintainers to decide. Rasmus Villemoes (3): Kbuild: refactor fixdep to use getopt() Kbuild: teach fixdep to optionally remove the depfile Kbuild: let fixdep do the renaming to .cmd scripts/Kbuild.include | 11 ++++------ scripts/basic/fixdep.c | 56 ++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 52 insertions(+), 15 deletions(-)