Message ID | 20230117-kernel-kheaders-gitignore-v3-2-e686b93b0732@weissschuh.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2149299wrn; Tue, 17 Jan 2023 21:08:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXvIZPYPNcgW3wIQWa7nQ5jrF7NySE4dctEY6uvxer4aY9UxHnA+zlgAIaoAB6FX7qRzsZVB X-Received: by 2002:a17:90a:6ac7:b0:229:754:1165 with SMTP id b7-20020a17090a6ac700b0022907541165mr5816914pjm.5.1674018481932; Tue, 17 Jan 2023 21:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674018481; cv=none; d=google.com; s=arc-20160816; b=JmwK7lC2jjA0WX1gRkwEjQw2dRoHoh+Vnlf8tmG+CQZUYXNpIUO0qHXNkSoY7tFCdN lK3OoWwePfydu7sasW52l57kn+b//wp8pjxswu3LJ6uMEZya6TdJVW6ZnH12I68Ci3DV rD6WE+QMDD3y548jviNw+u5fMVnFfGO7MdZ6sDLyYCC225aEYnxsyS79uBpW+ISLo3Bq d+tWDwmKHaSMcDZlKpGsboD3UVuDVlvlMtyYTPv+uOX2+Zo3tKbiyB6IbPbEPv+qKR4W CUfDVSgNBVSubST8GG70fkF7w29s3Xd5z2tAkCWtE84FK/wwfjey0YneVuJEWVAAF6TQ VAbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=WuV8T3M5o5BVUqLoZClmlIu+2meD9g3yNcfFs1TxzZY=; b=Hos5uJ/4W9xmpIA8QrGS8yxJ/caSTv4vMJ5usS1Bz89MEXH6Ao+57VYSzaLlDXzmkU ey0D6Sj7S7tx1v1XJZU7ABkEBVuTY/PSrbA4TAkGNHBbpp1YGZvSRzMYEjt54xiza/XW i2w0g2rns45nfeQsvA0mFX02g0NJKabNY12rykSNvn+/83ycRUd39n8AOumNyKh/Lry8 l2wG4ryKYjEOfkGOQDLNPjJKULw3Nw35GyR679os42P3qV2xGobYK7sa1pHTz3q9msel vLGiNLm5Bg6ppVTcevWa0y9MIxApFFWsYH91139HEVC1jiPdE8kxrDicPBXz89B0rCDd O6Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=kddahOoP; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt4-20020a17090af00400b002263a7c096csi1007439pjb.6.2023.01.17.21.07.49; Tue, 17 Jan 2023 21:08:01 -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=kddahOoP; 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 S229550AbjARFGT (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Wed, 18 Jan 2023 00:06:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbjARFFs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Jan 2023 00:05:48 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11BB2577FD; Tue, 17 Jan 2023 21:05:47 -0800 (PST) From: Thomas =?utf-8?q?Wei=C3=9Fschuh?= <linux@weissschuh.net> DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1674018345; bh=/0jOebbYX70I0nvSrPoQPRoP/uFq1ZW6GdE24q/IDq8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kddahOoPrJno2N+e1J9xr+ojBUF2ea3a/gpcjfUHwa9NCRwY/sXhCGS/rU7xQg8rN iJolY6cOTft6+1iOCunOfhL4GBbY5/L/9T1AKHsay42WxejIYYzc4ik5kYZYduMHJq +7x4+7RMdVE4Z+oYhpSTqVIEbBq0pQ9Etn1M5X44= Date: Wed, 18 Jan 2023 05:05:35 +0000 Subject: [PATCH v3 2/2] kheaders: use standard naming for the temporary directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: <20230117-kernel-kheaders-gitignore-v3-2-e686b93b0732@weissschuh.net> References: <20230117-kernel-kheaders-gitignore-v3-0-e686b93b0732@weissschuh.net> In-Reply-To: <20230117-kernel-kheaders-gitignore-v3-0-e686b93b0732@weissschuh.net> To: Masahiro Yamada <masahiroy@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu> Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Nicolas Schier <n.schier@avm.de>, Thomas =?utf-8?q?Wei=C3=9Fschuh?= <linux@weissschuh.net> X-Mailer: b4 0.11.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1674018337; l=867; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=/0jOebbYX70I0nvSrPoQPRoP/uFq1ZW6GdE24q/IDq8=; b=fyFTMXVPgKM/lMPfOB9cHpXWfMqiZN06jA4troAsamgUfy30G4vk7DualK2n5M/OIxgmuWg1HZ2P Z6kuzlTjDwkgBvFviSdoJG4mapmJb5jftKhu0YBnx3o0a/K8vto7 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755335603839863485?= X-GMAIL-MSGID: =?utf-8?q?1755335603839863485?= |
Series |
kheaders: use standard naming for the temporary directory
|
|
Commit Message
Thomas Weißschuh
Jan. 18, 2023, 5:05 a.m. UTC
If the kheaders archive generation is interrupted then this directory
may be left on disk and not ignored by git.
By using the standard naming schema for temporary files and directories
the default .gitignore and "make clean" rules will apply.
Suggested-by: Nicolas Schier <nicolas@fjasle.eu>
Suggested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
kernel/gen_kheaders.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed 18 Jan 2023 05:05:35 GMT, Thomas Weißschuh wrote: > If the kheaders archive generation is interrupted then this directory > may be left on disk and not ignored by git. > By using the standard naming schema for temporary files and directories > the default .gitignore and "make clean" rules will apply. > > Suggested-by: Nicolas Schier <nicolas@fjasle.eu> > Suggested-by: Masahiro Yamada <masahiroy@kernel.org> > Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> > --- > kernel/gen_kheaders.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh > index 473036b43c83..b477b763f262 100755 > --- a/kernel/gen_kheaders.sh > +++ b/kernel/gen_kheaders.sh > @@ -7,7 +7,7 @@ set -e > sfile="$(readlink -f "$0")" > outdir="$(pwd)" > tarfile=$1 > -cpio_dir=$outdir/$tarfile.tmp > +cpio_dir=$outdir/${tarfile%/*}/.tmp_cpio_dir > > dir_list=" > include/ > > -- > 2.39.1 Thanks! Reviewed-by: Nicolas Schier <nicolas@fjasle.eu> Tested-by: Nicolas Schier <nicolas@fjasle.eu>
diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh index 473036b43c83..b477b763f262 100755 --- a/kernel/gen_kheaders.sh +++ b/kernel/gen_kheaders.sh @@ -7,7 +7,7 @@ set -e sfile="$(readlink -f "$0")" outdir="$(pwd)" tarfile=$1 -cpio_dir=$outdir/$tarfile.tmp +cpio_dir=$outdir/${tarfile%/*}/.tmp_cpio_dir dir_list=" include/