summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Villemoes <[email protected]>2026-06-11 16:08:57 +0200
committerTom Rini <[email protected]>2026-06-16 08:53:12 -0600
commit79f3e2f8be956575afb339a26325fcd4b15ff1e6 (patch)
treead471fd0bc2b41b167b8bdcda5ee6be2cb134319
parent8b154abd31e499d7e90d125d36d997c75daa6b05 (diff)
Makefile: let 'make clean' remove files created by DEVICE_TREE_DEBUG
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]> Reviewed-by: Marek Vasut <[email protected]>
-rw-r--r--.gitignore3
-rw-r--r--Makefile1
2 files changed, 4 insertions, 0 deletions
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
*.elf
*.exe
*.fit
diff --git a/Makefile b/Makefile
index 4e5c1dd6a1c..46ecced8daa 100644
--- a/Makefile
+++ b/Makefile
@@ -2611,6 +2611,7 @@ clean: $(clean-dirs)
\( -name '*.[aios]' -o -name '*.ko' -o -name '.*.cmd' \
-o -name '*.ko.*' -o -name '*.su' -o -name '*.pyc' \
-o -name '*.dtb' -o -name '*.dtbo' -o -name '*.dtb.S' -o -name '*.dt.yaml' \
+ -o -name '*.dtb.clean.dts' -o -name '*.dtb.full.dts' -o -name '*.dtb.diff' \
-o -name '*.dwo' -o -name '*.lst' \
-o -name '*.su' -o -name '*.mod' -o -name '*.usyms' \
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \