Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp393032pxb; Wed, 24 Feb 2021 05:13:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3O2bBFfg+GEP9wYHVcn65KnnIGRoQ4rxjRm7fC2W1eFaRoncVY0hkTaf7yNwcAZhgF6q/ X-Received: by 2002:a50:8b66:: with SMTP id l93mr32482522edl.384.1614172432767; Wed, 24 Feb 2021 05:13:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614172432; cv=none; d=google.com; s=arc-20160816; b=aG9qFaSMm4j08QSui8C/P7N2g2DE5PNdC/aopdkTGuPpl7NotDYB/IasPv/doHUXPQ JT8No6VwQ8tIc3wESswTN5yJ48/SMMUDNF808AIzjUlhKO8tI0zP0q7rvwcIkQZnXQWv ua1Ibm+QsQgSa9hxDctx0DdL4bQuiQ9m/1oITxaAGw8KbCL+y8j/xwyZPJMr0kPqQm4V h3RKrMAHwR6IBKWy4X581o7eZNdYnsP+0bwR05bUxqwIwP0Mv6UKfsZO+h5Mu9ACgDio iQLMsdagijGLnDNINaDGjcHTxVpSMa52S73gcZUWwe81YEvD9z9Peiq2912d11Uy7pxi MrAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Ihzmy8wLHJ+Ka8D82jECfgw9aSGEAXyEzPKmvC2YQNk=; b=evvaS+dWd8nvm8eyJqSaO319Bnqd19Mg8Wj2lb0B/akaQgjErYDBw74qjBY3BIMk/f 6VPFxzyvFdDmncbkF7n66mnZjD43k0Mv95ko6DST9yk8deOLb0YT4HT9ZTG4sHzPbyY9 u3FWuJamWyadbi5LrnImeKiKVoD2amYR9aWxwKs+/nXhwCs6L7FWbItD5kV7LLUWqcxT 1pEU36v2C5lCn1BEDBkuLVS9CXPAFS75+xf7u8awQp04lMz1WwzWiQnNzqtuSqjg/5Ha XlzONz58Zu5Zl6nTHi1RSA12YGtN65tD+FD/eDyDByw64UDbPuDTGatoWgo4MNJez5E7 mUEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si1114886eds.283.2021.02.24.05.13.27; Wed, 24 Feb 2021 05:13:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234964AbhBXL1j (ORCPT + 99 others); Wed, 24 Feb 2021 06:27:39 -0500 Received: from mail-ot1-f49.google.com ([209.85.210.49]:46809 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234428AbhBXL1c (ORCPT ); Wed, 24 Feb 2021 06:27:32 -0500 Received: by mail-ot1-f49.google.com with SMTP id k13so1759987otn.13; Wed, 24 Feb 2021 03:27:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ihzmy8wLHJ+Ka8D82jECfgw9aSGEAXyEzPKmvC2YQNk=; b=hHlrvvMUVkOvJNyYgG/h8pRJgNHwmR4OpCxB/70rVEUXrGIW3DYwZOa6s7uh+9XHex 9PHn0mUlyv+uk0NKovr3egS5Utq4N5EVGGQpPzomeZ+CTuiv3WR5PGIBoJNodS3XggKp JN3XCKyxbbS5vYgfbpksD1j3f+lKjN/8EedSVAdeT+gdQnKy9EquzLJ+73p3qSuvpkXE jLjTQ5wFY0wi0uCKYs80f60/06nfKVGSC5NIjWhd1mvCndcuMxxD19poAcPq15xzkIze hHnE6zhLG1gFakW9ibwafyGzVbJWeDh9m7Y1wiqjfST9FEW1DP2qD+Q+LP8sKJRcfo+E 2KAg== X-Gm-Message-State: AOAM530+TGAUElYMCtChAlliYgFZ19AU3Z1T0Y3QsNaNlhonf+vMPvXF Yedwbb6HYDX2980vDd5RAO8OcPqWGMJpGo9ugEhaOPorDYM= X-Received: by 2002:a9d:328:: with SMTP id 37mr1670671otv.250.1614166011963; Wed, 24 Feb 2021 03:26:51 -0800 (PST) MIME-Version: 1.0 References: <20210223181425.4010665-1-robh@kernel.org> <20210223181425.4010665-4-robh@kernel.org> In-Reply-To: <20210223181425.4010665-4-robh@kernel.org> From: Geert Uytterhoeven Date: Wed, 24 Feb 2021 12:26:40 +0100 Message-ID: Subject: Re: [PATCH 3/3] kbuild: Add a build check for missing gitignore entries To: Rob Herring Cc: Masahiro Yamada , Michal Marek , linux-kbuild , Linus Torvalds , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "the arch/x86 maintainers" , "H. Peter Anvin" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Tue, Feb 23, 2021 at 7:18 PM Rob Herring wrote: > Any non-phony targets need to be in gitignore. The normal way to check > this is doing an in-tree build and running git-status which is easy to > miss. Git provides an easy way to check whether a file is ignored with > git-check-ignore. Let's add a build time check using it. If the build is > not in a git tree, the check will silently fail. > > This also has the side effect of a sanity check for 'always-y', > 'extra-y' and 'targets' entries which are not correctly marked as PHONY > or have the wrong path. > > Cc: Masahiro Yamada > Cc: Michal Marek > Cc: linux-kbuild@vger.kernel.org > Signed-off-by: Rob Herring Thanks for your patch! After removing the .git directory from my repository clone, or removing the git command from $PATH: scripts/Makefile.lib:106: scripts/basic/fixdep is missing gitignore entry scripts/Makefile.lib:106: scripts/sorttable is missing gitignore entry [...] Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds