2023-01-18 05:07:20

by Thomas Weißschuh

[permalink] [raw]
Subject: [PATCH v3 0/2] kheaders: use standard naming for the temporary directory

To: Masahiro Yamada <[email protected]>
To: Nathan Chancellor <[email protected]>
To: Nick Desaulniers <[email protected]>
To: Nicolas Schier <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Nicolas Schier <[email protected]>
Signed-off-by: Thomas Weißschuh <[email protected]>
---
Changes in v3:
- Use standard naming schema for temporary directories
- Modify toplevel Makefile to also clean temporary directories
- Link to v2: https://lore.kernel.org/r/20230117-kernel-kheaders-gitignore-v2-1-1c29b3adf04a@weissschuh.net

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

---
Thomas Weißschuh (2):
kbuild: also delete temporary directories
kheaders: use standard naming for the temporary directory

Makefile | 5 +++--
kernel/gen_kheaders.sh | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
base-commit: c1649ec55708ae42091a2f1bca1ab49ecd722d55
change-id: 20230117-kernel-kheaders-gitignore-f0d73456cb6b

Best regards,
--
Thomas Weißschuh <[email protected]>


2023-01-18 05:07:43

by Thomas Weißschuh

[permalink] [raw]
Subject: [PATCH v3 2/2] 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 <[email protected]>
Suggested-by: Masahiro Yamada <[email protected]>
Signed-off-by: Thomas Weißschuh <[email protected]>
---
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