Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4748799ima; Tue, 5 Feb 2019 00:17:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IagsssVGHSY69CdTZUDNr/6JExqgM/ndt9bEUWry+psA1WuDQxn+MsZsdjfyVmLA4Svi1Nt X-Received: by 2002:a62:520b:: with SMTP id g11mr3774132pfb.53.1549354659308; Tue, 05 Feb 2019 00:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549354659; cv=none; d=google.com; s=arc-20160816; b=T8nFmhFkkbZG+4t4BAi1iiCu/hDRqNKplYNUl3ZdVSCUfQqwhVVkZ+yinDfj5Pf4o4 aJkcU581ad13y3OVfAHnXQqRSBOAROC2pm7Z+AZ+aPxGiMpozhaGzYH+LudScEvF3pT9 QGvE6Cu7wNiKjPcOkv9JASe8s4zPIIpjmscEDZw8oId24Dj+7zTAURrUX5cTSCjDiMu6 cdmipv+dE+dQVBjsTiMGNG09qYp2Jqk9mAnSkNLy8d2QnHGRYKRCZn16NpvOu2HmkQcv oS3Vc9JWvWJcFANzU2mNR0MjhYDpiqDmS9I0U+NmXoVmE5HEP9tPXsa/Q3It6r0gIrnL c/Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=dxcwCv3jDokuy0pw5CdGPCzxTklgqbRZRnTexhayDNc=; b=rLcTDPs4xuVPt6036UsORBfLvOiFNkLjY8iEWtVHcgZiL86SBSlp0pqa0azfL9My7z xcFl5OqfWYVHu4S/jrndIws81S4dOQad6pdG6flCaTcH84ZxeP8PoQZhkQA9bxHJ2/u0 Rj1CVc71GusTz7zWmeQfbC4pk30XAhvLhJGvUwDcHYsMEpurnjTKiM8z6BQeZmVhuKJT KwiivBaQpk4CsROXpOdtGPSlmuxqX0jYe0ECz1RC+St4PMgg1gWSDVLQSO3nSuqnrbzR u29pGFG0VWttBLVu/j0p/TPyB18KsBnzKL6P03ao9xOhIjKFWdiqEmcuNBpGIAjdSo8X 79ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=adwspT3x; 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 s36si2558633pld.46.2019.02.05.00.17.23; Tue, 05 Feb 2019 00:17:39 -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=adwspT3x; 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 S1727509AbfBEIPz (ORCPT + 99 others); Tue, 5 Feb 2019 03:15:55 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:48051 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfBEIPz (ORCPT ); Tue, 5 Feb 2019 03:15:55 -0500 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x158FmL7030033; Tue, 5 Feb 2019 17:15:49 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x158FmL7030033 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1549354549; bh=dxcwCv3jDokuy0pw5CdGPCzxTklgqbRZRnTexhayDNc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=adwspT3x0caRZS5GgzO72zQcMYcTRz4nqWdmqerFH+thiUpf2xfBZxUQduhuXKKVb 9n/gOCvuOKqHuaxyPDARHp59awjfUA7ldtM2+oj8rxoz+5nmeAkUOp3rGYpRX5/LcB WmJEkpsJDH1ppv8NklNI9c7Fw7b1ln13ssmR6lPYaOyDygjs3DJK7h3TAA2B/cMnYA Cc5mv4bjrjLOJgCJbcHbUihu2GNWSf01fZ4Ea+g6F6P9NAc17kRx/FfldQ/aktNQBY ztKbGmJfCOmyAEvoT/qSWlytZYMauguAZlGifqbs4hFqdgJl7GxE44wUWC25tVcqsD oZX7zN4BVH/oA== X-Nifty-SrcIP: [209.85.222.46] Received: by mail-ua1-f46.google.com with SMTP id n7so847258uao.7; Tue, 05 Feb 2019 00:15:49 -0800 (PST) X-Gm-Message-State: AHQUAubrv6IJum4xu/G1u/Iz0BCm9NBzA5f4J1XBOrGt60Im1mUpbM0T yfWjR98edmvIhrgBZVA4lr+QWH+6TRgmck5b1Tg= X-Received: by 2002:a9f:3193:: with SMTP id v19mr1385633uad.55.1549354548058; Tue, 05 Feb 2019 00:15:48 -0800 (PST) MIME-Version: 1.0 References: <20190203084840.6113-1-vladimir.kondratiev@intel.com> In-Reply-To: <20190203084840.6113-1-vladimir.kondratiev@intel.com> From: Masahiro Yamada Date: Tue, 5 Feb 2019 17:15:11 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: gitignore output directory To: Vladimir Kondratiev Cc: Michal Marek , Vladimir Kondratiev , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 3, 2019 at 5:50 PM Vladimir Kondratiev wrote: > > From: Vladimir Kondratiev > > When compiling into output directory using O=, many files > created under KBUILD_OUTPUT that git considers > as new ones; git clients, ex. "git gui" lists it, and it clutters > file list making it difficult to see what was really changed > > Generate .gitignore in output directory that ignores all > its content > > Signed-off-by: Vladimir Kondratiev > --- Applied to linux-kbuild. Thanks. > Makefile | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Makefile b/Makefile > index 141653226f3c..b1d651e822b1 100644 > --- a/Makefile > +++ b/Makefile > @@ -483,10 +483,13 @@ PHONY += outputmakefile > # outputmakefile generates a Makefile in the output directory, if using a > # separate output directory. This allows convenient use of make in the > # output directory. > +# At the same time when output Makefile generated, generate .gitignore to > +# ignore whole output directory > outputmakefile: > ifneq ($(KBUILD_SRC),) > $(Q)ln -fsn $(srctree) source > $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) > + $(Q){ echo "# this is build directory, ignore it"; echo "*"; } > .gitignore > endif > > ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) > -- > 2.19.1 > > --------------------------------------------------------------------- > Intel Israel (74) Limited > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. > -- Best Regards Masahiro Yamada