Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5677449rwb; Tue, 17 Jan 2023 17:26:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXuYfJJmm4xvLYte/JL7/hBXGP50JqrQgv1Uu41/HJSbidhtwqg0SVl7TMJaPHiBtHuDGknb X-Received: by 2002:a05:6402:43cf:b0:49b:b1ab:f216 with SMTP id p15-20020a05640243cf00b0049bb1abf216mr5755506edc.11.1674005187980; Tue, 17 Jan 2023 17:26:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674005187; cv=none; d=google.com; s=arc-20160816; b=LDRui0JmWFtUT5F7cNQ080jRdA/NyTdYYsHf+ei3NmtjCNlNmR/cDJo3qu7LdF/iBF cyRognBiziFMeHeshaHlPI2kZatypqnfLulzUW0dhw/UaMmj9+4iW4RCh+ZO1QukWKfh G8ncESRzthLGgnzaI18vCqfmOF4ZGhSrT3nWHkV1CJmHjFMf3VCq0czNJlnOQ/cU9m6a 48ffC9UO39GBvDrPn7u30DynAkxnUgZvT36taSEwe9PVhTQmxY2VdodDfgOCP5PN/zY0 r5N8CjTat+vWSn053I+6AlT8nXimN+vXuq6mM6obczVFntKRGDWfVA0m+eScqYNS8vLD FJFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=xTEt7av12vQZABZ8rwHex6NYJ55FVmfaFctcWKRL+SU=; b=totFqXCYeNLE2ztBj+G3VwDyK7zn0j//meNjs5wORGLZDSxgeXznO4mgYprhRiHfMC vBe1ujHKd1IW+PR++0+xG9MyNkGjcV98sodBs8fL0jLR7HxYrlAbMqF5CwedwHCx2CMJ 1+VcG/3ePBUGpLa7+ZwuHt8tnXWtF1fzxnGsqrGXOgqy6XrvTlGZyLHruJ+7dMCGDhVz BHJEMaLJ3P/o16D4CCds6vzS/65LBeSnFTrg4EEGKOhxvMT4hgkLK9kRxB09ZH9HurNI cWTkgEffi2UB2Y1Vnyabmw3EbRetp6zcgqJ9tmXUdnAZYdWzGqvYjWovpUaXImbxzkkL vfgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=rsvV0jKY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cz19-20020a0564021cb300b0049e29e68307si4628661edb.496.2023.01.17.17.26.16; Tue, 17 Jan 2023 17:26:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=rsvV0jKY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbjARBQz (ORCPT + 46 others); Tue, 17 Jan 2023 20:16:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbjARBQ2 (ORCPT ); Tue, 17 Jan 2023 20:16:28 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABF5239B93; Tue, 17 Jan 2023 17:10:35 -0800 (PST) Date: Wed, 18 Jan 2023 00:58:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1674004232; bh=vSIvUTO8Ecy+YVZDc735PIohw7OmPBpjpkNA56jGcvM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rsvV0jKYPh5T2Rq9prQC7YVsAy1Pfnjb9SECmVUp17CuHSI53oV/sCUDWXFy3mM3Z aa9fKcMG7+93n07vi/3o2K6Vdx0d3VOdsKinaQ9STgmVmIvQiliPnDY5yrT3muRsgM P4rYLyqaxxjUBJ4RlyucvyM+rni79NQY3NZxF8Xo= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Masahiro Yamada Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Nicolas Schier Subject: Re: [PATCH v2] kheaders: ignore and clean temporary kheaders_data directory Message-ID: <20230118005830.pqupfqnwwkd64q3g@t-8ch.de> References: <20230117-kernel-kheaders-gitignore-v2-1-1c29b3adf04a@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 17, 2023 at 11:24:47PM +0900, Masahiro Yamada wrote: > On Tue, Jan 17, 2023 at 10:50 PM Thomas Wei?schuh wrote: > > > > If the kheaders archive generation is interrupted then this directory > > may be left. > > Ignore it, it will be deleted by the next run of kernel/gen_kheaders.sh. > > Also add it to clean-files so it can be cleaned up by make. > > > > Signed-off-by: Thomas Wei?schuh > > > Or, just rename the temporary directory. > For example, > > cpio_dir=$outdir/$(dirname $tarfile)/.tmp_cpio_dir > > > > Dot files are ignored. > 'make clean' removes the .tmp_* pattern. This sounds great. Unfortunately 'make clean' only cleans files and not directories based on this pattern. Should it be extended? > > --- > > Changes in v2: > > - Also add the directory to clean-files > > - Link to v1: https://lore.kernel.org/r/20230117-kernel-kheaders-gitignore-v1-1-2a3a070efd0d@weissschuh.net > > --- > > kernel/.gitignore | 1 + > > kernel/Makefile | 2 +- > > 2 files changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/kernel/.gitignore b/kernel/.gitignore > > index c6b299a6b786..57ab1d703763 100644 > > --- a/kernel/.gitignore > > +++ b/kernel/.gitignore > > @@ -1,3 +1,4 @@ > > # SPDX-License-Identifier: GPL-2.0-only > > /config_data > > /kheaders.md5 > > +/kheaders_data.tar.xz.tmp/ > > diff --git a/kernel/Makefile b/kernel/Makefile > > index 10ef068f598d..f3535944f635 100644 > > --- a/kernel/Makefile > > +++ b/kernel/Makefile > > @@ -156,4 +156,4 @@ quiet_cmd_genikh = CHK $(obj)/kheaders_data.tar.xz > > $(obj)/kheaders_data.tar.xz: FORCE > > $(call cmd,genikh) > > > > -clean-files := kheaders_data.tar.xz kheaders.md5 > > +clean-files := kheaders_data.tar.xz kheaders.md5 kheaders_data.tar.xz.tmp > > > > --- > > base-commit: d532dd102151cc69fcd00b13e5a9689b23c0c8d9 > > change-id: 20230117-kernel-kheaders-gitignore-f0d73456cb6b > > > > Best regards, > > -- > > Thomas Wei?schuh