Message ID | 20221023182437.15263-1-afd@ti.com |
---|---|
Headers | show |
Series | Rename DTB overlay source files | expand |
On Sun, Oct 23, 2022 at 8:24 PM Andrew Davis <afd@ti.com> wrote: > 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> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
On Sun, Oct 23, 2022 at 8:24 PM Andrew Davis <afd@ti.com> wrote: > DTB files can be built into the kernel by converting them to assembly > files then assembling them into object files. We extend this here > for DTB overlays with the .dtso extensions. > > We change the start and end delimiting tag prefix to make it clear that > this data came from overlay files. > > [Based on patch by Frank Rowand <frank.rowand@sony.com>] > Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
On Sun, Oct 23, 2022 at 8:25 PM Andrew Davis <afd@ti.com> wrote: > From: Frank Rowand <frank.rowand@sony.com> > > In drivers/of/unittest-data/: > - Rename .dts overlay source files to use .dtso suffix. > > Modify driver/of/unitest.c to use .dtbo.o based symbols instead of .dtb.o > > Signed-off-by: Frank Rowand <frank.rowand@sony.com> > Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
Hi Andrew, On Sun, Oct 23, 2022 at 8:24 PM Andrew Davis <afd@ti.com> wrote: > This is a series based on my patch here[0]. As suggested by Rob > I've resurrected Frank's patch and appended it to mine as a series. > > First patch here is my original patch, 3rd is Frank's patch but with > the unittest changes pulled out into the 2nd patch. That was re-worked > moving the source building macro into scripts/Makefile.lib. > > Patches 4, 5, and 6 are an attempt at renaming all the existing DTB > overlays. Split out by platform so they could be taken by platform > maintainers or if easier ACK'd here and taken all together. > > This should cover all the DTB overlays so we can remove the old .dts > rule for overlays and make .dtso the only supported way, let me know > if we want that this cycle and I can post that too. Thanks a lot for picking this up! Everything builds still fine, and the OF unit tests still run fine, so Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> BTW, you missed the Smarthome-Wolf Pi433 overlay[1] and its documentation[2] under drivers/staging/, but perhaps that was intentional, as it is not tied into the build system? [1] drivers/staging/pi433/Documentation/devicetree/pi433-overlay.dts [2] drivers/staging/pi433/Documentation/devicetree/pi433.txt Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
On 10/24/22 7:28 AM, Geert Uytterhoeven wrote: > Hi Andrew, > > On Sun, Oct 23, 2022 at 8:24 PM Andrew Davis <afd@ti.com> wrote: >> This is a series based on my patch here[0]. As suggested by Rob >> I've resurrected Frank's patch and appended it to mine as a series. >> >> First patch here is my original patch, 3rd is Frank's patch but with >> the unittest changes pulled out into the 2nd patch. That was re-worked >> moving the source building macro into scripts/Makefile.lib. >> >> Patches 4, 5, and 6 are an attempt at renaming all the existing DTB >> overlays. Split out by platform so they could be taken by platform >> maintainers or if easier ACK'd here and taken all together. >> >> This should cover all the DTB overlays so we can remove the old .dts >> rule for overlays and make .dtso the only supported way, let me know >> if we want that this cycle and I can post that too. > > Thanks a lot for picking this up! > > Everything builds still fine, and the OF unit tests still run fine, so > Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> > > BTW, you missed the Smarthome-Wolf Pi433 overlay[1] and its > documentation[2] under drivers/staging/, but perhaps that was > intentional, as it is not tied into the build system? > Wasn't really sure about that one, but it seems simple enough to rename, will add a patch for that in v2. Will also fix the wording in the last 3 patches as suggested. Thanks, Andrew > [1] drivers/staging/pi433/Documentation/devicetree/pi433-overlay.dts > [2] drivers/staging/pi433/Documentation/devicetree/pi433.txt > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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