of: unittest: rename overlay source files from .dts to .dtso
Subsystems (3)
PATCH 1/1 of: unittest: rename overlay source files from .dts to .dtso
From: Frank Rowand <[email protected]>
Add Makefile rule to build .dtbo.o assembly file from overlay .dtso source file.
Rename unittest .dts overlay source files to use .dtso suffix.
Update Makefile to build .dtbo.o objects instead of .dtb.o from unittest overlay source files.
Modify unitest.c to use .dtbo.o based symbols instead of .dtb.o
Modify Makefile.lib %.dtbo rule to depend upon %.dtso instead of %.dts
Documentation/devicetree/of_unittest.rst was already out of date. This commit would make it even more out of date. Delete the document instead of continuing the maintenance burden of keeping the document in sync with the source.
---
This patch applies on top of Viresh Kumar's patches 1, 2, 4, and 5 that Rob has already accepted at:
https://lore.kernel.org/r/[email protected]
Viresh Kumar's series is
"[PATCH V11 0/5] dt: Add fdtoverlay rule and statically build unittest" at:
https://lore.kernel.org/linux-devicetree/[email protected]/
There are checkpatch warnings. I have reviewed them and feel they can be ignored.
Documentation/devicetree/index.rst | 1 -
Documentation/devicetree/of_unittest.rst | 205 ------------------
drivers/of/unittest-data/Makefile | 76 ++++---
.../{overlay.dts => overlay.dtso} | 0
.../{overlay_0.dts => overlay_0.dtso} | 0
.../{overlay_1.dts => overlay_1.dtso} | 0
.../{overlay_10.dts => overlay_10.dtso} | 0
.../{overlay_11.dts => overlay_11.dtso} | 0
.../{overlay_12.dts => overlay_12.dtso} | 0
.../{overlay_13.dts => overlay_13.dtso} | 0
.../{overlay_15.dts => overlay_15.dtso} | 0
.../{overlay_2.dts => overlay_2.dtso} | 0
.../{overlay_3.dts => overlay_3.dtso} | 0
.../{overlay_4.dts => overlay_4.dtso} | 0
.../{overlay_5.dts => overlay_5.dtso} | 0
.../{overlay_6.dts => overlay_6.dtso} | 0
.../{overlay_7.dts => overlay_7.dtso} | 0
.../{overlay_8.dts => overlay_8.dtso} | 0
.../{overlay_9.dts => overlay_9.dtso} | 0
...node.dts => overlay_bad_add_dup_node.dtso} | 0
...prop.dts => overlay_bad_add_dup_prop.dtso} | 0
...d_phandle.dts => overlay_bad_phandle.dtso} | 0
...bad_symbol.dts => overlay_bad_symbol.dtso} | 0
.../{overlay_base.dts => overlay_base.dtso} | 0
...erlay_gpio_01.dts => overlay_gpio_01.dtso} | 0
...lay_gpio_02a.dts => overlay_gpio_02a.dtso} | 0
...lay_gpio_02b.dts => overlay_gpio_02b.dtso} | 0
...erlay_gpio_03.dts => overlay_gpio_03.dtso} | 0
...lay_gpio_04a.dts => overlay_gpio_04a.dtso} | 0
...lay_gpio_04b.dts => overlay_gpio_04b.dtso} | 0
.../{testcases.dts => testcases.dtso} | 0
drivers/of/unittest.c | 48 ++--
scripts/Makefile.lib | 2 +-
33 files changed, 73 insertions(+), 259 deletions(-)
delete mode 100644 Documentation/devicetree/of_unittest.rst
rename drivers/of/unittest-data/{overlay.dts => overlay.dtso} (100%)
rename drivers/of/unittest-data/{overlay_0.dts => overlay_0.dtso} (100%)
rename drivers/of/unittest-data/{overlay_1.dts => overlay_1.dtso} (100%)
rename drivers/of/unittest-data/{overlay_10.dts => overlay_10.dtso} (100%)
rename drivers/of/unittest-data/{overlay_11.dts => overlay_11.dtso} (100%)
rename drivers/of/unittest-data/{overlay_12.dts => overlay_12.dtso} (100%)
rename drivers/of/unittest-data/{overlay_13.dts => overlay_13.dtso} (100%)
rename drivers/of/unittest-data/{overlay_15.dts => overlay_15.dtso} (100%)
rename drivers/of/unittest-data/{overlay_2.dts => overlay_2.dtso} (100%)
rename drivers/of/unittest-data/{overlay_3.dts => overlay_3.dtso} (100%)
rename drivers/of/unittest-data/{overlay_4.dts => overlay_4.dtso} (100%)
rename drivers/of/unittest-data/{overlay_5.dts => overlay_5.dtso} (100%)
rename drivers/of/unittest-data/{overlay_6.dts => overlay_6.dtso} (100%)
rename drivers/of/unittest-data/{overlay_7.dts => overlay_7.dtso} (100%)
rename drivers/of/unittest-data/{overlay_8.dts => overlay_8.dtso} (100%)
rename drivers/of/unittest-data/{overlay_9.dts => overlay_9.dtso} (100%)
rename drivers/of/unittest-data/{overlay_bad_add_dup_node.dts => overlay_bad_add_dup_node.dtso} (100%)
rename drivers/of/unittest-data/{overlay_bad_add_dup_prop.dts => overlay_bad_add_dup_prop.dtso} (100%)
rename drivers/of/unittest-data/{overlay_bad_phandle.dts => overlay_bad_phandle.dtso} (100%)
rename drivers/of/unittest-data/{overlay_bad_symbol.dts => overlay_bad_symbol.dtso} (100%)
rename drivers/of/unittest-data/{overlay_base.dts => overlay_base.dtso} (100%)
rename drivers/of/unittest-data/{overlay_gpio_01.dts => overlay_gpio_01.dtso} (100%)
rename drivers/of/unittest-data/{overlay_gpio_02a.dts => overlay_gpio_02a.dtso} (100%)
rename drivers/of/unittest-data/{overlay_gpio_02b.dts => overlay_gpio_02b.dtso} (100%)
rename drivers/of/unittest-data/{overlay_gpio_03.dts => overlay_gpio_03.dtso} (100%)
rename drivers/of/unittest-data/{overlay_gpio_04a.dts => overlay_gpio_04a.dtso} (100%)
rename drivers/of/unittest-data/{overlay_gpio_04b.dts => overlay_gpio_04b.dtso} (100%)
rename drivers/of/unittest-data/{testcases.dts => testcases.dtso} (100%)Documentation/devicetree/index.rst +0 -1
@@ -11,7 +11,6 @@ Open Firmware and Device Tree writing-schema changesets dynamic-resolution-notes - of_unittest overlay-notes bindings/index
Documentation/devicetree/of_unittest.rst deleted +0 -205
205 lines not on this page · raw message
drivers/of/unittest-data/Makefile +48 -28
81 lines not on this page · raw message
drivers/of/unittest-data/overlay.dtso renamed from drivers/of/unittest-data/overlay.dts +0 -0
drivers/of/unittest-data/overlay_0.dtso renamed from drivers/of/unittest-data/overlay_0.dts +0 -0
drivers/of/unittest-data/overlay_1.dtso renamed from drivers/of/unittest-data/overlay_1.dts +0 -0
drivers/of/unittest-data/overlay_10.dtso renamed from drivers/of/unittest-data/overlay_10.dts +0 -0
drivers/of/unittest-data/overlay_11.dtso renamed from drivers/of/unittest-data/overlay_11.dts +0 -0
drivers/of/unittest-data/overlay_12.dtso renamed from drivers/of/unittest-data/overlay_12.dts +0 -0
drivers/of/unittest-data/overlay_13.dtso renamed from drivers/of/unittest-data/overlay_13.dts +0 -0
drivers/of/unittest-data/overlay_15.dtso renamed from drivers/of/unittest-data/overlay_15.dts +0 -0
drivers/of/unittest-data/overlay_2.dtso renamed from drivers/of/unittest-data/overlay_2.dts +0 -0
drivers/of/unittest-data/overlay_3.dtso renamed from drivers/of/unittest-data/overlay_3.dts +0 -0
drivers/of/unittest-data/overlay_4.dtso renamed from drivers/of/unittest-data/overlay_4.dts +0 -0
drivers/of/unittest-data/overlay_5.dtso renamed from drivers/of/unittest-data/overlay_5.dts +0 -0
drivers/of/unittest-data/overlay_6.dtso renamed from drivers/of/unittest-data/overlay_6.dts +0 -0
drivers/of/unittest-data/overlay_7.dtso renamed from drivers/of/unittest-data/overlay_7.dts +0 -0
drivers/of/unittest-data/overlay_8.dtso renamed from drivers/of/unittest-data/overlay_8.dts +0 -0
drivers/of/unittest-data/overlay_9.dtso renamed from drivers/of/unittest-data/overlay_9.dts +0 -0
drivers/of/unittest-data/overlay_bad_add_dup_node.dtso renamed from drivers/of/unittest-data/overlay_bad_add_dup_node.dts +0 -0
drivers/of/unittest-data/overlay_bad_add_dup_prop.dtso renamed from drivers/of/unittest-data/overlay_bad_add_dup_prop.dts +0 -0
drivers/of/unittest-data/overlay_bad_phandle.dtso renamed from drivers/of/unittest-data/overlay_bad_phandle.dts +0 -0
drivers/of/unittest-data/overlay_bad_symbol.dtso renamed from drivers/of/unittest-data/overlay_bad_symbol.dts +0 -0
drivers/of/unittest-data/overlay_base.dtso renamed from drivers/of/unittest-data/overlay_base.dts +0 -0
drivers/of/unittest-data/overlay_gpio_01.dtso renamed from drivers/of/unittest-data/overlay_gpio_01.dts +0 -0
drivers/of/unittest-data/overlay_gpio_02a.dtso renamed from drivers/of/unittest-data/overlay_gpio_02a.dts +0 -0
drivers/of/unittest-data/overlay_gpio_02b.dtso renamed from drivers/of/unittest-data/overlay_gpio_02b.dts +0 -0
drivers/of/unittest-data/overlay_gpio_03.dtso renamed from drivers/of/unittest-data/overlay_gpio_03.dts +0 -0
drivers/of/unittest-data/overlay_gpio_04a.dtso renamed from drivers/of/unittest-data/overlay_gpio_04a.dts +0 -0
drivers/of/unittest-data/overlay_gpio_04b.dtso renamed from drivers/of/unittest-data/overlay_gpio_04b.dts +0 -0
drivers/of/unittest-data/testcases.dtso renamed from drivers/of/unittest-data/testcases.dts +0 -0
drivers/of/unittest.c +24 -24
105 lines not on this page · raw message
scripts/Makefile.lib +1 -1
@@ -347,7 +347,7 @@ cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; $(obj)/%.dtb: $(src)/%.dts $(DTC) FORCE $(call if_changed_dep,dtc) -$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE +$(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE $(call if_changed_dep,dtc) overlay-y := $(addprefix $(obj)/, $(overlay-y))
Signature · 1 line
Frank Rowand <[email protected]>
PATCH v4 1/1 kbuild: Add rule to build .dt.yaml files for overlays
The overlay source files are named with .dtso extension now, add a new rule to generate .dt.yaml for them.
---
V4:
- Rebase over Frank's cleanup patch:
https://lore.kernel.org/lkml/[email protected]/
- Drop changes to drivers/of/unittest-data/Makefile.
- Drop modifications to the rule that builds .dtbo files (as it is already updated by Frank).
scripts/Makefile.lib | 3 +++ 1 file changed, 3 insertions(+)
scripts/Makefile.lib +3 -0
@@ -376,6 +376,9 @@ endef $(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE $(call if_changed_rule,dtc,yaml) +$(obj)/%.dt.yaml: $(src)/%.dtso $(DTC) $(DT_TMP_SCHEMA) FORCE + $(call if_changed_rule,dtc,yaml) + dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) # Bzip2
Signature · 1 line
2.25.0.rc1.19.g042ed3e048af
Rob Herring
maintainerQuoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 4 lines
Update
Makefileto build .dtbo.o objects instead of .dtb.o from unittest overlay source files.
Quoted 8 lines
Modify
unitest.cto use .dtbo.o based symbols instead of .dtb.oModify Makefile.lib %.dtbo rule to depend upon %.dtso instead of %.dts
Documentation/devicetree/of_unittest.rstwas already out of date. This commit would make it even more out of date. Delete the document instead of continuing the maintenance burden of keeping the document in sync with the source.
This should be a separate change. It's also going to collide with my doc improvements.
Improvements here would be better than just deleting.
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
I was originally also, but I'm warming up to it.
Quoted 9 lines
Quoted 9 lines
Update
Makefileto build .dtbo.o objects instead of .dtb.o from unittest overlay source files.Modify
unitest.cto use .dtbo.o based symbols instead of .dtb.oModify Makefile.lib %.dtbo rule to depend upon %.dtso instead of %.dts
Quoted 7 lines
Quoted 4 lines
Documentation/devicetree/of_unittest.rstwas already out of date. This commit would make it even more out of date. Delete the document instead of continuing the maintenance burden of keeping the document in sync with the source.This should be a separate change. It's also going to collide with my doc improvements.
I'll split it out.
Quoted 2 lines
Improvements here would be better than just deleting.
OK, I'll make the document more abstract so that code changes will be less likely to require document changes.
-Frank
Hi Frank, Rob,
Quoted 4 lines · Frank Rowand
Quoted 3 lines · Rob Herring
Quoted 2 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
I was originally also, but I'm warming up to it.
What's the status of this?
v5.12 (introducing the concept of dtbo) is around the corner, and it would be best to decide on dts or dtso before its release.
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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
Quoted 10 lines · Geert Uytterhoeven
Hi Frank, Rob,
Quoted 7 lines · Frank Rowand
Quoted 6 lines · Rob Herring
Quoted 5 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Quoted 9 lines
v5.12 (introducing the concept of dtbo) is around the corner, and it would be best to decide on dts or dtso before its release.
Thanks!
Gr{oetje,eeting}s,
Geert
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Hi Frank, Rob,
Quoted 9 lines · Frank Rowand
Quoted 8 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I'm pretty lukewarm on .dtso...
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Signature · 1 line
viresh
Quoted 16 lines · Viresh Kumar
Quoted 15 lines · Frank Rowand
Quoted 14 lines · Geert Uytterhoeven
Hi Frank, Rob,
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (guess_type_by_name() in dtc and the help text of the fdtoverlay program).
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
-Frank
Quoted 28 lines · Frank Rowand
Quoted 16 lines · Viresh Kumar
Quoted 15 lines · Frank Rowand
Quoted 14 lines · Geert Uytterhoeven
Hi Frank, Rob,
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
Quoted 8 lines
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
.dtso is much more recent, and I think there's much less value to it.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 32 lines · David Gibson
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).
Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it? The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.
We also do have .dts vs. .dtsi.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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 Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David Gibson
Quoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/
Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Quoted 6 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
Quoted 8 lines
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.
Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Quoted 6 lines
We also do have .dts vs. .dtsi.
Gr{oetje,eeting}s,
Geert
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Hi David,
Quoted 52 lines · David Gibson
On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David GibsonQuoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 6 lines
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts:
overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts
| $(objtree)/$(obj)/$$(dir %)
So I might be the one who introduced .dtso...
Quoted 15 lines
Quoted 6 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
Quoted 8 lines
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.
Quoted 5 lines
Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Thanks!
Quoted 1 line
Quoted 1 line
We also do have .dts vs. .dtsi.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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
Quoted 84 lines · Geert Uytterhoeven
Quoted 52 lines · David Gibson
On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David GibsonQuoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 6 lines
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts:
overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts| $(objtree)/$(obj)/$$(dir %)
So I might be the one who introduced .dtso...
Quoted 15 lines
Quoted 14 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.
Quoted 9 lines
Quoted 5 lines
Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Thanks!
Quoted 1 line
Quoted 1 line
We also do have .dts vs. .dtsi.
In the mean time, we're at rc7 again?
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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
Quoted 92 lines · Geert Uytterhoeven
Quoted 90 lines · Geert Uytterhoeven
Quoted 52 lines · David Gibson
On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David GibsonQuoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 6 lines
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts:
overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts| $(objtree)/$(obj)/$$(dir %)
So I might be the one who introduced .dtso...
Quoted 20 lines
Quoted 6 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
Quoted 8 lines
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Quoted 5 lines
Quoted 3 lines
Thanks!
Quoted 1 line
Quoted 1 line
We also do have .dts vs. .dtsi.
In the mean time, we're at rc7 again?
That was v5.13-rc7. Now we're at v5.14-rc7...
Will we live with the inability to e.g. let make distinguish between DT includes and overlays forever?
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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
Quoted 96 lines · Geert Uytterhoeven
Quoted 94 lines · Geert Uytterhoeven
Quoted 92 lines · Geert Uytterhoeven
Quoted 52 lines · David Gibson
On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David GibsonQuoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add Makefile rule to build .dtbo.o assembly file from overlay .dtso
source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 6 lines
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts:
overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts| $(objtree)/$(obj)/$$(dir %)
So I might be the one who introduced .dtso...
Quoted 15 lines
Quoted 6 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
Quoted 8 lines
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.Quoted 5 lines
Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Thanks!
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
We also do have .dts vs. .dtsi.
In the mean time, we're at rc7 again?
That was v5.13-rc7. Now we're at v5.14-rc7...
Will we live with the inability to e.g. let make distinguish between DT includes and overlays forever?
I guess this is not gonna happen, so I'll convert all my overlays from .dtso to .dts....
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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 Rob, David,
Patient Geert has pinged again.
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
-Frank
Quoted 121 lines · Geert Uytterhoeven
Quoted 96 lines · Geert Uytterhoeven
Quoted 94 lines · Geert Uytterhoeven
Quoted 92 lines · Geert Uytterhoeven
Quoted 52 lines · David Gibson
On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David GibsonQuoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>Add Makefile rule to build .dtbo.o assembly file from overlay .dtso
source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 6 lines
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts:
overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts| $(objtree)/$(obj)/$$(dir %)
So I might be the one who introduced .dtso...
Quoted 15 lines
Quoted 6 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
Quoted 8 lines
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.Quoted 5 lines
Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Thanks!
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
We also do have .dts vs. .dtsi.
In the mean time, we're at rc7 again?
That was v5.13-rc7. Now we're at v5.14-rc7...
Will we live with the inability to e.g. let make distinguish between DT includes and overlays forever?
I guess this is not gonna happen, so I'll convert all my overlays from .dtso to .dts....
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]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
Rob Herring
maintainerQuoted 4 lines · Frank Rowand
Hi Rob, David,
Patient Geert has pinged again.
If it's not a patch to be reviewed, then I'm not going to see it most likely. I don't read the DT list regularly...
Quoted 7 lines
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
I'm not really interested in diverging from dtc. I'd suggest moving the discussion to dtc list and/or devicetree-spec if you want to get more attention on this.
Also, keep in mind that extensions also affect MIME types which someone was also asking about recently.
Rob
Quoted 127 lines
-Frank
Quoted 121 lines · Geert Uytterhoeven
Quoted 96 lines · Geert Uytterhoeven
Quoted 94 lines · Geert Uytterhoeven
Quoted 92 lines · Geert Uytterhoeven
Quoted 52 lines · David Gibson
On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David GibsonQuoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Frank Rowand
On 3/27/21 12:40 PM, Rob Herring wrote:
On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>Add Makefile rule to build .dtbo.o assembly file from overlay .dtso
source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 6 lines
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts:
overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts| $(objtree)/$(obj)/$$(dir %)
So I might be the one who introduced .dtso...
Quoted 15 lines
Quoted 6 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
Quoted 8 lines
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.Quoted 5 lines
Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Thanks!
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
We also do have .dts vs. .dtsi.
In the mean time, we're at rc7 again?
That was v5.13-rc7. Now we're at v5.14-rc7...
Will we live with the inability to e.g. let make distinguish between DT includes and overlays forever?
I guess this is not gonna happen, so I'll convert all my overlays from .dtso to .dts....
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]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 Rob,
Quoted 5 lines · Rob Herring
Quoted 1 line · Frank Rowand
Patient Geert has pinged again.
If it's not a patch to be reviewed, then I'm not going to see it most likely. I don't read the DT list regularly...
Fair enough...
Quoted 11 lines
Quoted 7 lines
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
I'm not really interested in diverging from dtc. I'd suggest moving the discussion to dtc list and/or devicetree-spec if you want to get more attention on this.
What needs to be supported in the dtc compiler? The fallback passed to guess_input_format() is "dts". So this has been working out-of-the-box since forever?
Quoted 2 lines
Also, keep in mind that extensions also affect MIME types which someone was also asking about recently.
You mean "MIME type of Devicetree Blobs and Sources"[1]? According to [2](2022-01-13), none of that has happened.
[1] https://www.spinics.net/lists/devicetree-spec/msg00938.html
[2] https://www.iana.org/assignments/media-types/media-types.xhtml
Quoted 110 lines
Quoted 110 lines · Geert Uytterhoeven
Quoted 109 lines
Quoted 96 lines · Geert Uytterhoeven
Quoted 94 lines · Geert Uytterhoeven
Quoted 92 lines · Geert Uytterhoeven
Quoted 52 lines · David Gibson
On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David GibsonQuoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
Quoted 12 lines · Geert Uytterhoeven
On Mon, Mar 29, 2021 at 9:23 PM Frank Rowand <[email protected]> wrote:
On 3/27/21 12:40 PM, Rob Herring wrote:
On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>Add Makefile rule to build .dtbo.o assembly file from overlay .dtso
source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 6 lines
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts:
overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts| $(objtree)/$(obj)/$$(dir %)
So I might be the one who introduced .dtso...
Quoted 15 lines
Quoted 6 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
Quoted 8 lines
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.Quoted 5 lines
Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Thanks!
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
We also do have .dts vs. .dtsi.
In the mean time, we're at rc7 again?
That was v5.13-rc7. Now we're at v5.14-rc7...
Will we live with the inability to e.g. let make distinguish between DT includes and overlays forever?
I guess this is not gonna happen, so I'll convert all my overlays from .dtso to .dts....
Signature · 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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 TorvaldsQuoted 18 lines · Geert Uytterhoeven
Hi Rob,
Quoted 5 lines · Rob Herring
Quoted 1 line · Frank Rowand
Patient Geert has pinged again.
If it's not a patch to be reviewed, then I'm not going to see it most likely. I don't read the DT list regularly...
Fair enough...
Quoted 7 lines
Quoted 7 lines
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
TBH, I barely remember the earlier discussion. I am more or less indifferent on .dtso.
Quoted 7 lines
Quoted 3 lines
I'm not really interested in diverging from dtc. I'd suggest moving the discussion to dtc list and/or devicetree-spec if you want to get more attention on this.
What needs to be supported in the dtc compiler? The fallback passed to
guess_input_format()is "dts". So this has been working out-of-the-box since forever?
Right. I usually like to supply -I and -O to dtc explicitly, in which case the extensions basically irrelevant.
I suppose we could also issue warnings if the /plugin/ tag doesn't match the file extension.
Quoted 120 lines
Quoted 2 lines
Also, keep in mind that extensions also affect MIME types which someone was also asking about recently.
You mean "MIME type of Devicetree Blobs and Sources"[1]? According to [2](2022-01-13), none of that has happened.
[1] https://www.spinics.net/lists/devicetree-spec/msg00938.html
[2] https://www.iana.org/assignments/media-types/media-types.xhtmlQuoted 110 lines
Quoted 110 lines · Geert Uytterhoeven
Quoted 109 lines
Quoted 96 lines · Geert Uytterhoeven
Quoted 94 lines · Geert Uytterhoeven
Quoted 92 lines · Geert Uytterhoeven
Quoted 52 lines · David Gibson
On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote:
65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David GibsonQuoted 41 lines
Quoted 32 lines · <[email protected]> wrote:
Quoted 31 lines · Frank Rowand
Quoted 14 lines · Viresh Kumar
Quoted 13 lines · Frank Rowand
On 4/22/21 3:44 AM, Geert Uytterhoeven wrote:
On Mon, Mar 29, 2021 at 9:23 PM Frank Rowand <[email protected]> wrote:
On 3/27/21 12:40 PM, Rob Herring wrote:
On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>Add Makefile rule to build .dtbo.o assembly file from overlay .dtso
source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).Quoted 7 lines
Quoted 3 lines
It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
Quoted 5 lines
Indeed.
Quoted 1 line
.dtso is much more recent,
Is it?
Well, I wouldn't bet money on it, I just seem to remember encountering .dtbo for some time before .dtso was mentioned.
Quoted 6 lines
Quoted 3 lines
The oldest reference I could find is from May 2015:
"[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects"
https://lore.kernel.org/linux-devicetree/[email protected]/Hm, I think .dtbo is even older than that, but again, I wouldn't swear to it.
Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts:
overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts| $(objtree)/$(obj)/$$(dir %)
So I might be the one who introduced .dtso...
Quoted 15 lines
Quoted 6 lines
I have always used dtbo/dtso in my published overlays branches, referred from https://elinux.org/R-Car/DT-Overlays, and used by various people.
Quoted 1 line
and I think there's much less value to it.
Quoted 8 lines
IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. It matters if the resulting blob will be an overlay or base tree, as the blob will have to be called .dtb or .dtbo.
As dtc outputs to stdout by default, the caller has to provide the output filename, and thus needs to know.
Even if dtc would name the output file based on the presence of "/plugin/" in the input file, the build system still needs to know for dependency tracking.Quoted 5 lines
Hm, fair point. I was thinking of the the /plugin/ tag as the distinction, whereas dtb is binary and the distinction isn't even marked in the header. But you're right that even readable text labels inside the file don't really help make(1). So, I retract that assertion.
Thanks!
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
We also do have .dts vs. .dtsi.
In the mean time, we're at rc7 again?
That was v5.13-rc7. Now we're at v5.14-rc7...
Will we live with the inability to e.g. let make distinguish between DT includes and overlays forever?
I guess this is not gonna happen, so I'll convert all my overlays from .dtso to .dts....
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Rob Herring
maintainerQuoted 20 lines · Geert Uytterhoeven
Hi Rob,
Quoted 5 lines · Rob Herring
Quoted 1 line · Frank Rowand
Patient Geert has pinged again.
If it's not a patch to be reviewed, then I'm not going to see it most likely. I don't read the DT list regularly...
Fair enough...
Quoted 8 lines
Quoted 7 lines
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
Quoted 7 lines
Quoted 3 lines
I'm not really interested in diverging from dtc. I'd suggest moving the discussion to dtc list and/or devicetree-spec if you want to get more attention on this.
What needs to be supported in the dtc compiler? The fallback passed to
guess_input_format()is "dts". So this has been working out-of-the-box since forever?
Ah, okay.
Quoted 5 lines
Quoted 2 lines
Also, keep in mind that extensions also affect MIME types which someone was also asking about recently.
You mean "MIME type of Devicetree Blobs and Sources"[1]? According to [2](2022-01-13), none of that has happened.
This is what I was thinking of:
https://github.com/devicetree-org/devicetree-specification/issues/46
In any case, given everyone is ambivalent, send me an updated patch and I'll apply it.
Rob
Rob Herring
maintainerQuoted 38 lines · Rob Herring
Quoted 20 lines · Geert Uytterhoeven
Hi Rob,
Quoted 5 lines · Rob Herring
Quoted 1 line · Frank Rowand
Patient Geert has pinged again.
If it's not a patch to be reviewed, then I'm not going to see it most likely. I don't read the DT list regularly...
Fair enough...
Quoted 8 lines
Quoted 7 lines
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
Quoted 7 lines
Quoted 3 lines
I'm not really interested in diverging from dtc. I'd suggest moving the discussion to dtc list and/or devicetree-spec if you want to get more attention on this.
What needs to be supported in the dtc compiler? The fallback passed to
guess_input_format()is "dts". So this has been working out-of-the-box since forever?Ah, okay.
Quoted 5 lines
Quoted 2 lines
Also, keep in mind that extensions also affect MIME types which someone was also asking about recently.
You mean "MIME type of Devicetree Blobs and Sources"[1]? According to [2](2022-01-13), none of that has happened.
Quoted 6 lines
This is what I was thinking of:
https://github.com/devicetree-org/devicetree-specification/issues/46
In any case, given everyone is ambivalent, send me an updated patch and I'll apply it.
Ping! Anyone still want this?
What I don't want to see is a mixture of .dts and .dtso. And now I'm reviewing RPi overlay patches[1] with .dts.
Rob
Hi Rob,
Quoted 39 lines · Rob Herring
Quoted 38 lines · Rob Herring
Quoted 17 lines · Geert Uytterhoeven
Quoted 5 lines · Rob Herring
Quoted 1 line · Frank Rowand
Patient Geert has pinged again.
If it's not a patch to be reviewed, then I'm not going to see it most likely. I don't read the DT list regularly...
Fair enough...
Quoted 8 lines
Quoted 7 lines
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
Quoted 7 lines
Quoted 3 lines
I'm not really interested in diverging from dtc. I'd suggest moving the discussion to dtc list and/or devicetree-spec if you want to get more attention on this.
What needs to be supported in the dtc compiler? The fallback passed to
guess_input_format()is "dts". So this has been working out-of-the-box since forever?Ah, okay.
Quoted 5 lines
Quoted 2 lines
Also, keep in mind that extensions also affect MIME types which someone was also asking about recently.
You mean "MIME type of Devicetree Blobs and Sources"[1]? According to [2](2022-01-13), none of that has happened.
This is what I was thinking of:
https://github.com/devicetree-org/devicetree-specification/issues/46
Quoted 7 lines
Quoted 2 lines
In any case, given everyone is ambivalent, send me an updated patch and I'll apply it.
Ping! Anyone still want this?
What I don't want to see is a mixture of .dts and .dtso. And now I'm reviewing RPi overlay patches[1] with .dts.
I still prefer .dtso over .dts, as it allows tools to detect the file type without having to read the file's contents.
Without this, e.g. make needs to have all overlays listed explicitly in a Makefile.
We do have .c, .h, .s (even .S), .dtsi. So why not .dtso?
Quoted 1 line
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
Rob Herring
maintainerQuoted 44 lines · Geert Uytterhoeven
Hi Rob,
Quoted 41 lines · Rob Herring
Quoted 40 lines · Rob Herring
Quoted 17 lines · Geert Uytterhoeven
Quoted 5 lines · Rob Herring
Quoted 1 line · Frank Rowand
Patient Geert has pinged again.
If it's not a patch to be reviewed, then I'm not going to see it most likely. I don't read the DT list regularly...
Fair enough...
Quoted 8 lines
Quoted 7 lines
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
Quoted 7 lines
Quoted 3 lines
I'm not really interested in diverging from dtc. I'd suggest moving the discussion to dtc list and/or devicetree-spec if you want to get more attention on this.
What needs to be supported in the dtc compiler? The fallback passed to
guess_input_format()is "dts". So this has been working out-of-the-box since forever?Ah, okay.
Quoted 5 lines
Quoted 2 lines
Also, keep in mind that extensions also affect MIME types which someone was also asking about recently.
You mean "MIME type of Devicetree Blobs and Sources"[1]? According to [2](2022-01-13), none of that has happened.
This is what I was thinking of:
https://github.com/devicetree-org/devicetree-specification/issues/46
In any case, given everyone is ambivalent, send me an updated patch and I'll apply it.
^^^^^^^^
Quoted 6 lines
Quoted 5 lines
Ping! Anyone still want this?
What I don't want to see is a mixture of .dts and .dtso. And now I'm reviewing RPi overlay patches[1] with .dts.
Quoted 6 lines
I still prefer .dtso over .dts, as it allows tools to detect the file type without having to read the file's contents.
Without this, e.g. make needs to have all overlays listed explicitly in aMakefile.We do have .c, .h, .s (even .S), .dtsi. So why not .dtso?
Read above! I said to resend this patch and I will apply it.
Rob
Quoted 54 lines · Rob Herring
Quoted 44 lines · Geert Uytterhoeven
Hi Rob,
Quoted 41 lines · Rob Herring
Quoted 40 lines · Rob Herring
Quoted 17 lines · Geert Uytterhoeven
Quoted 5 lines · Rob Herring
Quoted 1 line · Frank Rowand
Patient Geert has pinged again.
If it's not a patch to be reviewed, then I'm not going to see it most likely. I don't read the DT list regularly...
Fair enough...
Quoted 8 lines
Quoted 7 lines
If I remember correctly you guys were not thrilled with this idea, but also did not seem strongly against it. Are you willing to go along with .dtso for overlay source files? If so, I will revive this patch series.
David, if you are against supporting .dtso in the dtc compiler then the kernel can still support it through make rules.
Quoted 7 lines
Quoted 3 lines
I'm not really interested in diverging from dtc. I'd suggest moving the discussion to dtc list and/or devicetree-spec if you want to get more attention on this.
What needs to be supported in the dtc compiler? The fallback passed to
guess_input_format()is "dts". So this has been working out-of-the-box since forever?Ah, okay.
Quoted 5 lines
Quoted 2 lines
Also, keep in mind that extensions also affect MIME types which someone was also asking about recently.
You mean "MIME type of Devicetree Blobs and Sources"[1]? According to [2](2022-01-13), none of that has happened.
This is what I was thinking of:
https://github.com/devicetree-org/devicetree-specification/issues/46
In any case, given everyone is ambivalent, send me an updated patch and I'll apply it.
^^^^^^^^
Quoted 6 lines
Quoted 5 lines
Ping! Anyone still want this?
What I don't want to see is a mixture of .dts and .dtso. And now I'm reviewing RPi overlay patches[1] with .dts.
Quoted 8 lines
Quoted 6 lines
I still prefer .dtso over .dts, as it allows tools to detect the file type without having to read the file's contents.
Without this, e.g. make needs to have all overlays listed explicitly in aMakefile.We do have .c, .h, .s (even .S), .dtsi. So why not .dtso?
Read above! I said to resend this patch and I will apply it.
Sorry for the delay. Earlier I said the I would rework the patch (if needed for the current kernel) and resend. I've been distracted by other things like bug fixes. Otherwise resending this patch is at the top of my todo list.
-Frank
Quoted 2 lines
Rob
Quoted 38 lines · David Gibson
Quoted 28 lines · Frank Rowand
Quoted 16 lines · Viresh Kumar
Quoted 15 lines · Frank Rowand
Quoted 14 lines · Geert Uytterhoeven
Hi Frank, Rob,
Quoted 11 lines · Frank Rowand
Quoted 9 lines · Rob Herring
Quoted 6 lines · On Wed, Mar 24, 2021 at 05:37:13PM -0500, [email protected] wrote:
From: Frank Rowand <[email protected]>
Add
Makefilerule to build .dtbo.o assembly file from overlay .dtso source file.Rename unittest .dts overlay source files to use .dtso suffix.
I'm pretty lukewarm on .dtso...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I was originally also, but I'm warming up to it.
What's the status of this?
I was planning to resend on top of the upcoming -rc1.
Ping.
Thanks for the prod...
Quoted 8 lines
The .dtso convention was added to the dtc compiler, then a patch was accepted to revert one mention of .dtso ,though there still remains two location where .dtbo is still recognized (
guess_type_by_name()in dtc and the help text of the fdtoverlay program).It seems that the general .dtso and .dtbo were not popular, so I'm going to drop this patch instead of continuing to try to get it accepted.
Quoted 6 lines
AFAICT .dtbo is moderately well established, and I think it's a good convention, since it matters whether a blob is an overlay or base tree, and it's not trivial to tell which is which.
.dtso is much more recent, and I think there's much less value to it.
Thanks for the correction, I misunderstood your thoughts.
-Frank