Skip to contentSkip to conversation

tools: gitignore: Fix tools/generated path

PATCH In review Sam Protsenko 2 participants 2 messages Oct 26, 2023 – Nov 10, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: gitignore: Fix tools/generated path

'git status' shows 'tools/generated/' after running the build, which is wrong. The corresponding .gitignore rule was already added in commit c623642d29be ("Adjust gitignore for tools/generated/"), but because of superfluous 'tools/' part it wasn't in effect. Remove incorrect 'tools/' part to fix it.

While at it, remove tools/ path incorrectly added to the top-level .gitignore in commit 801c482207c7 (".gitignore: ignore misc include, simple-bin, and tools/generated build artifacts"), as it's required in the comment on the top of .gitignore:

# NOTE! Don't add files that are generated in specific # subdirectories here. Add them in the ".gitignore" file # in that subdirectory instead.

Fixes c623642d29be ("Adjust gitignore for tools/generated/")
Fixes 801c482207c7 (".gitignore: ignore misc include, simple-bin, and tools/generated build artifacts")
---
 .gitignore       | 1 -
 tools/.gitignore | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
.gitignore +0 -1
index a1a79e92feef..330148119264 100644
@@ -61,7 +61,6 @@ fit-dtb.blob*
 # Generated files
 #
 /spl/
-/tools/generated/
 /tpl/
 /defconfig
 
tools/.gitignore +1 -1
index 941d38de212d..0108c567309b 100644
@@ -34,7 +34,7 @@
 /relocate-rela
 /spl_size_limit
 /sunxi-spl-image-builder
-/tools/generated/**/*.c
+/generated/**/*.c
 /update_octeon_header
 /version.h
 /xway-swap-bytes
Signature · 1 line
2.39.2
#1 lore raw
Quoted 11 lines · Sam Protsenko

'git status' shows 'tools/generated/' after running the build, which is wrong. The corresponding .gitignore rule was already added in commit c623642d29be ("Adjust gitignore for tools/generated/"), but because of superfluous 'tools/' part it wasn't in effect. Remove incorrect 'tools/' part to fix it.

While at it, remove tools/ path incorrectly added to the top-level .gitignore in commit 801c482207c7 (".gitignore: ignore misc include, simple-bin, and tools/generated build artifacts"), as it's required in the comment on the top of .gitignore:

Quoted 7 lines

# NOTE! Don't add files that are generated in specific # subdirectories here. Add them in the ".gitignore" file # in that subdirectory instead.

Fixes c623642d29be ("Adjust gitignore for tools/generated/")
Fixes 801c482207c7 (".gitignore: ignore misc include, simple-bin, and tools/generated build artifacts")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom