]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Makefile: let 'make clean' remove files created by DEVICE_TREE_DEBUG
authorRasmus Villemoes <rv@rasmusvillemoes.dk>
Thu, 11 Jun 2026 14:08:57 +0000 (16:08 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 16 Jun 2026 14:53:12 +0000 (08:53 -0600)
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 <rv@rasmusvillemoes.dk>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
.gitignore
Makefile

index d57d3be0291ac173d788b63b0b239934af2e9d61..0e09715cc607753600c563c8b89904a0f229c144 100644 (file)
@@ -16,6 +16,9 @@
 *.dtb
 *.dtbo
 *.dtb.S
+*.dtb.clean.dts
+*.dtb.diff
+*.dtb.full.dts
 *.elf
 *.exe
 *.fit
index 4e5c1dd6a1c4526c43da2eed3b0e85981188c852..46ecced8daa034709907e8e0f14c521ba9157e83 100644 (file)
--- 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' \