]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kbuild: split device tree build rules into scripts/Makefile.dtbs
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 4 Sep 2024 23:47:38 +0000 (08:47 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 9 Sep 2024 14:42:13 +0000 (23:42 +0900)
commite7e2941300d258d551dda6ca9a370e29e085fa73
tree91150dcbc91aa99d5d60a93c9530a1106628bb7a
parentfc41a0a7498636ac0af7c37be80ca8571c2f4173
kbuild: split device tree build rules into scripts/Makefile.dtbs

scripts/Makefile.lib is included not only from scripts/Makefile.build
but also from scripts/Makefile.{modfinal,package,vmlinux,vmlinux_o},
where DT build rules are not required.

Split the DT build rules out to scripts/Makefile.dtbs, and include it
only when necessary.

While I was here, I added $(DT_TMP_SCHEMA) as a prerequisite of
$(multi-dtb-y).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/fdt.c
drivers/of/unittest.c
scripts/Makefile.build
scripts/Makefile.dtbs [new file with mode: 0644]
scripts/Makefile.lib