Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5892101rwb; Tue, 17 Jan 2023 21:07:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXsdVGrKdSV5CWYe6Y8WLNqr7aIVhUQaZ4VA0DasQQnxICh+X0QySDijXUPCHeP5kIbTjCJ8 X-Received: by 2002:a05:6a00:1755:b0:58b:bfc2:a337 with SMTP id j21-20020a056a00175500b0058bbfc2a337mr5875932pfc.30.1674018463715; Tue, 17 Jan 2023 21:07:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674018463; cv=none; d=google.com; s=arc-20160816; b=oFYbwEnJqpzBxY6MxJOf3FNz2ybslqVNwF+CSuVMeQ7hkjN8FF7vaV3K/zBU8DOGIy ApTYXG6GgCAI1T7bllXdcB/sJur5RDXwAFMpK75YPYVnQ12OsQqL8DoVubt2swYKsj+R F09RgR8EygAg4Iz9SZh8SNrdFSv2wiE4LJw1Czu5pHlhLvWZGUfccOEHgwgGxKBFjDLA VRGXwA2HZSvU7XxSIR1pwfYfGQXQYyZBY1JiD0Lv5IOYpQigPVdU6F5cBJAOy7gpOBT5 LZNB8O/CtJax5CjadcrUICgDyYk6C6eIbT5pcFS1DvMdeXg0ru/rmQ+uLpYsVa3QHoC7 OLTQ== 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=FKAAdRLOLiedyobw+DwbpPsM5JsbNFS/Y3vM/NjGUzgIfZlMk4bFf3FLX0NhxF7gGz DDA68LexKHbGEmCjsyKgtfEF/gBaEn674tvmAn0a9dsHy++fA4CY/B80nZtt71xygQ+a 0Ajy9BOywxysMx0HIxnoNNhVAlcRkuVvyNQG1IromQ8fY70pLhspg2ofqL3KgjrFLAC2 tNmHCMAQEYvZnytt/KY+W6khWF6Qa1naLVhweWw5G4K1dJgi56kW7u7xzTjc6Os3gHku UferAcKVL6TorShvPP75O8aqzP9X6uMRUSGw+OoIpaXQjbd13Uw4XNR1Ej4134+wh94Q IMhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=bNLzlNx8; 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 l11-20020a056a00140b00b0052dd9f10a47si34386756pfu.363.2023.01.17.21.07.38; Tue, 17 Jan 2023 21:07:43 -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=bNLzlNx8; 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 S229657AbjARFFO (ORCPT + 46 others); Wed, 18 Jan 2023 00:05:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjARFFE (ORCPT ); Wed, 18 Jan 2023 00:05:04 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F9534FAE5; Tue, 17 Jan 2023 21:05:03 -0800 (PST) From: Thomas =?utf-8?q?Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1674018301; bh=/0jOebbYX70I0nvSrPoQPRoP/uFq1ZW6GdE24q/IDq8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=bNLzlNx8uNm8Yd0FXwMngRVuWCvS/8meW+rE5seGgza4A13DKDdhDe8Zb+cpzKqSv 3YJ8avVAhmAllBIA8pgaayq/vzoofNPj7YPZI5Uoil37GJ9gJzhNMVWCHwjn7Iuu1U 3ZuaD7lwYuZZN46GBcMNFaxGisLFVUnmYbK4U598= Date: Wed, 18 Jan 2023 05:04:52 +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-d67d649dd990@weissschuh.net> References: <20230117-kernel-kheaders-gitignore-v3-0-d67d649dd990@weissschuh.net> In-Reply-To: <20230117-kernel-kheaders-gitignore-v3-0-d67d649dd990@weissschuh.net> To: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Nicolas Schier , Thomas =?utf-8?q?Wei=C3=9Fschuh?= X-Mailer: b4 0.11.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1674018294; l=867; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=/0jOebbYX70I0nvSrPoQPRoP/uFq1ZW6GdE24q/IDq8=; b=hLTHnP/QFDYSiXJOKQmUdG0Mbjj/ra+G2+J20sAYm5olerC/qY8/exy6zeUsUQ4NsI+W2XbFNV+J qe+IRQZIBKfKKdrzeYoPkYT6i/GznA5yIorE3X9MrbiLrw3pnGY+ 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 Suggested-by: Masahiro Yamada Signed-off-by: Thomas Weißschuh --- 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