On 6/12/26 8:19 AM, Rasmus Villemoes wrote:
On Thu, Jun 11 2026, "Marek Vasut" <[email protected]> wrote:
On 6/11/26 4:08 PM, Rasmus Villemoes wrote:
Originally, 'make DEVICE_TREE_DEBUG=1' only generated extra output on
the console. But since 6cdd7597a2f ("kbuild: Produce diff between base
DT and U-Boot augmented DT if DEVICE_TREE_DEBUG=1"), that has also
left behind lots of files that clutter the repo and are hard to get
rid of manually.
Make sure that a 'make clean' will remove those files, and add them to
.gitignore.
Signed-off-by: Rasmus Villemoes <[email protected]>
---
.gitignore | 3 +++
Makefile | 1 +
2 files changed, 4 insertions(+)
This is nice, thank you.
diff --git a/.gitignore b/.gitignore
index d57d3be0291..0e09715cc60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,9 @@
*.dtb
*.dtbo
*.dtb.S
+*.dtb.clean.dts
+*.dtb.diff
+*.dtb.full.dts
Would it make sense to simply change this to *.dtb.* ? Or do you think
that is too much ?
I think I'm leaning on the explicit mention of each suffix. Had there
already been a *.dtb.* pattern, I would probably not have noticed and
thus not been prompted to amend the 'make clean' rule, so I think it's
better that some potential future .dtb.foo artifact does show up in 'git
status' as an untracked file. But this is certainly not a strong
opinion, and I'd be fine either way.
I would be fine with .dts.foo showing up, but .dtb.foo are most likely
build artifacts ?