kbuild: Allow DTB overlays to built from .dtso named source files
authorAndrew Davis <afd@ti.com>
Mon, 24 Oct 2022 17:34:28 +0000 (12:34 -0500)
committerRob Herring <robh@kernel.org>
Wed, 26 Oct 2022 13:58:03 +0000 (08:58 -0500)
commit363547d2191cbc32ca954ba75d72908712398ff2
treef9f007eb5f02b902092c2ddfc74b403a2856f985
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
kbuild: Allow DTB overlays to built from .dtso named source files

Currently DTB Overlays (.dtbo) are build from source files with the same
extension (.dts) as the base DTs (.dtb). This may become confusing and
even lead to wrong results. For example, a composite DTB (created from a
base DTB and a set of overlays) might have the same name as one of the
overlays that create it.

Different files should be generated from differently named sources.
 .dtb  <-> .dts
 .dtbo <-> .dtso

We do not remove the ability to compile DTBO files from .dts files here,
only add a new rule allowing the .dtso file name. The current .dts named
overlays can be renamed with time. After all have been renamed we can
remove the other rule.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Tested-by: Frank Rowand <frowand.list@gmail.com>
Link: https://lore.kernel.org/r/20221024173434.32518-2-afd@ti.com
Signed-off-by: Rob Herring <robh@kernel.org>
scripts/Makefile.lib