[PATCH RESEND] powerpc: dts: Build devicetrees of enabled platforms
J. Neuschäfer
j.ne at posteo.net
Thu Mar 5 00:47:08 AEDT 2026
On Tue, Mar 03, 2026 at 10:34:26PM +0100, Geert Uytterhoeven wrote:
> 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 \
[...]
> > + icon.dtb
> > +dtb-$(CONFIG_EBONY) += \
> > + ebony.dtb
>
> This fits on a single line (many more below)
>
> [...]
>
> > +# MPC5200 platforms
> > +dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += \
[...]
> > + 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.
Sounds good, I'll do that for v2.
>
> 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