]> git.ipfire.org Git - thirdparty/linux.git/commit - Makefile
kbuild: create a list of all built DTB files
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 9 Jan 2024 12:07:34 +0000 (21:07 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:39 +0000 (18:20 +0900)
commit24507871c3c6ae4f6b460b016da7ff434cd34149
tree016a7df622dd9c92524cf3e3664cb826bebc3b19
parentf6314b76d826e58ca394c944e22a39855a995096
kbuild: create a list of all built DTB files

It is useful to have a list of all *.dtb and *.dtbo files generated
from the current build.

With this commit, 'make dtbs' creates arch/*/boot/dts/dtbs-list, which
lists the dtb(o) files created in the current build. It maintains the
order of the dtb-y additions in Makefiles although the order is not
important for DTBs. It is a (good) side effect through the reuse of the
modules.order rule.

Please note this list only includes the files directly added to dtb-y.

For example, consider this case:

    foo-dtbs := foo_base.dtb foo_overlay.dtbo
    dtb-y := foo.dtb

In this example, the list will include foo.dtb, but not foo_base.dtb
or foo_overlay.dtbo.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
.gitignore
Makefile
scripts/Makefile.build
scripts/Makefile.lib