[PATCH RESEND] powerpc: dts: Build devicetrees of enabled platforms

Geert Uytterhoeven geert at linux-m68k.org
Wed Mar 4 08:34:26 AEDT 2026


Hi J,

On Tue, 3 Mar 2026 at 16:56, J. Neuschäfer via B4 Relay
<devnull+j.ne.posteo.net at kernel.org> wrote:
> From: "J. Neuschäfer" <j.ne at posteo.net>
>
> Follow the same approach as other architectures such as Arm or RISC-V,
> and build devicetrees based on platforms selected in Kconfig. This makes
> it unnecessary to use CONFIG_OF_ALL_DTBS on PowerPC in order to build
> DTB files.
>
> This makes it easier to use other build and test infrastructure such as
> `make dtbs_check`, and is a first step towards generating FIT images
> that include all the relevant DTBs with `make image.fit`.
>
> Signed-off-by: J. Neuschäfer <j.ne at posteo.net>

Thanks for your patch!

> --- a/arch/powerpc/boot/dts/Makefile
> +++ b/arch/powerpc/boot/dts/Makefile
> @@ -3,3 +3,158 @@
>  subdir-y += fsl
>
>  dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts))
> +
> +# PPC44x platforms
> +dtb-$(CONFIG_PPC44x_SIMPLE) += \
> +       arches.dtb \
> +       bamboo.dtb \
> +       bluestone.dtb \
> +       glacier.dtb \
> +       eiger.dtb \
> +       katmai.dtb \
> +       rainier.dtb \
> +       redwood.dtb \
> +       sequoia.dtb \
> +       taishan.dtb \
> +       yosemite.dtb \
> +       icon.dtb
> +dtb-$(CONFIG_EBONY) += \
> +       ebony.dtb

This fits on a single line (many more below)

[...]

> +# MPC5200 platforms
> +dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += \
> +       a3m071.dtb \
> +       a4m072.dtb \
> +       charon.dtb \
> +       cm5200.dtb \
> +       digsy_mtc.dtb \
> +       motionpro.dtb \
> +       mucmc52.dtb \
> +       o2d.dtb \
> +       o2d300.dtb \
> +       o2dnt2.dtb \
> +       o2i.dtb \
> +       o2mnt.dtb \
> +       o3dnt.dtb \
> +       pcm030.dtb \
> +       pcm032.dtb \
> +       tqm5200.dtb \
> +       uc101.dtb

Even when it wouldn't fit on a single line, having separate

    dtb-$(CONFIG_FOO) += bar1.dtb
    dtb-$(CONFIG_FOO) += bar2.dtb

lines not only makes it a little bit shorter, but avoids the churn of
adding a backslash to the previous line when adding new entries.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds


More information about the Linuxppc-dev mailing list