summaryrefslogtreecommitdiffstats
path: root/kernel/gen_kheaders.sh
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-01-18 05:05:35 +0000
committerMasahiro Yamada <masahiroy@kernel.org>2023-01-22 23:43:34 +0900
commit837962ca237cf00100fb9c041a18ebc7a4df4e65 (patch)
tree8d97fcb5df1f791a417a291ce1c12d22fe9dd7f7 /kernel/gen_kheaders.sh
parent9c73bcfaa4308c2f2c4871110deb1bc089931942 (diff)
downloadlinux-837962ca237cf00100fb9c041a18ebc7a4df4e65.tar.gz
linux-837962ca237cf00100fb9c041a18ebc7a4df4e65.tar.bz2
linux-837962ca237cf00100fb9c041a18ebc7a4df4e65.zip
kheaders: use standard naming for the temporary directory
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> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu> Tested-by: Nicolas Schier <nicolas@fjasle.eu> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'kernel/gen_kheaders.sh')
-rwxr-xr-xkernel/gen_kheaders.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh
index 81b97f0f6556..1ef9a87511f5 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/