[PATCH] Makefile: let 'make clean' remove files created by DEVICE_TREE_DEBUG

Marek Vasut marek.vasut at mailbox.org
Thu Jun 11 16:50:30 CEST 2026


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 <rv at rasmusvillemoes.dk>
> ---
>   .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 ?


More information about the U-Boot mailing list