From: Thomas Weißschuh Date: Wed, 18 Jan 2023 05:05:35 +0000 (+0000) Subject: kheaders: use standard naming for the temporary directory X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=837962ca237cf00100fb9c041a18ebc7a4df4e65;p=linux.git 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 Suggested-by: Masahiro Yamada Signed-off-by: Thomas Weißschuh Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier Signed-off-by: Masahiro Yamada --- diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh index 81b97f0f65564..1ef9a87511f50 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/