Re: [PATCH V9 2/4] kbuild: Add generic rule to apply fdtoverlay

From: Geert Uytterhoeven
Date: Wed Mar 03 2021 - 10:46:13 EST


Hi Viresh,

On Wed, Mar 3, 2021 at 5:36 AM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
> From: Rob Herring <robh@xxxxxxxxxx>
>
> Add a generic rule to apply fdtoverlay in Makefile.lib, so every
> platform doesn't need to carry the complex rule.
>
> The platform's Makefile only needs to have this now:
>
> DTC_FLAGS_foo_base += -@
> foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo
> dtb-y := foo.dtb

Is there a way to autogenerate the DTC_FLAGS_foo_base rule, based on
the foo-dtbs rule?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

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